[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 7bf6592: Remove the now unneeded c-font-lock-flush
From: |
Alan Mackenzie |
Subject: |
[Emacs-diffs] master 7bf6592: Remove the now unneeded c-font-lock-flush from CC Mode. |
Date: |
Mon, 17 Jun 2019 07:02:27 -0400 (EDT) |
branch: master
commit 7bf65920342b3e7ccc6386d037081192452bf1a9
Author: Alan Mackenzie <address@hidden>
Commit: Alan Mackenzie <address@hidden>
Remove the now unneeded c-font-lock-flush from CC Mode.
* lisp/progmodes/cc-defs.el (c-font-lock-flush): Delete this macro.
* lisp/progmodes/cc-engine.el (c-propertize-raw-string-opener): Delete the
call to the macro.
---
lisp/progmodes/cc-defs.el | 7 -------
lisp/progmodes/cc-engine.el | 4 +---
2 files changed, 1 insertion(+), 10 deletions(-)
diff --git a/lisp/progmodes/cc-defs.el b/lisp/progmodes/cc-defs.el
index 7321f16..4e43bf9 100644
--- a/lisp/progmodes/cc-defs.el
+++ b/lisp/progmodes/cc-defs.el
@@ -219,13 +219,6 @@ This variant works around bugs in `eval-when-compile' in
various
`(cl-delete-duplicates ,cl-seq ,@cl-keys)
`(delete-duplicates ,cl-seq ,@cl-keys))))
-(defmacro c-font-lock-flush (beg end)
- "Declare the region BEG...END's fontification as out-of-date.
-On XEmacs and older Emacsen, this refontifies that region immediately."
- (if (fboundp 'font-lock-flush)
- `(font-lock-flush ,beg ,end)
- `(font-lock-fontify-region ,beg ,end)))
-
(defmacro c-point (position &optional point)
"Return the value of certain commonly referenced POSITIONs relative to POINT.
The current point is used if POINT isn't specified. POSITION can be
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index d3d7a1c..4333823 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -7259,9 +7259,7 @@ comment at the start of cc-engine.el for more info."
;; (c-put-char-property open-paren 'syntax-table '(1))
)
(goto-char bound))
- nil)
- ;; Ensure the opening delimiter will get refontified.
- (c-font-lock-flush (1- open-quote) (1+ open-paren))))
+ nil)))
(defun c-after-change-unmark-raw-strings (beg end _old-len)
;; This function removes `syntax-table' text properties from any raw strings
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 7bf6592: Remove the now unneeded c-font-lock-flush from CC Mode.,
Alan Mackenzie <=