[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 23.0.60; M-x occur no longer uses previous regexp as default
From: |
Juri Linkov |
Subject: |
Re: 23.0.60; M-x occur no longer uses previous regexp as default |
Date: |
Wed, 23 Apr 2008 11:59:19 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) |
>> The reason for removing the previous regexp from default was because
>> it makes more inconvenient to retrieve more available values from
>> the list of default values via M-n. But maybe we could just display
>> the previous regexp in the prompt and accept it when the user types RET
>> with the empty string, but don't make it available via M-n, because it is
>> available via M-p for inserting into the minibuffer for editing.
>
> Then why not use
>
> (let ((ret (read-string (format "Regexp (default %s): " foo))))
> (if (equal ret "") foo ret))
It seems this is the best to do where foo is (car regexp-history).
--
Juri Linkov
http://www.jurta.org/emacs/