emacs-devel
[Top][All Lists]
Advanced

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

Re: insert-file-name-into-minibuffer


From: Marcin Borkowski
Subject: Re: insert-file-name-into-minibuffer
Date: Sat, 09 Feb 2019 22:38:53 +0100
User-agent: mu4e 1.1.0; emacs 27.0.50

On 2019-02-09, at 22:30, Alexander Klimov <address@hidden> wrote:

> On Sat, 9 Feb 2019, Eli Zaretskii wrote:
>> > It is quite common to insert the name of the current file into the 
>> > argument of shell-command or compile command (both use 
>> > read-shell-command). I wonder what it the preferred way to do it?
>> 
>> Doesn't M-n in the minibuffer already do that?
>
> Thanks, never knew it works in read-shell-command this way!
>
> OTOH, next-history-element replaces the whole line even if one 
> already typed `gcc ...' and does not allow to insert the file name 
> with full path.
>
> Speaking of buffer file names, probably there should also be a more 
> direct way to copy the full path of the current file than C-x C-f M-n 
> C-S-backspace.

Not entirely what you're looking for, but are you aware of `w', `C-u w'
and `C-u 0 w' in Dired?

Hth,

-- 
Marcin Borkowski
http://mbork.pl



reply via email to

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