mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Remove text props from callback args in erc-button
* lisp/erc/erc-button.el (erc-button-add-buttons-1): Remove text properties from strings stored in `erc-data' and passed to `erc-callback' (both text properties themselves) (bug#49704). This reduces memory usage in erc buffers (which are long-lived and can become very large).
This commit is contained in:
parent
172dfac035
commit
4d172946c3
1 changed files with 1 additions and 1 deletions
|
|
@ -300,7 +300,7 @@ specified by `erc-button-alist'."
|
|||
(end (match-end (nth 1 entry)))
|
||||
(form (nth 2 entry))
|
||||
(fun (nth 3 entry))
|
||||
(data (mapcar #'match-string (nthcdr 4 entry))))
|
||||
(data (mapcar #'match-string-no-properties (nthcdr 4 entry))))
|
||||
(when (or (eq t form)
|
||||
(eval form t))
|
||||
(erc-button-add-button start end fun nil data regexp)))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue