[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9557: 24.0.50; "y-or-n-p" does not clear the echo area
From: |
Juri Linkov |
Subject: |
bug#9557: 24.0.50; "y-or-n-p" does not clear the echo area |
Date: |
Tue, 20 Sep 2011 19:54:11 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) |
>> 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))