[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex d27f6a1 1/5: Fix regression of unfontify-region
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex d27f6a1 1/5: Fix regression of unfontify-region |
Date: |
Fri, 29 May 2020 13:45:24 -0400 (EDT) |
branch: externals/auctex
commit d27f6a12d89a094bf5fd8f45f5ef7a16a9a9b29f
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
Fix regression of unfontify-region
* font-latex.el (font-latex-unfontify-region): Restore `invisible' as
removed property. My commit on Jan 7 was partially wrong. It kept "^"
and "_" invisible even when commented out if
`font-latex-fontify-script' is `invisible'.
---
font-latex.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/font-latex.el b/font-latex.el
index 6210967..91137ba 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -1328,7 +1328,7 @@ If SYNTACTIC-KWS is non-nil, also update
(defun font-latex-unfontify-region (beg end &rest ignored)
"Unfontify region from BEG to END."
(font-lock-default-unfontify-region beg end)
- (remove-text-properties beg end '(script-level))
+ (remove-list-of-text-properties beg end '(script-level invisible))
(while (< beg end)
(let ((next (next-single-property-change beg 'display nil end))
(prop (get-text-property beg 'display)))