]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix wording of recently-added documentation
authorEli Zaretskii <eliz@gnu.org>
Thu, 15 May 2025 13:29:27 +0000 (16:29 +0300)
committerEshel Yaron <me@eshelyaron.com>
Tue, 20 May 2025 20:51:39 +0000 (22:51 +0200)
* src/eval.c (Fset_buffer_local_toplevel_value)
(Fbuffer_local_toplevel_value):
* doc/lispref/variables.texi (Default Value): Fix wording of
documentation.

(cherry picked from commit db198e0e59bff0c1cb28a591928377f5a0e9d158)

doc/lispref/variables.texi
src/eval.c

index 005db3401b12a09f01b898d933d15511d17ff957..68c49589619e9a41c719db7a1b88a25238f68bea 100644 (file)
@@ -1942,9 +1942,10 @@ the context of @var{symbol}'s let-binding.
 @end defun
 
 @cindex top-level buffer-local value
-  In addition, a variable's buffer-local value may be shadowed by a
-let-binding.  There are two further functions to get and set the
-top-level buffer-local value of a variable.
+  A variable's buffer-local value may also be shadowed by a
+let-binding.  Two functions allow getting and setting the
+top-level buffer-local value of a variable, i.e., the value outside of
+the let-binding.
 
 @defun buffer-local-toplevel-value symbol &optional buffer
 This function returns the local value for @var{symbol} in @var{buffer},
@@ -1966,10 +1967,10 @@ function causes a local value for them to exist in @var{buffer}.  If
 as the buffer-local value for the variable across changes of major mode.
 
 This is useful when you want to make a change to a buffer-local value
-that will persist after the command now being executed completes, but
+that will persist after the command now being executed completes,
 where your code may be executed with that variable let-bound.  In this
-case the usual tool for setting buffer-local values, @code{setq-local},
-will only change the value of the let-binding, and not the underlying
+case the usual way of setting buffer-local values, using @code{setq-local},
+will only change the value inside the let-binding, and not the underlying
 buffer-local value.  This function sets the latter.
 @end defun
 
index e3cdcb244232d8a7049e2435b163f8b699ffddc1..f447b5e955140adcf08b63072f77cf20aa7a7a0c 100644 (file)
@@ -833,7 +833,7 @@ DEFUN ("set-default-toplevel-value", Fset_default_toplevel_value,
 DEFUN ("buffer-local-toplevel-value",
        Fbuffer_local_toplevel_value,
        Sbuffer_local_toplevel_value, 1, 2, 0,
-       doc: /* Return SYMBOL's toplevel local value in BUFFER.
+       doc: /* Return SYMBOL's toplevel buffer-local value in BUFFER.
 "Toplevel" means outside of any let binding.
 BUFFER defaults to the current buffer.
 If SYMBOL has no local value in BUFFER, signals an error.  */)
@@ -852,8 +852,8 @@ If SYMBOL has no local value in BUFFER, signals an error.  */)
 DEFUN ("set-buffer-local-toplevel-value",
        Fset_buffer_local_toplevel_value,
        Sset_buffer_local_toplevel_value, 2, 3, 0,
-       doc: /* Set SYMBOL's toplevel local value to VALUE in BUFFER.
-"Toplevel" means outside of any let binding.
+       doc: /* Set SYMBOL's toplevel buffer-local value in BUFFER to VALUE.
+"Toplevel" means outside of any let-binding.
 BUFFER defaults to the current buffer.
 Makes SYMBOL buffer-local in BUFFER if it was not already.  */)
      (Lisp_Object symbol, Lisp_Object value, Lisp_Object buffer)