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 #23 received at 9557 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> jurta.org>
To: Dani Moncayo <dmoncayo <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 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 19:54:11 +0300
>> 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.
>
> Ah, ok.
>
> In my case, I find that echo a bit unnecessary/disconcerting (hence
> this bug report).
>
> What about adding a variable to control that echo (with default value
> "on", to keep the current behavior untouched)?

You can put in your .emacs:

(defadvice y-or-n-p (around y-or-n-p act)
  (let ((answer ad-do-it))
    (message "")
    answer))




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.