GNU bug report logs - #9557
24.0.50; "y-or-n-p" does not clear the echo area

Previous Next

Package: emacs;

Reported by: Dani Moncayo <dmoncayo <at> gmail.com>

Date: Tue, 20 Sep 2011 09:26:02 UTC

Severity: normal

Tags: notabug, wontfix

Found in version 24.0.50

Done: Juri Linkov <juri <at> jurta.org>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dani Moncayo <dmoncayo <at> gmail.com>
Cc: 9557 <at> debbugs.gnu.org
Subject: Re: bug#9557: 24.0.50; "y-or-n-p" does not clear the echo area
Date: Tue, 20 Sep 2011 06:00:58 -0400
> Date: Tue, 20 Sep 2011 11:19:54 +0200
> From: Dani Moncayo <dmoncayo <at> gmail.com>
> 
> 1. Eval: (fset 'yes-or-no-p 'y-or-n-p)
> 2. Visit some file.
> 3. M-x revert-buffer <RET> y
> --> (Expected) The echo area ends up empty (as happens if you omit step #1).
> --> (Observed) The echo area remains with a residual text "Revert
> buffer from file <your-file>? (y or n)  y".

y-or-n-p deliberately displays the prompt with your response before it
returns to the caller, see the source.  It does that because
otherwise you would not have a chance of observing your response.




This bug report was last modified 13 years and 327 days ago.

Previous Next


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