diff options
| -rw-r--r-- | lisp/font-lock.el | 4 |
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))) |