[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: M-%, in query-replace, offers less-than-ideal default replacement te
From: |
Juri Linkov |
Subject: |
Re: M-%, in query-replace, offers less-than-ideal default replacement text |
Date: |
Tue, 19 Jun 2007 11:01:29 +0300 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) |
> I don't think it makes sense to see "foo" here, since "foo" was never
> used as replacement text.
It seems what you want is a separate history for each of from/to prompts.
You can do this by the following settings:
(defvar query-replace-from-history nil)
(defvar query-replace-to-history nil)
(setq query-replace-from-history-variable 'query-replace-from-history)
(setq query-replace-to-history-variable 'query-replace-to-history)
`query-replace-from-history-variable' and `query-replace-to-history-variable'
are both defcustoms, but using Customize to set them doesn't make much sense,
because anyway you have to put code in .emacs declaring new history variables
with defvar.
--
Juri Linkov
http://www.jurta.org/emacs/