1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

make-text-button no longer modifies its string arg

* etc/NEWS: Mention this.
* lisp/apropos.el (apropos-library-button):
* lisp/ibuf-ext.el (ibuffer-old-saved-filters-warning):
There’s no longer a need copy make-text-button’s string arg.
* lisp/button.el (make-text-button): Return a copy of a string arg.
Delay making the copy until after error-checking.
This commit is contained in:
Paul Eggert 2020-06-06 12:05:10 -07:00
parent 8bcc781bc7
commit 7ac79872ae
4 changed files with 13 additions and 5 deletions

View file

@ -661,7 +661,7 @@ Return list of symbols and documentation found."
(defun apropos-library-button (sym)
(if (null sym)
"<nothing>"
(let ((name (copy-sequence (symbol-name sym))))
(let ((name (symbol-name sym)))
(make-text-button name nil
'type 'apropos-library
'face 'apropos-symbol