diff options
author | Tassilo Horn <tsdh@gnu.org> | 2022-11-24 10:47:54 +0100 |
---|---|---|
committer | Tassilo Horn <tsdh@gnu.org> | 2022-11-24 10:47:54 +0100 |
commit | 005efce764c50f5fc68be84a7fb52565b9a2d2bc (patch) | |
tree | 86fb91e6bd53c295718b494b0b9db5dd9ec0fe59 /lisp/paren.el | |
parent | 825221183390f61f163258e09e91c0a75bf6d645 (diff) | |
download | emacs-005efce764c50f5fc68be84a7fb52565b9a2d2bc.tar.gz emacs-005efce764c50f5fc68be84a7fb52565b9a2d2bc.tar.bz2 emacs-005efce764c50f5fc68be84a7fb52565b9a2d2bc.zip |
Fix face issues in show-paren context overlay (bug#59527)
* lisp/paren.el (show-paren--show-context-in-overlay): Use
show-paren-priority as overlay priority (fixes problem 2 of
bug#59527).
* lisp/simple.el (blink-paren-open-paren-line-string): Ensure the
context lines are font-locked before taking the
buffer-substring (fixes problem 1 of bug#59527).
Diffstat (limited to 'lisp/paren.el')
-rw-r--r-- | lisp/paren.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/paren.el b/lisp/paren.el index e2c060ceb96..1d7fb1c4625 100644 --- a/lisp/paren.el +++ b/lisp/paren.el @@ -410,6 +410,10 @@ It is the default value of `show-paren-data-function'." (line-end-position)))) (setq show-paren--context-overlay (make-overlay beg end))) (overlay-put show-paren--context-overlay 'display text) + ;; Use the (default very high) `show-paren-priority' ensuring that + ;; not other overlays shine through (bug#59527). + (overlay-put show-paren--context-overlay 'priority + show-paren-priority) (overlay-put show-paren--context-overlay 'face `(:box ( :line-width (1 . -1) |