]> git.eshelyaron.com Git - emacs.git/commitdiff
; * doc/lispref/variables.texi (Setting Variables): Fix markup.
authorEli Zaretskii <eliz@gnu.org>
Mon, 14 Feb 2022 17:47:44 +0000 (19:47 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 14 Feb 2022 17:47:44 +0000 (19:47 +0200)
doc/lispref/variables.texi

index 8b5f50562e7d17572e045cb1c69a1cd7db4b797e..9088397f9a629cd79cbbe8b341e8ee266a211e18 100644 (file)
@@ -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