From: Benjamin Rutt <rutt.4+news@osu.edu>
Subject: Re: make ffap wildcard-friendly
Date: Fri, 18 Mar 2005 10:30:50 -0500 [thread overview]
Message-ID: <87ll8lynrp.fsf@penguin.brutt.org> (raw)
In-Reply-To: mailman.2869.1101932669.27204.bug-gnu-emacs@gnu.org
I realize that a related change has now been checked into Emacs CVS.
A related lisp/Changelog entry from 2004-12-12 Juri Linkov <juri@jurta.org>:
(find-file-at-point): When filename matches ffap-dired-wildcards, call
ffap-file-finder with t arg `wildcards', instead of dired.
I find that this change interrupts my workflow, as I'm so used to
doing e.g. C-x C-f /tmp/log.* RET etc, to get a nice dired listing of
files, and then I can choose one. Would you consider making the new
behavior an option which is enabled by default which I can then
disable, to preserve my normal workflow? How about the following
patch. Let me know you think.
Thanks,
Benjamin Rutt
*** ffap.el.orig Fri Mar 18 09:59:28 2005
--- ffap.el Fri Mar 18 10:28:48 2005
***************
*** 217,226 ****
"*A regexp matching filename wildcard characters, or nil.
If `find-file-at-point' gets a filename matching this pattern,
! it passes it on to `find-file' with non-nil WILDCARDS argument,
! which expands wildcards and visits multiple files. To visit
! a file whose name contains wildcard characters you can suppress
! wildcard expansion by setting `find-file-wildcards'.
If `dired-at-point' gets a filename matching this pattern,
it passes it on to `dired'."
--- 217,230 ----
"*A regexp matching filename wildcard characters, or nil.
If `find-file-at-point' gets a filename matching this pattern,
! and `ffap-always-pass-wildcards-to-dired' is nil, it passes it on
! to `find-file' with non-nil WILDCARDS argument, which expands
! wildcards and visits multiple files. To visit a file whose name
! contains wildcard characters you can suppress wildcard expansion
! by setting `find-file-wildcards'. If `find-file-at-point' gets a
! filename matching this pattern and
! `ffap-always-pass-wildcards-to-dired' is non-nil, it passes it on
! to `dired'.
If `dired-at-point' gets a filename matching this pattern,
it passes it on to `dired'."
***************
*** 230,235 ****
--- 234,245 ----
)
:group 'ffap)
+ (defcustom ffap-always-pass-wildcards-to-dired nil
+ "*If non-nil, than always pass filenames matching
+ `ffap-dired-wildcards' to dired."
+ :type 'boolean
+ :group 'ffap)
+
(defcustom ffap-newfile-prompt nil
;; Suggestion from RHOGEE, 11 Jul 1994. Disabled, I think this is
;; better handled by `find-file-not-found-hooks'.
***************
*** 1388,1393 ****
--- 1398,1407 ----
(funcall ffap-url-fetcher filename)))
((and ffap-dired-wildcards
(string-match ffap-dired-wildcards filename)
+ ffap-always-pass-wildcards-to-dired)
+ (dired filename))
+ ((and ffap-dired-wildcards
+ (string-match ffap-dired-wildcards filename)
find-file-wildcards
;; Check if it's find-file that supports wildcards arg
(memq ffap-file-finder '(find-file
find-alternate-file)))
next prev parent reply other threads:[~2005-03-18 15:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1377.1101361274.27204.bug-gnu-emacs@gnu.org>
2004-12-01 16:25 ` make ffap wildcard-friendly Kevin Rodgers
2004-12-01 20:11 ` Juri Linkov
[not found] ` <mailman.2869.1101932669.27204.bug-gnu-emacs@gnu.org>
2005-03-18 15:30 ` Benjamin Rutt [this message]
2005-03-18 17:16 ` Juri Linkov
2004-11-25 1:01 Dan Jacobson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ll8lynrp.fsf@penguin.brutt.org \
--to=rutt.4+news@osu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.