GNU bug report logs -
#3746
M-r in comint mode should use isearch
Previous Next
Reported by: Dan Nicolaescu <dann <at> ics.uci.edu>
Date: Fri, 3 Jul 2009 18:20:05 UTC
Severity: normal
Done: Juri Linkov <juri <at> jurta.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
This is an automatic notification regarding your bug report
which was filed against the emacs package:
#3746: M-r in comint mode should use isearch
It has been closed by Juri Linkov <juri <at> jurta.org>.
Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Juri Linkov <juri <at> jurta.org> by
replying to this email.
--
3746: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3746
Emacs Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
>> What would be the "UI" (e.g. key-binding) for it?
>> Only the comint-history-isearch defcustom?
>
> One way to use this feature is to configure `comint-history-isearch' to
> a non-nil value. But I think it should be nil by default because after
> trying to use it with non-nil values I found it counterintuitive since
> in comint mode on typing `C-r' I expect it to search in the comint output,
> not in the input history.
>
> There is no such problem in bash where C-r searches in the input history,
> since there is no way to search in the bash output.
>
> So we need another key to search in the history. However, this is
> a controversial issue, so I will defer to others to decide what key
> to use for that. (In the code I sent, there is a command
> `comint-history-isearch-backward' that could be bound to any key.)
To help to select a key binding, below is a table of current key bindings:
* Bash:
M-p non-incremental-reverse-search-history
M-n non-incremental-forward-search-history
M-r revert-line
C-r reverse-search-history
C-s forward-search-history
C-p previous-history
C-n next-history
* Emacs comint mode:
M-p comint-previous-input
M-n comint-next-input
M-r comint-previous-matching-input
M-s comint-next-matching-input
C-r isearch-backward
C-s isearch-forward
C-p previous-line
C-n next-line
So I now agree with the subject of bug#3746 that says
"M-r in comint mode should use isearch"
I marked bug#3746 as closed with M-r bound to the new command that uses
Isearch, added corresponding menu items, removed M-s (that was
symmetrical to M-r) to expose the global key binding M-s for comint
with removing one problem from the list of problems in FOR-RELEASE
that used to say:
3. Shell mode binds `M-s' to `comint-next-matching-input'.
This key binding can be changed later when we will implement
incremental search through the shell history.
--
Juri Linkov
http://www.jurta.org/emacs/
[Message part 3 (message/rfc822, inline)]
When using the minibuffer for example doing:
M-x
then
C-r
will use isearch to search the history. This is nice because it shows
the items that are matched.
M-r should to the same thing when used in comint, right now it's hard to
tell if it matches anything before typing RET
This bug report was last modified 15 years and 173 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.