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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13404 in the body.
You can then email your comments to 13404 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#13404; Package emacs. (Thu, 10 Jan 2013 15:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Le Wang <l26wang <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 10 Jan 2013 15:19:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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 1 (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)]

Reply sent to Chong Yidong <cyd <at> gnu.org>:
You have taken responsibility. (Wed, 18 Dec 2013 03:04:02 GMT) Full text and rfc822 format available.

Notification sent to Le Wang <l26wang <at> gmail.com>:
bug acknowledged by developer. (Wed, 18 Dec 2013 03:04:02 GMT) Full text and rfc822 format available.

Message #10 received at 13404-done <at> debbugs.gnu.org (full text, mbox):

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.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 15 Jan 2014 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 110 days ago.

Previous Next


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