emacs-devel
[Top][All Lists]
Advanced

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

Re: key to yank text at point into minibuffer?


From: Juri Linkov
Subject: Re: key to yank text at point into minibuffer?
Date: Tue, 14 Feb 2006 03:45:57 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

> Providing `M-.' lets you get the text at point even when the command's
> default value is something else. You can think of it as an extension to
> `M-n' in this respect.

Then why not use `M-n' directly, with every successive `M-n' inserting the
next symbol/URL/file name to the minibuffer?  I have a simple patch that
does this for the grep prompt, but it was held due to the feature freeze.
However, to implement a replacement for ffap, it should be improved further
to allow extending the list of default values with more user-defined values.
I.e. instead of giving the list of default values as an argument of one of
the minibuffer functions, there should be a new buffer-local variable with
a user-defined function to get some text from the buffer and add it to
the list of default values.

-- 
Juri Linkov
http://www.jurta.org/emacs/





reply via email to

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