[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: query-replace-interactive
From: |
Richard Stallman |
Subject: |
Re: query-replace-interactive |
Date: |
Wed, 07 Jul 2004 16:58:20 -0400 |
I extended this idea to what you described above, i.e. splitting the
from-string argument in the form "FROM -> TO". This would be more
consistent with standard Emacs handling of default values, but it has
one drawback: the separator should not appear in the text to replace.
You mean "cannot appear", I think.
Yes, but we could have some escape mechanism to handle that case.
For instance, if you enter just the separator, so that the from and to
strings would be empty, it could call the minibuffer twice (the same
thing it does now) to read the from and to strings.
Perhaps a more robust method would be to use some sort of "separator"
string like you suggest, but make it not a simple string, e.g., how
about:
(defvar query-replace-separator
(propertize "\nwith: "
'read-only t
'field 'prompt
'face 'minibuffer-prompt
'rear-nonsticky t))
That is an interesting idea. Would you like to try it?
One case where this could cause some annoyance is that it
may get in the way of certain kinds of editing. We'd have to see.
- query-replace-interactive, Stefan, 2004/07/03
- Re: query-replace-interactive, Juri Linkov, 2004/07/04
- Re: query-replace-interactive, Stefan, 2004/07/04
- Re: query-replace-interactive, Juri Linkov, 2004/07/05
- Re: query-replace-interactive, Stefan, 2004/07/05
- Re: query-replace-interactive, Juri Linkov, 2004/07/06
- Re: query-replace-interactive, Richard Stallman, 2004/07/06
- Re: query-replace-interactive, Juri Linkov, 2004/07/07
- Re: query-replace-interactive, Miles Bader, 2004/07/07
- Re: query-replace-interactive, David Kastrup, 2004/07/07
- Re: query-replace-interactive,
Richard Stallman <=
- Re: query-replace-interactive, Richard Stallman, 2004/07/06
- Re: query-replace-interactive, David Kastrup, 2004/07/06
- Re: query-replace-interactive, Richard Stallman, 2004/07/06
- Re: query-replace-interactive, Stefan, 2004/07/06
- Re: query-replace-interactive, Richard Stallman, 2004/07/07
- Re: query-replace-interactive, Richard Stallman, 2004/07/06
- Re: query-replace-interactive, David Kastrup, 2004/07/06
- Re: query-replace-interactive, Richard Stallman, 2004/07/07