* command line shortcut to (dired "zz/yy*")
@ 2005-11-23 16:51 Dan Jacobson
2005-11-23 20:28 ` Kevin Rodgers
0 siblings, 1 reply; 2+ messages in thread
From: Dan Jacobson @ 2005-11-23 16:51 UTC (permalink / raw)
Maybe
$ emacs zz/yy\*
should act like (dired "zz/yy*" nil) instead of current "new file"
action. Hmmm, there are pros and cons and maybe this is no big deal.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: command line shortcut to (dired "zz/yy*")
2005-11-23 16:51 command line shortcut to (dired "zz/yy*") Dan Jacobson
@ 2005-11-23 20:28 ` Kevin Rodgers
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2005-11-23 20:28 UTC (permalink / raw)
Dan Jacobson wrote:
> Maybe
> $ emacs zz/yy\*
> should act like (dired "zz/yy*" nil) instead of current "new file"
> action. Hmmm, there are pros and cons and maybe this is no big deal.
"Emacs is the extensible, customizable, self-documenting real-time
display editor."
There are at least a couple ways you can accomplish that:
1. Start Emacs like this: emacs --eval '(dired "zz/yy*")'
2. Put this in your .emacs:
(add-hook 'find-file-not-found-hooks
(lambda ()
;; see find-file-noselect:
(if (and find-file-wildcards
(not (string-match "\\`/:" buffer-file-name))
(string-match "[[*?]" buffer-file-name))
(progn
(dired buffer-file-name)
t))))
But if you aren't even sure that you want this feature, why are you
posting to <bug-gnu-emacs@gnu.org>?
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-23 20:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-23 16:51 command line shortcut to (dired "zz/yy*") Dan Jacobson
2005-11-23 20:28 ` Kevin Rodgers
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).