diff options
| author | Paul Eggert | 2020-05-16 17:04:15 -0700 |
|---|---|---|
| committer | Paul Eggert | 2020-05-16 17:05:37 -0700 |
| commit | c7bc28bf038e08fcc03e5dc96cd762af06b34e09 (patch) | |
| tree | 378ddd85e5549bddeb5642314c8ac1627743e324 /lisp/emacs-lisp | |
| parent | a6ebca21b349ccfffdc0d4b84578d4c7a0f3ee22 (diff) | |
| download | emacs-c7bc28bf038e08fcc03e5dc96cd762af06b34e09.tar.gz emacs-c7bc28bf038e08fcc03e5dc96cd762af06b34e09.zip | |
Don’t attempt to modify constant conses
From a patch privately suggested by Mattias Engdegård on 2020-05-11
in a followup to Bug#40671.
* admin/charsets/cp51932.awk:
* admin/charsets/eucjp-ms.awk:
Generate code that does not modify constant conses.
* doc/misc/emacs-mime.texi (Encoding Customization):
* lisp/emacs-lisp/byte-opt.el (byte-compile-side-effect-free-ops):
* lisp/frameset.el (frameset-persistent-filter-alist):
* lisp/gnus/gnus-sum.el (gnus-article-mode-line-format-alist):
Use append instead of nconc.
* lisp/language/japanese.el (japanese-ucs-cp932-to-jis-map)
(jisx0213-to-unicode):
Use mapcar instead of mapc.
* lisp/language/lao-util.el (lao-transcription-consonant-alist)
(lao-transcription-vowel-alist):
* lisp/language/tibetan.el (tibetan-subjoined-transcription-alist):
Use copy-sequence.
* test/src/fns-tests.el (fns-tests-nreverse):
(fns-tests-sort, fns-tests-collate-sort)
(fns-tests-string-version-lessp, fns-tests-mapcan):
Use copy-sequence, vector, and list.
Diffstat (limited to 'lisp/emacs-lisp')
| -rw-r--r-- | lisp/emacs-lisp/byte-opt.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el index 4f72251aed5..62b82e4f32a 100644 --- a/lisp/emacs-lisp/byte-opt.el +++ b/lisp/emacs-lisp/byte-opt.el | |||
| @@ -1509,7 +1509,7 @@ | |||
| 1509 | byte-current-buffer byte-stack-ref)) | 1509 | byte-current-buffer byte-stack-ref)) |
| 1510 | 1510 | ||
| 1511 | (defconst byte-compile-side-effect-free-ops | 1511 | (defconst byte-compile-side-effect-free-ops |
| 1512 | (nconc | 1512 | (append |
| 1513 | '(byte-varref byte-nth byte-memq byte-car byte-cdr byte-length byte-aref | 1513 | '(byte-varref byte-nth byte-memq byte-car byte-cdr byte-length byte-aref |
| 1514 | byte-symbol-value byte-get byte-concat2 byte-concat3 byte-sub1 byte-add1 | 1514 | byte-symbol-value byte-get byte-concat2 byte-concat3 byte-sub1 byte-add1 |
| 1515 | byte-eqlsign byte-gtr byte-lss byte-leq byte-geq byte-diff byte-negate | 1515 | byte-eqlsign byte-gtr byte-lss byte-leq byte-geq byte-diff byte-negate |