Commit graph

95 commits

Author SHA1 Message Date
Stefan Monnier
a0d1aadfca Minor cleanup.
* ffap.el (ffap-symbol-value): Replace ffap-soft-value.  Adjust all callers.
(ffap-locate-file): Remove unused arg `dir-ok' and make other args compulsory.
Adjust callers.
(ffap-gopher-at-point): Remove unused var `name'.
2009-12-09 02:11:29 +00:00
Kevin Ryde
990a9cb177 * ffap.el (ffap-rfc-path): Make this a defcustom since
`ffap-rfc-directories' is also a defcustom.  (My Bug#4514.)
2009-12-06 00:22:51 +00:00
Juri Linkov
7d371eac64 Provide additional default values (file name at point or at the
current Dired line) via M-n for file reading minibuffers.  (Bug#5010)

* minibuffer.el (read-file-name-defaults): New function.
(read-file-name): Reset `minibuffer-default' to nil when
it duplicates initial input `insdef'.
Bind `minibuffer-default-add-function' to lambda that
calls `read-file-name-defaults' in `minibuffer-selected-window'.
(minibuffer-insert-file-name-at-point): New command.

* files.el (file-name-at-point-functions): New defcustom.
(find-file-default): Remove defvar.
(find-file-read-args): Don't use `find-file-default'.
Move `minibuffer-with-setup-hook' that sets `minibuffer-default'
to `read-file-name'.
(find-file-literally): Use `read-file-name' with
`confirm-nonexistent-file-or-buffer'.

* ffap.el (ffap-guess-file-name-at-point): New autoloaded function.

* dired.el (dired-read-dir-and-switches):
Move `minibuffer-with-setup-hook' that sets `minibuffer-default'
to `read-file-name'.
(dired-file-name-at-point): New function.
(dired-mode): Add hook `dired-file-name-at-point' to
`file-name-at-point-functions'.
2009-11-25 17:11:29 +00:00
Juri Linkov
e2685eb734 (ffap-alternate-file-other-window, ffap-literally): New functions.
(find-file-literally-at-point): Alias of `ffap-literally'.
2009-11-12 10:41:50 +00:00
Juanma Barranquero
32226619c5 Use called-interactively-p' instead of interactive-p'. 2009-10-02 03:48:36 +00:00
Glenn Morris
2b2eb43148 (ffap-file-at-point): Handle absolute (non-remote) files with line
numbers too.  (Bug#4374)
2009-09-09 02:36:38 +00:00
Glenn Morris
359d3f49ef (ffap): Remove defunct URL from custom group. 2009-07-06 00:50:51 +00:00
Glenn Morris
4648ccdf96 (ffap-version): Make it an obsolete alias for emacs-version.
(top-level): Move provide to the end.
2009-07-06 00:49:25 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Lute Kamstra
9201cc281b * align.el:
* allout.el:
* apropos.el:
* arc-mode.el:
* autoinsert.el:
* avoid.el:
* battery.el:
* bookmark.el:
* buff-menu.el:
* calculator.el:
* chistory.el:
* cmuscheme.el:
* comint.el:
* compare-w.el:
* dabbrev.el:
* delim-col.el:
* desktop.el:
* diff-mode.el:
* diff.el:
* dired-aux.el:
* dired-x.el:
* dired.el:
* dos-vars.el:
* ediff-diff.el:
* ediff-help.el:
* ediff-init.el:
* ediff-merg.el:
* ediff-mult.el:
* ediff-ptch.el:
* ediff-vers.el:
* ediff-wind.el:
* ediff.el:
* emerge.el:
* facemenu.el:
* faces.el:
* ffap.el:
* filecache.el:
* find-dired.el:
* font-core.el:
* font-lock.el:
* forms.el:
* fringe.el:
* help-at-pt.el:
* hippie-exp.el:
* ido.el:
* image-file.el:
* imenu.el:
* indent.el:
* info.el:
* isearchb.el:
* iswitchb.el:
* jit-lock.el:
* jka-compr.el:
* log-edit.el:
* lpr.el:
* ls-lisp.el:
* man.el:
* menu-bar.el:
* midnight.el:
* mouse-sel.el:
* mouse.el:
* msb.el:
* outline.el:
* paren.el:
* pcmpl-cvs.el:
* pcmpl-gnu.el:
* pcomplete.el:
* pcvs-info.el:
* pcvs-parse.el:
* printing.el:
* ps-mule.el:
* ps-print.el:
* replace.el:
* ruler-mode.el:
* saveplace.el:
* sb-image.el:
* scroll-bar.el:
* sha1.el:
* shadowfile.el:
* shell.el:
* sort.el:
* speedbar.el:
* strokes.el:
* tempo.el:
* term.el:
* terminal.el:
* time-stamp.el:
* time.el:
* tree-widget.el:
* type-break.el:
* vc-cvs.el:
* vc-hg.el:
* vc-mcvs.el:
* vc-rcs.el:
* vc-sccs.el:
* vc.el:
* view.el:
* w32-vars.el:
* whitespace.el:
* wid-edit.el: Remove leading * from docstrings of defcustoms,
deffaces, defconsts and defuns.
2008-12-03 05:48:14 +00:00
Glenn Morris
4dd7f3750f (ffap-fixup-url): Don't call url-normalize-url. (Bug#898) 2008-09-25 07:45:35 +00:00
Stefan Monnier
b251c64956 (ffap-string-at-point-mode-alist): Use alpha rather than lower. 2008-06-10 19:33:37 +00:00
Stefan Monnier
1961ef0413 (ffap-prompter): Don't use the region. 2008-06-05 19:14:34 +00:00
Glenn Morris
eb3fa2cfcf Switch to recommended form of GPLv3 permissions notice. 2008-05-06 08:06:51 +00:00
Stefan Monnier
984ddcbcef (ffap-read-file-or-url): Do not abuse completing-read's
`predicate' argument to pass non-predicate data.
(ffap-read-url-internal, ffap-read-file-or-url-internal):
Use second arg as proper predicate.
2008-04-21 21:01:38 +00:00
Stefan Monnier
cbee283dd7 Fix up comment convention on the arch-tag lines. 2008-04-10 14:10:46 +00:00
Miles Bader
b03f96dc5a Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1074
2008-02-24 10:09:07 +00:00
Glenn Morris
0a66ac10cf (ffap-rfc-directories): Add :version. 2008-02-11 04:07:14 +00:00
Glenn Morris
8a79813700 Kevin Ryde <user42 at zip.com.au>
(ffap-rfc-directories): New variable.
(ffap-rfc): Look in those dirs before offering ffap-rfc-path.
2008-02-11 04:06:27 +00:00
Juanma Barranquero
9b9a412286 *** empty log message *** 2008-02-05 11:51:30 +00:00
Glenn Morris
d4f7fdc601 (ffap-alist): Remove space from RFC regexp. 2008-01-18 05:43:35 +00:00
Glenn Morris
d65fc712a6 (ffap-string-at-point-mode-alist): Add `\' to file entry, for Windows. 2008-01-09 04:17:56 +00:00
Glenn Morris
f134080ea2 (ffap-string-at-point-mode-alist): Add `\' to file entry, for Windows. 2008-01-09 04:17:04 +00:00
Stefan Monnier
ea27e496b7 (ffap-read-file-or-url): Don't use let-binding to temporarily
add a file-name handler.
2008-01-09 02:16:47 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
409cc4a3ea Add 2008 to copyright years. 2008-01-07 02:45:14 +00:00
Michael Albinus
d8df128099 * ffap.el (ffap-read-file-or-url): Let-bind
`file-name-handler-alist' due to `rfn-eshadow-update-overlay'.
2008-01-06 14:06:37 +00:00
Glenn Morris
eb22a8c3bf (w3-view-this-url): Declare as a function. 2007-11-29 04:25:49 +00:00
Glenn Morris
36b5be6bd4 (ffap-bug, ffap-submit-bug): Redefine as obsolete aliases for
report-emacs-bug.
(gnus-summary-select-article, gnus-configure-windows): Declare as functions.
2007-11-27 04:07:26 +00:00
Juanma Barranquero
dabec3c9cd (ffap-replace-file-component): Use mapc' rather than mapcar'. 2007-09-25 11:03:35 +00:00
Miles Bader
9aecacd08a Merge from emacs--rel--22
Patches applied:

 * emacs--rel--22  (patch 70-73)

   - Update from CVS

2007-07-25  Glenn Morris  <rgm@gnu.org>

   * Relicense all FSF files to GPLv3 or later.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
2007-07-26 05:28:10 +00:00
Glenn Morris
b4aa60262c Switch license to GPLv3 or later. 2007-07-25 04:50:21 +00:00
Martin Rudalics
0fdc185e75 (dired-at-point-prompter): Improve prompt in
list-directory case.
2007-07-02 05:52:28 +00:00
Glenn Morris
d35829ffc5 (ffap-file-at-point): Lower the priority of the
ffap-ftp-sans-slash-regexp check.
2007-04-07 02:58:53 +00:00
Stefan Monnier
5362ba5339 (ffap-next-regexp, ffap-machine-p, ffap-newsgroup-regexp)
(ffap-newsgroup-p, ffap-alist, ffap-string-at-point-mode-alist)
(ffap-url-at-point): Use char-classes rather than "a-z".
2007-01-10 23:48:04 +00:00
Glenn Morris
e91081eb9e Update copyright years. 2006-12-05 06:15:26 +00:00
Richard M. Stallman
c45f4fd947 No maintainer now. 2006-11-06 15:50:28 +00:00
Eli Zaretskii
7b8e334c0d (ffap-rfc-path): Change the address of the RFC repository to
ftp.rfc-editor.org, as ds.internic.net seems to be gone.
2006-10-01 17:11:58 +00:00
John Paul Wallington
07556e354b (ffap-read-file-or-url): Bind `completion-ignore-case' to value of
`read-file-name-completion-ignore-case'.  From Ryan Yeske.
2006-02-19 23:28:42 +00:00
Juri Linkov
dfe7296633 (ffap) <defface>: Add explicit face declaration.
(ffap-highlight): Use face `ffap' directly instead of checking
for its existence.
2006-02-17 21:54:17 +00:00
Richard M. Stallman
516bf0ee5f Comment changes. 2006-02-12 20:30:49 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Eli Zaretskii
e27de09e24 (ffap-menu-rescan): Use inhibit-read-only instead of binding
buffer-read-only to nil.
2005-11-19 12:18:37 +00:00
Romain Francoise
57eb2e2490 (find-file-at-point): Doc fix. 2005-10-18 09:46:34 +00:00
Richard M. Stallman
9890a22957 (gnus-summary-buffer, gnus-article-buffer): Add defvars. 2005-08-09 02:53:19 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Juri Linkov
5b523a7744 (ffap-pass-wildcards-to-dired): New user option to
ensure dired always handles wildcards passed to ffap.
(find-file-at-point): Use it.
(ffap-dired-wildcards): Doc fix.
2005-04-07 15:44:30 +00:00
Richard M. Stallman
186369d4ac (ffap-string-at-point-mode-alist): Add "*" to url chars,
it can appear unencoded and has been seen from yahoo.
2004-12-27 15:41:08 +00:00
Juri Linkov
c99310d548 (ffap-dired-wildcards): Set default to "[*?][^/]*\\'". Doc fix.
(ffap-directory-finder): New variable.
(ffap-string-at-point-mode-alist): Add * and ? to `file'.
(ffap-file-at-point): Add /* to immediately rejected names.
Return absolute file names matching ffap-dired-wildcards.
(ffap-read-file-or-url): Set default value for `completing-read'
to `buffer-file-name'.
(find-file-at-point): When filename matches ffap-dired-wildcards,
call ffap-file-finder with t arg `wildcards', instead of dired.
(ffap-other-window, ffap-other-frame): Return visited buffers.
(ffap-read-only, ffap-read-only-other-window)
(ffap-read-only-other-frame, ffap-alternate-file): New commands.
(dired-at-point): Call ffap-directory-finder instead of dired.
(ffap-dired-other-window, ffap-dired-other-frame)
(ffap-list-directory): New commands.
(ffap-bindings): New keybindings for new commands.
2004-12-13 05:16:25 +00:00