I don't really want s-g to exit the Isearch minor mode but it does. The reason this is happening to me is unclear, because investigation of the binding of s-g reveals it is supposed to be a standard isearch-repeat-forward
. So it seems that Emacs has gotten into a state where two keys bound to the same thing have different behavior.
Question: Why is Emacs behaving this way, how is it happening, and is this intended behavior?
- Edit contents of /tmp/blah.txt to be:
something
something
- emacs -Q /tmp/blah.txt
- s-fsomething -- modeline should now indicate you are in Isearch minor mode
- Enter C-hks-g -- note that output indicates both s-g and C-s are bound to this function (isearch-repeat-forward)
s-g runs the command isearch-repeat-forward (found in global-map),
which is an interactive compiled Lisp function in ‘isearch.el’.
It is bound to C-s, C-M-s, <menu-bar> <search-menu>
<isearch-repeat-forward>, s-g.
Press one of
- s-g -- modeline indicates Isearch minor mode is no longer active
- C-s -- modeline indicates Isearch minor mode is still active
Start over and press the key you didn't press in step 4
My Emacs About panel indicates Version 28.0.50 (9.0)
.