aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2020-06-03 18:15:54 -0700
committerPaul Eggert2020-06-03 18:16:33 -0700
commit65749436d03fd0b9e379dcc06cc678522c6960cf (patch)
tree5efef329c2473d9f47af04be87c7a737d39d948f
parent6dad339f064df180e8f2c6257ffb53a6f341c4ec (diff)
downloademacs-65749436d03fd0b9e379dcc06cc678522c6960cf.tar.gz
emacs-65749436d03fd0b9e379dcc06cc678522c6960cf.zip
Revert make-text-button string copy
* lisp/button.el (make-text-button): Don’t make a copy of a button’s string label. This reverts the change made in 2020-05-17T05:23:28Z!eggert@cs.ucla.edu, which broke SLY. Problem reported by João Távora in: https://lists.gnu.org/r/emacs-devel/2020-06/msg00117.html However, we’ll need a better fix for this once string literals become contents, if SLY uses string constants for text button labels.
-rw-r--r--lisp/button.el1
1 files changed, 0 insertions, 1 deletions
diff --git a/lisp/button.el b/lisp/button.el
index a91b0482acd..3a6a6de774c 100644
--- a/lisp/button.el
+++ b/lisp/button.el
@@ -349,7 +349,6 @@ Also see `insert-text-button'."
349 (or (plist-member properties 'type) 349 (or (plist-member properties 'type)
350 (plist-member properties :type)))) 350 (plist-member properties :type))))
351 (when (stringp beg) 351 (when (stringp beg)
352 (setq beg (copy-sequence beg)) ;; In case BEG is not mutable.
353 (setq object beg beg 0 end (length object))) 352 (setq object beg beg 0 end (length object)))
354 ;; Disallow setting the `category' property directly. 353 ;; Disallow setting the `category' property directly.
355 (when (plist-get properties 'category) 354 (when (plist-get properties 'category)