bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: It is prompting me for a filename. I would like to fill in the curre


From: Dan Jacobson
Subject: Re: It is prompting me for a filename. I would like to fill in the current filename.
Date: 10 Apr 2002 15:28:47 +0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

And there it was, on M-n.  That means I wasted all your times.
Sorry.  Maybe I did M-p M-p M-p M-n M-n so thought I checked all
around not thinking that it was hiding on the first M-n.

Wait, the M-n is far from universal.  It is not there often:
$ LC_ALL=C emacs -q --no-site-file -nw /tmp
! ESC n
sure, you might say that I could use "*" here, but then I would
respond that I wished to edit the name.  You could say why not use w !
C-y, but I would say I've already hit ! and begun to type other things
and it is inconvenient for me to go back and hit w at this time.
Sure, C-a C-k C-g w ! C-y C-y M-y or something... inconvenient.

Anyways, let's say I had hit M-! instead of ! ... anyways, in each
case the user wishes that emacs would have the most relevant file name
at the tip of its tongue, ready for use at any time... perhaps have it
ready in one of those many registers lying around or something... the
idea is a standard key sequence that will yank it, add ^U and you get
the full path... not only usable the minibuffer, but even in the file
itself.

As often even dabbrev-expand doesn't know about the name of the
current file we're editing until we've at least saved it and have its
name in a dired or something, this feature would be handy.

Anyways, M-n will blot out anything else that you have typed in
already on that line in the minibuffer.  Also it isn't a general
solution in case we aren't in the minibuffer.
-- 
http://jidanni.org/ Taiwan(04)25854780



reply via email to

[Prev in Thread] Current Thread [Next in Thread]