GNU bug report logs - #56183
29.0.50; read-from-minibuffer does not result with default value

Previous Next

Package: emacs;

Reported by: Jean Louis <bugs <at> gnu.support>

Date: Fri, 24 Jun 2022 07:39:02 UTC

Severity: normal

Tags: notabug

Found in version 29.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Visuwesh <visuweshm <at> gmail.com>
Cc: 56183 <at> debbugs.gnu.org, Jean Louis <bugs <at> gnu.support>
Subject: bug#56183: 29.0.50; read-from-minibuffer does not result with default value
Date: Fri, 24 Jun 2022 11:21:07 +0200
Visuwesh <visuweshm <at> gmail.com> writes:

> As the docstring of read-from-minibuffer says, READ should be non-nil if
> DEFAULT-VALUE is to be returned:
>
>     Sixth arg DEFAULT-VALUE, if non-nil, should be a string, which is used
>       as the default to ‘read’ if READ is non-nil and the user enters
>       empty input.  But if READ is nil, this function does _not_ return
>       DEFAULT-VALUE for empty input!  Instead, it returns the empty string.
>
> so everything works as expected.

Yup.  So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 46 days ago.

Previous Next


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