[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25292: Ambiguity in doc string of defvar
From: |
Alan Mackenzie |
Subject: |
bug#25292: Ambiguity in doc string of defvar |
Date: |
Thu, 29 Dec 2016 18:18:38 +0000 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
Hello, Emacs.
The doc string for defvar includes this bit:
The optional argument INITVALUE is evaluated, and used to set
SYMBOL, only if SYMBOL's value is void.
Supposing SYMBOL's value is bound. Clearly it does not get set to
INITVALUE. But in this case is INITVALUE evaluated (and the result
discarded) or not? The text leaves this ambiguous. An improvement
would be the appropriate one of the following:
If SYMBOL's value is void, the optional argument INITVALUE is
evaluated and used to set SYMBOL.
INITVALUE is evaluated, and if SYMBOL's value is void, it is used to
set SYMBOL.
--
Alan Mackenzie (Nuremberg, Germany).
- bug#25292: Ambiguity in doc string of defvar,
Alan Mackenzie <=
- bug#25292: Ambiguity in doc string of defvar, Eli Zaretskii, 2016/12/29
- bug#25292: Ambiguity in doc string of defvar, Alan Mackenzie, 2016/12/29
- bug#25292: Ambiguity in doc string of defvar, Eli Zaretskii, 2016/12/29
- bug#25292: Ambiguity in doc string of defvar, Alan Mackenzie, 2016/12/29
- bug#25292: Ambiguity in doc string of defvar, Eli Zaretskii, 2016/12/30
- bug#25292: Ambiguity in doc string of defvar, Alan Mackenzie, 2016/12/30
- bug#25292: Ambiguity in doc string of defvar, Eli Zaretskii, 2016/12/30