diff options
| author | Juri Linkov | 2005-04-07 15:44:30 +0000 |
|---|---|---|
| committer | Juri Linkov | 2005-04-07 15:44:30 +0000 |
| commit | 5b523a77444359c9923eab9bddaf041215c379bd (patch) | |
| tree | dec9d61aa13e69b349ce7f7a75146f2ca0ffcaad /lisp | |
| parent | 34d86208a3f9039d8cfa75922ed8f66d18247a29 (diff) | |
| download | emacs-5b523a77444359c9923eab9bddaf041215c379bd.tar.gz emacs-5b523a77444359c9923eab9bddaf041215c379bd.zip | |
(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.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/ffap.el | 20 |
2 files changed, 23 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4fabd9cf65c..2dfe80fe1a3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2005-04-07 Benjamin Rutt <brutt@bloomington.in.us> | ||
| 2 | |||
| 3 | * ffap.el (ffap-pass-wildcards-to-dired): New user option to | ||
| 4 | ensure dired always handles wildcards passed to ffap. | ||
| 5 | (find-file-at-point): Use it. | ||
| 6 | (ffap-dired-wildcards): Doc fix. | ||
| 7 | |||
| 1 | 2005-04-07 Juri Linkov <juri@jurta.org> | 8 | 2005-04-07 Juri Linkov <juri@jurta.org> |
| 2 | 9 | ||
| 3 | * simple.el (next-error-overlay-arrow-position): New defvar. | 10 | * simple.el (next-error-overlay-arrow-position): New defvar. |
diff --git a/lisp/ffap.el b/lisp/ffap.el index c36ed7ff81f..89e04c0f2bd 100644 --- a/lisp/ffap.el +++ b/lisp/ffap.el | |||
| @@ -217,10 +217,13 @@ Sensible values are nil, \"news\", or \"mailto\"." | |||
| 217 | "*A regexp matching filename wildcard characters, or nil. | 217 | "*A regexp matching filename wildcard characters, or nil. |
| 218 | 218 | ||
| 219 | If `find-file-at-point' gets a filename matching this pattern, | 219 | If `find-file-at-point' gets a filename matching this pattern, |
| 220 | it passes it on to `find-file' with non-nil WILDCARDS argument, | 220 | and `ffap-pass-wildcards-to-dired' is nil, it passes it on to |
| 221 | which expands wildcards and visits multiple files. To visit | 221 | `find-file' with non-nil WILDCARDS argument, which expands |
| 222 | a file whose name contains wildcard characters you can suppress | 222 | wildcards and visits multiple files. To visit a file whose name |
| 223 | wildcard expansion by setting `find-file-wildcards'. | 223 | contains wildcard characters you can suppress wildcard expansion |
| 224 | by setting `find-file-wildcards'. If `find-file-at-point' gets a | ||
| 225 | filename matching this pattern and `ffap-pass-wildcards-to-dired' | ||
| 226 | is non-nil, it passes it on to `dired'. | ||
| 224 | 227 | ||
| 225 | If `dired-at-point' gets a filename matching this pattern, | 228 | If `dired-at-point' gets a filename matching this pattern, |
| 226 | it passes it on to `dired'." | 229 | it passes it on to `dired'." |
| @@ -230,6 +233,11 @@ it passes it on to `dired'." | |||
| 230 | ) | 233 | ) |
| 231 | :group 'ffap) | 234 | :group 'ffap) |
| 232 | 235 | ||
| 236 | (defcustom ffap-pass-wildcards-to-dired nil | ||
| 237 | "*If non-nil, pass filenames matching `ffap-dired-wildcards' to dired." | ||
| 238 | :type 'boolean | ||
| 239 | :group 'ffap) | ||
| 240 | |||
| 233 | (defcustom ffap-newfile-prompt nil | 241 | (defcustom ffap-newfile-prompt nil |
| 234 | ;; Suggestion from RHOGEE, 11 Jul 1994. Disabled, I think this is | 242 | ;; Suggestion from RHOGEE, 11 Jul 1994. Disabled, I think this is |
| 235 | ;; better handled by `find-file-not-found-hooks'. | 243 | ;; better handled by `find-file-not-found-hooks'. |
| @@ -1386,6 +1394,10 @@ See <ftp://ftp.mathcs.emory.edu/pub/mic/emacs/> for latest version." | |||
| 1386 | ((ffap-url-p filename) | 1394 | ((ffap-url-p filename) |
| 1387 | (let (current-prefix-arg) ; w3 2.3.25 bug, reported by KPC | 1395 | (let (current-prefix-arg) ; w3 2.3.25 bug, reported by KPC |
| 1388 | (funcall ffap-url-fetcher filename))) | 1396 | (funcall ffap-url-fetcher filename))) |
| 1397 | ((and ffap-pass-wildcards-to-dired | ||
| 1398 | ffap-dired-wildcards | ||
| 1399 | (string-match ffap-dired-wildcards filename)) | ||
| 1400 | (funcall ffap-directory-finder filename)) | ||
| 1389 | ((and ffap-dired-wildcards | 1401 | ((and ffap-dired-wildcards |
| 1390 | (string-match ffap-dired-wildcards filename) | 1402 | (string-match ffap-dired-wildcards filename) |
| 1391 | find-file-wildcards | 1403 | find-file-wildcards |