]> git.eshelyaron.com Git - emacs.git/commit
Don’t attempt to modify constant strings
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 17 May 2020 05:23:28 +0000 (22:23 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 17 May 2020 05:25:07 +0000 (22:25 -0700)
commit313955110b242cd18fc19bd168032d3ddf39fe94
tree4292cf3b216b6a76e5c28e3841c2f6fa2f56caf3
parent1fc4e3fb3f6caba6a4ca69060c7992ea5d24ff36
Don’t attempt to modify constant strings

* lisp/bookmark.el (bookmark-bmenu-set-header):
Use copy-sequence instead of concat, for clarity.
Also, the byte-compiler optimizes (concat "a" "b") into "ab".
* lisp/button.el (make-text-button):
* test/lisp/erc/erc-track-tests.el (erc-track--erc-faces-in):
* test/lisp/password-cache-tests.el:
(password-cache-tests-add-and-remove)
(password-cache-tests-read-from-cache)
(password-cache-tests-in-cache-p, password-cache-tests-read)
(password-cache-tests-reset)
(password-cache-tests-add/expires-key)
(password-cache-tests-no-password-cache):
Don’t attempt to modify constant strings.
* lisp/progmodes/elisp-mode.el (elisp--xref-format)
(elisp--xref-format-extra):
Don’t attempt to modify constant strings via put-text-property.
* test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs-loop-across-ref):
Don’t attempt to modify constant vectors or strings.
lisp/bookmark.el
lisp/button.el
lisp/password-cache.el
lisp/progmodes/elisp-mode.el
test/lisp/emacs-lisp/cl-macs-tests.el
test/lisp/erc/erc-track-tests.el
test/lisp/password-cache-tests.el