monnier pushed a commit to branch externals/auctex
in repository elpa.
commit 5b5ef6eeb0468c273a329a05d31b3788fd46b5d7
Author: Mosè Giordano <[email protected]>
Date: Sun May 12 12:01:37 2013 +0200
Temporary fix for font-latex-jit-lock-force-redisplay.
* font-latex.el (font-latex-jit-lock-force-redisplay): Don't rely
on existing `jit-lock-force-redisplay' because recent bzr Emacs
broke compatibility changing the number of arguments. Reported by
Robert Goldman.
---
ChangeLog | 7 +++++++
font-latex.el | 4 +---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e3cf5c5..878c57f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-05-12 Mos� Giordano <[email protected]>
+
+ * font-latex.el (font-latex-jit-lock-force-redisplay): Don't rely
+ on existing `jit-lock-force-redisplay' because recent bzr Emacs
+ broke compatibility changing the number of arguments. Reported by
+ Robert Goldman.
+
2013-05-08 Mos� Giordano <[email protected]>
* doc/auctex.texi (Environments): Document
diff --git a/font-latex.el b/font-latex.el
index ba3d79a..a312e98 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -1220,8 +1220,6 @@ triggers Font Lock to recognize the change."
(defun font-latex-jit-lock-force-redisplay (buf start end)
"Compatibility for Emacsen not offering `jit-lock-force-redisplay'."
- (if (fboundp 'jit-lock-force-redisplay)
- (jit-lock-force-redisplay buf start end)
;; The following block is an expansion of `jit-lock-force-redisplay'
;; and involved macros taken from CVS Emacs on 2007-04-28.
(with-current-buffer buf
@@ -1236,7 +1234,7 @@ triggers Font Lock to recognize the change."
buffer-file-truename)
(put-text-property start end 'fontified t))
(unless modified
- (restore-buffer-modified-p nil)))))))
+ (restore-buffer-modified-p nil))))))
(defun font-latex-fontify-region (beg end &optional loudly)
"Fontify region from BEG to END.