GNU bug report logs - #3746
M-r in comint mode should use isearch

Previous Next

Package: emacs;

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

From: Juri Linkov <juri <at> jurta.org>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: 3746 <at> debbugs.gnu.org, Dan Nicolaescu <dann <at> ics.uci.edu>
Subject: bug#3746: M-r in comint mode should use isearch
Date: Fri, 20 Nov 2009 11:28:09 +0200
>> Please see the attached code that implements isearch in comint mode.
>
> 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.)

-- 
Juri Linkov
http://www.jurta.org/emacs/



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.