aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-12-15 16:30:39 +0000
committerRichard M. Stallman1994-12-15 16:30:39 +0000
commite547d71e2cfd9d8e95a044c06ceb1db8fb3a3fee (patch)
treec315d33a632d6a5b3b06e6b9d948ee26df6999f5
parent476070a4d5a9fcb273b04de4606fd00a611ecb9f (diff)
downloademacs-e547d71e2cfd9d8e95a044c06ceb1db8fb3a3fee.tar.gz
emacs-e547d71e2cfd9d8e95a044c06ceb1db8fb3a3fee.zip
(font-lock-hack-keywords): Turn off undo generation.
(font-lock-unfontify-region. font-lock-fontify-region): Likewise.
-rw-r--r--lisp/font-lock.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 5c23041c3a6..a737e0452f2 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -335,6 +335,8 @@ the face is also set; its value is the face name."
335 (beginning-of-line) 335 (beginning-of-line)
336 (if loudly (message "Fontifying %s... (syntactically...)" (buffer-name))) 336 (if loudly (message "Fontifying %s... (syntactically...)" (buffer-name)))
337 (let ((buffer-read-only nil) 337 (let ((buffer-read-only nil)
338 ;; Suppress all undo activity.
339 (buffer-undo-list t)
338 (modified (buffer-modified-p)) 340 (modified (buffer-modified-p))
339 (cstart (if comment-start-skip 341 (cstart (if comment-start-skip
340 (concat "\\s\"\\|" comment-start-skip) 342 (concat "\\s\"\\|" comment-start-skip)
@@ -449,6 +451,7 @@ the face is also set; its value is the face name."
449 451
450(defun font-lock-unfontify-region (beg end) 452(defun font-lock-unfontify-region (beg end)
451 (let ((modified (buffer-modified-p)) 453 (let ((modified (buffer-modified-p))
454 (buffer-undo-list t)
452 (buffer-read-only nil)) 455 (buffer-read-only nil))
453 (remove-text-properties beg end '(face nil)) 456 (remove-text-properties beg end '(face nil))
454 (set-buffer-modified-p modified))) 457 (set-buffer-modified-p modified)))
@@ -491,6 +494,7 @@ the face is also set; its value is the face name."
491 (keywords font-lock-keywords) 494 (keywords font-lock-keywords)
492 (count 0) 495 (count 0)
493 (buffer-read-only nil) 496 (buffer-read-only nil)
497 (buffer-undo-list t)
494 (modified (buffer-modified-p)) 498 (modified (buffer-modified-p))
495 (old-syntax (syntax-table)) 499 (old-syntax (syntax-table))
496 (bufname (buffer-name))) 500 (bufname (buffer-name)))