unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#38886: (read-variable) documentation doesn't match behavior
@ 2020-01-03  2:28 Douglas Lewan
  2020-08-21 14:56 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Douglas Lewan @ 2020-01-03  2:28 UTC (permalink / raw)
  To: 38886

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@gmail.com
(908) 720 7908






^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#38886: (read-variable) documentation doesn't match behavior
  2020-01-03  2:28 bug#38886: (read-variable) documentation doesn't match behavior Douglas Lewan
@ 2020-08-21 14:56 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2020-08-21 14:56 UTC (permalink / raw)
  To: Douglas Lewan; +Cc: 38886

Douglas Lewan <d.lewan2000@gmail.com> writes:

> 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."

Yup.  I've now fixed the doc string in the way you suggest in Emacs 28.

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-21 14:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-03  2:28 bug#38886: (read-variable) documentation doesn't match behavior Douglas Lewan
2020-08-21 14:56 ` Lars Ingebrigtsen

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