aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Porter2023-12-14 18:28:53 -0600
committerStefan Kangas2023-12-15 01:54:35 +0100
commited8a8a5ba1607a37f0ed9cc11a77221d66946efb (patch)
treee7a58c4f1c4952cf7812f14f6fffcee81ae48b69
parent400ef15bdc373b05e877cf0914f0fd5eda56cf1d (diff)
downloademacs-ed8a8a5ba1607a37f0ed9cc11a77221d66946efb.tar.gz
emacs-ed8a8a5ba1607a37f0ed9cc11a77221d66946efb.zip
Fix symbol name in Multisession Variables examples
* doc/lispref/variables.texi (Multisession Variables): Fix symbol name. (Bug#67823)
-rw-r--r--doc/lispref/variables.texi8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi
index 5de5ac6efa7..b4c6d8ac5c3 100644
--- a/doc/lispref/variables.texi
+++ b/doc/lispref/variables.texi
@@ -2971,7 +2971,7 @@ meant to be used, here's a small example:
2971 2971
2972@lisp 2972@lisp
2973@group 2973@group
2974(define-multisession-variable foo-var 0) 2974(define-multisession-variable foo 0)
2975(defun my-adder (num) 2975(defun my-adder (num)
2976 (interactive "nAdd number: ") 2976 (interactive "nAdd number: ")
2977 (setf (multisession-value foo) 2977 (setf (multisession-value foo)
@@ -2981,7 +2981,7 @@ meant to be used, here's a small example:
2981@end lisp 2981@end lisp
2982 2982
2983@noindent 2983@noindent
2984This defines the variable @code{foo-var} and binds it to a special 2984This defines the variable @code{foo} and binds it to a special
2985multisession object which is initialized with the value @samp{0} (if 2985multisession object which is initialized with the value @samp{0} (if
2986the variable doesn't already exist from a previous session). The 2986the variable doesn't already exist from a previous session). The
2987@code{my-adder} command queries the user for a number, adds this to 2987@code{my-adder} command queries the user for a number, adds this to
@@ -3004,7 +3004,7 @@ specified by @var{package-symbol}. The combination of
3004@var{package-symbol} isn't given, this will default to the first 3004@var{package-symbol} isn't given, this will default to the first
3005``segment'' of the @var{name} symbol's name, which is the part of its 3005``segment'' of the @var{name} symbol's name, which is the part of its
3006name up to and excluding the first @samp{-}. For instance, if 3006name up to and excluding the first @samp{-}. For instance, if
3007@var{name} is @code{foo-var} and @var{package-symbol} isn't given, 3007@var{name} is @code{foo} and @var{package-symbol} isn't given,
3008@var{package-symbol} will default to @code{foo}. 3008@var{package-symbol} will default to @code{foo}.
3009 3009
3010@cindex synchronized multisession variables 3010@cindex synchronized multisession variables
@@ -3012,7 +3012,7 @@ name up to and excluding the first @samp{-}. For instance, if
3012Multisession variables can be @dfn{synchronized} if @var{bool} is 3012Multisession variables can be @dfn{synchronized} if @var{bool} is
3013non-@code{nil}. This means that if there're two concurrent Emacs 3013non-@code{nil}. This means that if there're two concurrent Emacs
3014instances running, and the other Emacs changes the multisession 3014instances running, and the other Emacs changes the multisession
3015variable @code{foo-var}, the current Emacs instance will retrieve that 3015variable @code{foo}, the current Emacs instance will retrieve that
3016modified data when accessing the value. If @var{synchronized} is 3016modified data when accessing the value. If @var{synchronized} is
3017@code{nil} or missing, this won't happen, and the values in all 3017@code{nil} or missing, this won't happen, and the values in all
3018Emacs sessions using the variable will be independent of each other. 3018Emacs sessions using the variable will be independent of each other.