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: Chong Yidong <cyd <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#13404: closed (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 message dated Wed, 18 Dec 2013 11:03:20 +0800
with message-id <87haa6zwqv.fsf <at> gnu.org>
and subject line Re: bug#13404: comint-previous-matching-input-from-input is broken (as compared to bash/zsh)
has caused the debbugs.gnu.org bug report #13404,
regarding comint-previous-matching-input-from-input is broken (as compared to bash/zsh)
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> 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: 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 3 (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)]
[Message part 5 (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.


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

Previous Next


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