GNU bug report logs - #7137
two dashes appear after long y-or-n-p's

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Wed, 29 Sep 2010 23:30:03 UTC

Severity: minor

Done: Chong Yidong <cyd <at> stupidchicken.com>

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 7137 in the body.
You can then email your comments to 7137 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 owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7137; Package emacs. (Wed, 29 Sep 2010 23:30:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to jidanni <at> jidanni.org:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 29 Sep 2010 23:30:04 GMT) Full text and rfc822 format available.

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

From: jidanni <at> jidanni.org
To: bug-gnu-emacs <at> gnu.org
Subject: two dashes appear after long y-or-n-p's
Date: Thu, 30 Sep 2010 07:31:40 +0800
(y-or-n-p "this short question is quite normal ")
(y-or-n-p "however, with this longer question, be it containing
newlines or not, if it is beyond a certain width, like this one here
is on my terminal, a very funny \"--\" appears after the question.
Test it with C-x C-e OK? ")
It doesn't happen with yes-or-no-p.
emacs-version "24.0.50.1"




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7137; Package emacs. (Thu, 30 Sep 2010 11:06:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: jidanni <at> jidanni.org
Cc: 7137 <at> debbugs.gnu.org
Subject: Re: bug#7137: two dashes appear after long y-or-n-p's
Date: Thu, 30 Sep 2010 13:08:39 +0200
> From: jidanni <at> jidanni.org
> Date: Thu, 30 Sep 2010 07:31:40 +0800
> Cc: 
> 
> (y-or-n-p "this short question is quite normal ")
> (y-or-n-p "however, with this longer question, be it containing
> newlines or not, if it is beyond a certain width, like this one here
> is on my terminal, a very funny \"--\" appears after the question.
> Test it with C-x C-e OK? ")
> It doesn't happen with yes-or-no-p.
> emacs-version "24.0.50.1"

Probably the result of revno 101415:

  2010-09-12  Stefan Monnier  <monnier <at> iro.umontreal.ca>

	  * subr.el (y-or-n-p): New function, moved from src/fns.c; use read-key.

It causes read_key_sequence to be called, which calls echo_prompt,
which calls echo_now, which calls echo_dash, which displays the
dashes.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7137; Package emacs. (Fri, 01 Oct 2010 08:03:01 GMT) Full text and rfc822 format available.

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

From: jidanni <at> jidanni.org
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 7137 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca
Subject: Re: bug#7137: two dashes appear after long y-or-n-p's
Date: Fri, 1 Oct 2010 16:05:37 +0800
On Thu, Sep 30, 2010 at 01:08:39PM +0200, Eli Zaretskii wrote:
> Probably the result of revno 101415:
> 
>   2010-09-12  Stefan Monnier  <monnier <at> iro.umontreal.ca>
> 
> 	  * subr.el (y-or-n-p): New function, moved from src/fns.c; use read-key.
> 
> It causes read_key_sequence to be called, which calls echo_prompt,
> which calls echo_now, which calls echo_dash, which displays the
> dashes.
Well they look terrible. 




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7137; Package emacs. (Mon, 04 Oct 2010 18:14:02 GMT) Full text and rfc822 format available.

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

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 7137 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#7137: two dashes appear after long y-or-n-p's
Date: Mon, 04 Oct 2010 14:16:40 -0400
Eli Zaretskii <eliz <at> gnu.org> writes:

> It causes read_key_sequence to be called, which calls echo_prompt,
> which calls echo_now, which calls echo_dash, which displays the
> dashes.

I've checked in a fix.




bug closed, send any further explanations to jidanni <at> jidanni.org Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Mon, 04 Oct 2010 18:14:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 02 Nov 2010 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 311 days ago.

Previous Next


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