]> git.eshelyaron.com Git - emacs.git/commit
Clarify add-to-list documentation (bug#39373)
authorMattias Engdegård <mattiase@acm.org>
Sat, 1 Feb 2020 19:11:11 +0000 (20:11 +0100)
committerMattias Engdegård <mattiase@acm.org>
Sat, 1 Feb 2020 21:26:57 +0000 (22:26 +0100)
commitd07f177382b24945e1f579744702908b33605c3e
tree3f4b24a1365b2fafd2a3b6b458662408f8418287
parentd3d2ea927c19aed1eb74d60066627f13a4bc27d5
Clarify add-to-list documentation (bug#39373)

While add-to-list often works with lexical variables, this is a hack
that isn't always effective; better tell the user not to try.

* doc/lispref/lists.texi (List Variables): Add a note about lexical
variables to the add-to-list description.  Fix the equivalent code.
* lisp/subr.el (add-to-list): Amend doc string.
doc/lispref/lists.texi
lisp/subr.el