GNU bug report logs - #13404
comint-previous-matching-input-from-input is broken (as compared to bash/zsh)

Previous Next

Package: emacs;

Reported by: Le Wang <l26wang <at> gmail.com>

Date: Thu, 10 Jan 2013 15:19:01 UTC

Severity: minor

Tags: patch

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Le Wang <l26wang <at> gmail.com>
Subject: bug#13404: closed (Re: bug#13404: comint-previous-matching-input-from-input
 is broken (as compared to bash/zsh))
Date: Wed, 18 Dec 2013 03:04:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#13404: comint-previous-matching-input-from-input is broken (as compared to bash/zsh)

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 13404 <at> debbugs.gnu.org.

-- 
13404: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13404
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Chong Yidong <cyd <at> gnu.org>
To: Le Wang <l26wang <at> gmail.com>
Cc: 13404-done <at> debbugs.gnu.org
Subject: Re: bug#13404: comint-previous-matching-input-from-input is broken
 (as compared to bash/zsh)
Date: Wed, 18 Dec 2013 11:03:20 +0800
Le Wang <l26wang <at> gmail.com> writes:

> I like to bind comint-previous-matching-input-from-input to M-p,
> however the current behavior is to find the first match and move the
> point to the end of the line.
>
> The point should not be moved so that I can press M-p again to find
> the next match.
>
> This is how this command works in zsh and bash.

Looks reasonable.  I've committed your patch, thanks.

[Message part 3 (message/rfc822, inline)]
From: Le Wang <l26wang <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: comint-previous-matching-input-from-input is broken (as compared to
	bash/zsh)
Date: Thu, 10 Jan 2013 23:18:30 +0800
[Message part 4 (text/plain, inline)]
I like to bind comint-previous-matching-input-from-input to M-p,
however the current behavior is to find the first match and move the
point to the end of the line.

The point should not be moved so that I can press M-p again to find
the next match.

This is how this command works in zsh and bash.

Patch included.


-- 
Le
[comint.el_keep_point_in_place.diff (application/octet-stream, attachment)]

This bug report was last modified 11 years and 155 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.