[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/tzz/auth-source-reveal-mode e063c82: lisp/progmodes/prog-mode.el
From: |
Teodor Zlatanov |
Subject: |
scratch/tzz/auth-source-reveal-mode e063c82: lisp/progmodes/prog-mode.el: demote font-lock-flush errors |
Date: |
Wed, 17 Jun 2020 10:42:58 -0400 (EDT) |
branch: scratch/tzz/auth-source-reveal-mode
commit e063c8222cd62285ecc15a012443de54dd0e12d9
Author: Ted Zlatanov <tzz@lifelogs.com>
Commit: Ted Zlatanov <tzz@lifelogs.com>
lisp/progmodes/prog-mode.el: demote font-lock-flush errors
---
lisp/progmodes/prog-mode.el | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lisp/progmodes/prog-mode.el b/lisp/progmodes/prog-mode.el
index 4aeccf8..8bd9f82 100644
--- a/lisp/progmodes/prog-mode.el
+++ b/lisp/progmodes/prog-mode.el
@@ -257,6 +257,11 @@ on the symbol."
(> (point) (cadr prettify-symbols--current-symbol-bounds))
(and (not (eq prettify-symbols-unprettify-at-point
'right-edge))
(= (point) (cadr
prettify-symbols--current-symbol-bounds)))))
+ ;; Adjust the bounds in case either end is invalid.
+ (setf (car prettify-symbols--current-symbol-bounds)
+ (max (car prettify-symbols--current-symbol-bounds) (point-min))
+ (cadr prettify-symbols--current-symbol-bounds)
+ (min (cadr prettify-symbols--current-symbol-bounds) (point-max)))
(apply #'font-lock-flush prettify-symbols--current-symbol-bounds)
(setq prettify-symbols--current-symbol-bounds nil))
;; Unprettify the current symbol.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- scratch/tzz/auth-source-reveal-mode e063c82: lisp/progmodes/prog-mode.el: demote font-lock-flush errors,
Teodor Zlatanov <=