GNU bug report logs - #38785
26.3; `y-or-n-p' leaves prompt and response in echo area

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Sat, 28 Dec 2019 22:58:02 UTC

Severity: wishlist

Found in version 26.3

Full log


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

From: Drew Adams <drew.adams <at> oracle.com>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 38785 <at> debbugs.gnu.org
Subject: RE: bug#38785: 26.3; `y-or-n-p' leaves prompt and response in echo
 area
Date: Sun, 29 Dec 2019 06:08:07 -0800 (PST)
> > I think `y-or-n-p' should probably just use
> > `(sit-for 1)' after it shows the prompt + answer,
> 
> That would always delay the caller of y-or-n-p by one
> second.  I'm pretty sure that would be highly annoying.

1. Not always delay.  It's sit-for, not sleep-for,
   after all.  Have you tried it?  I haven't noticed
   a problem with it so far, but there are no doubt
   lots of possible use cases.

2. More annoying than the problem it aims to solve?

3. Alternative solutions are welcome.

The basic problem stems from `read-key' prompting
in the echo area.  That's really not ideal, at
least in some contexts.  (But making it read using
the minibuffer would be an even bigger mistake,
IMO.)





This bug report was last modified 5 years and 170 days ago.

Previous Next


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