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 curr


From: Kevin Rodgers
Subject: Re: It is prompting me for a filename. I would like to fill in the current filename.
Date: Wed, 10 Apr 2002 10:46:56 -0600

Dan Jacobson wrote:

> 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.

Depress the clutch pedal before moving the gear shifter.

> 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.

I do NOT want Emacs manipulating the kill ring behind my back.

> 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.

That's an interesting idea.  Perhaps a dabbrev user can implement it.

> Anyways, M-n will blot out anything else that you have typed in
> already on that line in the minibuffer.

Either use M-n first, or kill whatever you've already typed into the
minibuffer so you can yank it back after M-n.

> Also it isn't a general
> solution in case we aren't in the minibuffer.

But your orginal bug report begins:
>>Let's say we are in the minibuffer answering a C-x C-w question or a
>>dired R or C question.  Wouldn't it be great if there were a keystroke
>>at this point to insert the current filename... as we probably just
>>want to make minor adjustments to it.

-- 
Kevin Rodgers <kevinr@ihs.com>



reply via email to

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