aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispintro
diff options
context:
space:
mode:
authorGlenn Morris2020-05-23 07:50:29 -0700
committerGlenn Morris2020-05-23 07:50:29 -0700
commitfabcc1ee13f82297d0f5e41f58fb1774840ebd45 (patch)
tree440b7026631d5a26922a7366e28dbb6b3e307347 /doc/lispintro
parentf8581bcf6a1942ebd331cae20e32945a3a86a3d1 (diff)
parent4b9fbdb5a713745dfdb13042e33ba2345e6860e1 (diff)
downloademacs-fabcc1ee13f82297d0f5e41f58fb1774840ebd45.tar.gz
emacs-fabcc1ee13f82297d0f5e41f58fb1774840ebd45.zip
Merge from origin/emacs-27
4b9fbdb5a7 ; Update TODO item about ligature support 03d44acfdd * doc/lispref/control.texi (Processing of Errors): Improve... b48ab743a8 Minor fixups for mutability doc 6ac2326e5b Don’t use “constant” for values you shouldn’t change
Diffstat (limited to 'doc/lispintro')
-rw-r--r--doc/lispintro/emacs-lisp-intro.texi5
1 files changed, 1 insertions, 4 deletions
diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi
index 7484ce57607..f6dd77a3d96 100644
--- a/doc/lispintro/emacs-lisp-intro.texi
+++ b/doc/lispintro/emacs-lisp-intro.texi
@@ -7317,8 +7317,6 @@ which leave the original list as it was. One way to find out how this
7317works is to experiment. We will start with the @code{setcar} function. 7317works is to experiment. We will start with the @code{setcar} function.
7318 7318
7319@need 1200 7319@need 1200
7320@cindex constant lists
7321@cindex mutable lists
7322First, we can make a list and then set the value of a variable to the 7320First, we can make a list and then set the value of a variable to the
7323list, using the @code{setq} special form. Because we intend to use 7321list, using the @code{setq} special form. Because we intend to use
7324@code{setcar} to change the list, this @code{setq} should not use the 7322@code{setcar} to change the list, this @code{setq} should not use the
@@ -7327,8 +7325,7 @@ a list that is part of the program and bad things could happen if we
7327tried to change part of the program while running it. Generally 7325tried to change part of the program while running it. Generally
7328speaking an Emacs Lisp program's components should be constant (or 7326speaking an Emacs Lisp program's components should be constant (or
7329unchanged) while the program is running. So we instead construct an 7327unchanged) while the program is running. So we instead construct an
7330animal list that is @dfn{mutable} (or changeable) by using the 7328animal list by using the @code{list} function, as follows:
7331@code{list} function, as follows:
7332 7329
7333@smallexample 7330@smallexample
7334(setq animals (list 'antelope 'giraffe 'lion 'tiger)) 7331(setq animals (list 'antelope 'giraffe 'lion 'tiger))