GNU bug report logs - #38886
(read-variable) documentation doesn't match behavior

Previous Next

Package: emacs;

Reported by: Douglas Lewan <d.lewan2000 <at> gmail.com>

Date: Fri, 3 Jan 2020 02:29:02 UTC

Severity: minor

Tags: fixed

Fixed in version 28.1

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

Bug is archived. No further changes may be made.

Full log


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

From: Douglas Lewan <d.lewan2000 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: (read-variable) documentation doesn't match behavior
Date: Thu, 2 Jan 2020 21:28:25 -0500
According to the documentation for (read-variable), this sexp 
(read-variable "?" '(all one top)) should return all if there's no 
input. It, however, signals an error instead: Wrong type argument: 
stringp, all. Indeed, this sexp (read-variable "?" '("all" "one" "top")) 
does return the symbol all

I'm guessing that that is in fact the intended behavior. (In the C code 
that seems to be the case.) However, the documentation is ambiguous. The 
first paragraph of the documentation would better end "... if it is a 
list of strings."

-- 
,Doug
d.lewan2000 <at> gmail.com
(908) 720 7908





This bug report was last modified 4 years and 273 days ago.

Previous Next


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