(goto-char start)
(beginning-of-line)
(if loudly (message "Fontifying %s... (syntactically...)" (buffer-name)))
- (let ((buffer-read-only nil)
+ (let ((inhibit-read-only t)
+ ;; Prevent warnings if the disk file has been altered.
+ (buffer-file-name)
;; Suppress all undo activity.
(buffer-undo-list t)
(modified (buffer-modified-p))
(defun font-lock-unfontify-region (beg end)
(let ((modified (buffer-modified-p))
(buffer-undo-list t)
- (buffer-read-only nil))
+ (inhibit-read-only t)
+ ;; Prevent warnings if the disk file has been altered.
+ (buffer-file-name))
(remove-text-properties beg end '(face nil))
(set-buffer-modified-p modified)))
(let ((case-fold-search font-lock-keywords-case-fold-search)
(keywords font-lock-keywords)
(count 0)
- (buffer-read-only nil)
+ ;; Prevent warnings if the disk file has been altered.
+ (buffer-file-name)
+ (inhibit-read-only t)
(buffer-undo-list t)
(modified (buffer-modified-p))
(old-syntax (syntax-table))