> From 27f3157275e1462cc45c43a407a25a942df505b5 Mon Sep 17 00:00:00 2001 From: "F. Jason Park" Date: Thu, 22 Jul 2021 23:47:48 -0700 Subject: [PATCH] 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). --- lisp/erc/erc-button.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/erc/erc-button.el b/lisp/erc/erc-button.el index cb9af92ba1..8f792752d1 100644 --- a/lisp/erc/erc-button.el +++ b/lisp/erc/erc-button.el @@ -299,7 +299,7 @@ erc-button-add-buttons-1 (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))))) -- 2.31.1