summaryrefslogtreecommitdiff
path: root/doc/lispref
diff options
context:
space:
mode:
authorGregory Heytings <gregory@heytings.org>2023-07-09 19:27:12 +0000
committerGregory Heytings <gregory@heytings.org>2023-07-09 19:28:29 +0000
commit419b4d44914701cedf308df58c3e5789715c87e7 (patch)
tree566e9aedcf9c299f9fa136dd85adc2b492b86e7e /doc/lispref
parentbe34e8294affeaa3e1d92731b9a75fc62fbdca15 (diff)
downloademacs-419b4d44914701cedf308df58c3e5789715c87e7.tar.gz
emacs-419b4d44914701cedf308df58c3e5789715c87e7.tar.bz2
emacs-419b4d44914701cedf308df58c3e5789715c87e7.zip
; Improve documentation of with-restriction
* lisp/subr.el (with-restriction): * doc/lispref/positions.texi (Narrowing): Make it clear that the argument is evaluated and that the result of the evaluation must not be nil.
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/positions.texi3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/lispref/positions.texi b/doc/lispref/positions.texi
index e74a165b9ed..3d769bfe78a 100644
--- a/doc/lispref/positions.texi
+++ b/doc/lispref/positions.texi
@@ -1169,7 +1169,8 @@ saved bounds. In that case it is equivalent to
@cindex labeled narrowing
@cindex labeled restriction
-When the optional argument @var{label}, a symbol, is present, the
+When the optional argument @var{label}, which is evaluated to get the
+label to use and must yield a non-@code{nil} value, is present, the
narrowing is @dfn{labeled}. A labeled narrowing differs from a
non-labeled one in several ways: