emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 8b34ba17b1: ; * doc/lispref/variables.texi (Setting Variables): F


From: Eli Zaretskii
Subject: master 8b34ba17b1: ; * doc/lispref/variables.texi (Setting Variables): Fix markup.
Date: Mon, 14 Feb 2022 12:48:22 -0500 (EST)

branch: master
commit 8b34ba17b1e9420a421a65e3eaea45fec9044ead
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    ; * doc/lispref/variables.texi (Setting Variables): Fix markup.
---
 doc/lispref/variables.texi | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi
index 8b5f50562e..9088397f9a 100644
--- a/doc/lispref/variables.texi
+++ b/doc/lispref/variables.texi
@@ -868,24 +868,27 @@ particular, @code{setopt} will run the setter function 
associated with
 the variable.  For instance, if you have:
 
 @example
+@group
 (defcustom my-var 1
   "My var."
   :type 'number
   :set (lambda (var val)
          (set-default var val)
          (message "We set %s to %s" var val)))
+@end group
 @end example
 
-Then the following, in addition to setting @code{my-var} to @samp{2},
+@noindent
+then the following, in addition to setting @code{my-var} to @samp{2},
 will also issue a message:
 
 @example
 (setop my-var 2)
 @end example
 
-@code{setopt} can be used on regular, non-user option variables, but
-is much less efficient than @code{setq}.  The main use case for this
-macro is setting user options in the user's init file.
+The @code{setopt} macro can be used on regular, non-user option
+variables, but is much less efficient than @code{setq}.  The main use
+case for this macro is setting user options in the user's init file.
 @end defmac
 
 @node Watching Variables



reply via email to

[Prev in Thread] Current Thread [Next in Thread]