GNU bug report logs - #65348
INITIAL-INPUT in completing-read repeats same entry twice consecutively

Previous Next

Package: emacs;

Reported by: Heime <heimeborgia <at> protonmail.com>

Date: Thu, 17 Aug 2023 00:48:01 UTC

Severity: normal

Tags: notabug

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Heime <heimeborgia <at> protonmail.com>
Cc: 65348 <at> debbugs.gnu.org
Subject: bug#65348: INITIAL-INPUT in completing-read repeats same entry twice consecutively
Date: Fri, 18 Aug 2023 08:36:57 +0300
> Date: Fri, 18 Aug 2023 05:13:46 +0000
> From: Heime <heimeborgia <at> protonmail.com>
> Cc: 65348 <at> debbugs.gnu.org
> 
> > You can have it there. It does work.
> 
> But you are designating it as deprecated, which makes others think that something
> awful is going to happen to it.

The manual tells you what to do instead.

> > Why do you need INITIAL?
> 
> I want the user to see a default without having him to get it with the bloody "M-n".

That's not how you show the default to the user.  The way to show the
default to the user is to include it in the prompt, like so:

   Type your choice (default foo):




This bug report was last modified 1 year and 276 days ago.

Previous Next


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