[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Isearch interaction model
From: |
Juri Linkov |
Subject: |
Re: Isearch interaction model |
Date: |
Fri, 09 Mar 2018 00:41:30 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
>>> The isearch mode should be attached to the history item. C-M-s M-p and
>>> C-s
>>> M-p should have the same effect: the "mode" is only a default for a new
>>> search. If the last search was a regex search, it'll put in you regex
>>> search mode.
>>
>> But what about keeping current behavior where C-M-s M-p pulls only
>> regexps from the regexp history. Should we break backward compatibility
>> in how it used to work?
>
> I think that behavior is an artifact of the current implementation, not
> something desirable.
String and regexp searches are fundamentally different in nature.
Regexps are useless in string-based modes, whereas strings in isearch
are interpreted by different rules according to mode: word/case-fold/...
e.g. it makes sense to switch from case-fold mode to word mode, but
not from regexp mode to literal mode.
But it you want to share string and regexp histories, it's easy to implement
by another layer of indirection like for query-replace history variables:
(defcustom query-replace-from-history-variable 'query-replace-history
(defcustom query-replace-to-history-variable 'query-replace-history
- Re: Isearch interaction model, (continued)
- Re: Isearch interaction model, Clément Pit-Claudel, 2018/03/04
- Re: Isearch interaction model, Juri Linkov, 2018/03/04
- Re: Isearch interaction model, Daniel Colascione, 2018/03/04
- Re: Isearch interaction model, Eli Zaretskii, 2018/03/04
- Re: Isearch interaction model, Juri Linkov, 2018/03/05
- Re: Isearch interaction model, Juri Linkov, 2018/03/04
- Re: Isearch interaction model, Juri Linkov, 2018/03/06
- Re: Isearch interaction model, dancol, 2018/03/06
- Re: Isearch interaction model, Juri Linkov, 2018/03/07
- Re: Isearch interaction model, dancol, 2018/03/07
- Re: Isearch interaction model,
Juri Linkov <=
- Re: Isearch interaction model, Daniel Colascione, 2018/03/09
- Re: Isearch interaction model, Juri Linkov, 2018/03/10
- Re: Isearch interaction model, Daniel Colascione, 2018/03/10
- Re: Isearch interaction model, Juri Linkov, 2018/03/11
- Re: Isearch interaction model, Eli Zaretskii, 2018/03/11
- Re: Isearch interaction model, Daniel Colascione, 2018/03/12
- Re: Isearch interaction model, Yuri Khan, 2018/03/12
Re: Isearch interaction model (was: Let's make C-M-w in isearch yank symbol, not delete character), Richard Stallman, 2018/03/02