[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Some further ideas for Isearch
From: |
Juri Linkov |
Subject: |
Re: Some further ideas for Isearch |
Date: |
Thu, 29 Apr 2021 00:11:41 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
>> This is what 'M-n' bound to 'isearch-ring-advance' currently does
>> to search for the next item in the search ring.
>
> But the top element is the oldest, the next one to be forgotten, right?
> Why would this be remotely as interesting than first seeing the region,
> word, symbol, sexp at point?
Indeed, it would be nice to have 'C-s M-n' to get the next thing at point.
> Speaking of the search ring(s): Now that the search mode is saved as
> properties in the history elements, can we get rid of separate histories
> for regexp and regular searches?
The value of isearch-regexp is not saved as a property in the history.
> I see at least two reasons for this:
>
> - If you use regexp search by default, it's very annoying to resume a
> previous symbol-at-point search.
Please elaborate. Do you rebind C-s to isearch-forward-regexp,
then after using isearch-forward-symbol, can't repeat it with C-s?
Does something like this do the right thing for you?
(defvaralias 'regexp-search-ring 'search-ring)
> - Given one regexp and one literal history item, you can't know which is
> oldest.
>
> Now, of course you are going to say this needs to be a defcustom, so
> I'm already going to ask: can it be on by default?
Changing the default is a very sensitive topic.