unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Dani Moncayo <dmoncayo@gmail.com>
Cc: 9557@debbugs.gnu.org
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	[thread overview]
Message-ID: <87litj8898.fsf@mail.jurta.org> (raw)
In-Reply-To: <CAH8Pv0hV9dXUb5dZQr9tYfQfXNGUDS1Y4tcrWFfZMQRXz2OT1Q@mail.gmail.com> (Dani Moncayo's message of "Tue, 20 Sep 2011 12:27:17 +0200")

>> 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))





  reply	other threads:[~2011-09-20 16:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-20  9:19 bug#9557: 24.0.50; "y-or-n-p" does not clear the echo area Dani Moncayo
2011-09-20  9:38 ` Andreas Schwab
2011-09-20  9:43   ` Dani Moncayo
2011-09-20 10:02     ` Eli Zaretskii
2011-09-20 10:00 ` Eli Zaretskii
2011-09-20 10:27   ` Dani Moncayo
2011-09-20 16:54     ` Juri Linkov [this message]
2011-09-20 17:47       ` Dani Moncayo
2011-09-20 18:16         ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87litj8898.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=9557@debbugs.gnu.org \
    --cc=dmoncayo@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).