diff options
| author | Glenn Morris | 2020-05-23 07:50:29 -0700 |
|---|---|---|
| committer | Glenn Morris | 2020-05-23 07:50:29 -0700 |
| commit | fabcc1ee13f82297d0f5e41f58fb1774840ebd45 (patch) | |
| tree | 440b7026631d5a26922a7366e28dbb6b3e307347 /doc/lispintro | |
| parent | f8581bcf6a1942ebd331cae20e32945a3a86a3d1 (diff) | |
| parent | 4b9fbdb5a713745dfdb13042e33ba2345e6860e1 (diff) | |
| download | emacs-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.texi | 5 |
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 | |||
| 7317 | works is to experiment. We will start with the @code{setcar} function. | 7317 | works 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 | ||
| 7322 | First, we can make a list and then set the value of a variable to the | 7320 | First, we can make a list and then set the value of a variable to the |
| 7323 | list, using the @code{setq} special form. Because we intend to use | 7321 | list, 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 | |||
| 7327 | tried to change part of the program while running it. Generally | 7325 | tried to change part of the program while running it. Generally |
| 7328 | speaking an Emacs Lisp program's components should be constant (or | 7326 | speaking an Emacs Lisp program's components should be constant (or |
| 7329 | unchanged) while the program is running. So we instead construct an | 7327 | unchanged) while the program is running. So we instead construct an |
| 7330 | animal list that is @dfn{mutable} (or changeable) by using the | 7328 | animal 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)) |