From ded80d0d499cb3d61deaed6fa84d8850fc21c960 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Wed, 1 Apr 2026 06:28:51 +0200 Subject: [PATCH] Fix text visibility issue with show-paren--show-context-in-overlay * lisp/paren.el (show-paren--show-context-in-overlay): Fix issue where the overlay's text was hardly visible in certain cases (bug#59527). --- lisp/paren.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/paren.el b/lisp/paren.el index 1ab3f9a32cf..10c72dadc79 100644 --- a/lisp/paren.el +++ b/lisp/paren.el @@ -434,9 +434,10 @@ It is the default value of `show-paren-data-function'." (overlay-put show-paren--context-overlay 'priority show-paren-priority) (overlay-put show-paren--context-overlay - 'face `(:box - ( :line-width (1 . -1) - :color ,(face-attribute 'shadow :foreground)))) + 'face `( :inherit default + :box + ( :line-width (1 . -1) + :color ,(face-attribute 'shadow :foreground)))) (add-hook 'post-command-hook #'show-paren--delete-context-overlay nil 'local))