mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 09:14:18 +00:00
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.
This commit is contained in:
parent
6dad339f06
commit
65749436d0
1 changed files with 0 additions and 1 deletions
|
|
@ -349,7 +349,6 @@ Also see `insert-text-button'."
|
|||
(or (plist-member properties 'type)
|
||||
(plist-member properties :type))))
|
||||
(when (stringp beg)
|
||||
(setq beg (copy-sequence beg)) ;; In case BEG is not mutable.
|
||||
(setq object beg beg 0 end (length object)))
|
||||
;; Disallow setting the `category' property directly.
|
||||
(when (plist-get properties 'category)
|
||||
|
|
|
|||
Loading…
Reference in a new issue