summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-01-15 14:15:54 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2022-01-15 14:16:01 +0100
commit17231a26d8ca754dab4eaf54c93f179f3465fd0c (patch)
tree819283c90a42c15a2658e9d8b906275cddae9729
parentae65f2089cfe108d761f8150280de520dba51b28 (diff)
downloademacs-17231a26d8ca754dab4eaf54c93f179f3465fd0c.tar.gz
Don't strip properties in show-paren-function
* lisp/paren.el (show-paren-function): Don't strip text properties (bug#51606) because that makes the offscreen context less informative.
-rw-r--r--lisp/paren.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/paren.el b/lisp/paren.el
index a1f74f2097e..0065bba72e7 100644
--- a/lisp/paren.el
+++ b/lisp/paren.el
@@ -330,9 +330,7 @@ It is the default value of `show-paren-data-function'."
(let ((open-paren-line-string
(blink-paren-open-paren-line-string openparen))
(message-log-max nil))
- (minibuffer-message
- "Matches %s"
- (substring-no-properties open-paren-line-string)))))
+ (minibuffer-message "Matches %s" open-paren-line-string))))
;; Always set the overlay face, since it varies.
(overlay-put show-paren--overlay 'priority show-paren-priority)
(overlay-put show-paren--overlay 'face face))))))