summaryrefslogtreecommitdiff
path: root/.emacs.d/site-lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-08-05 12:56:01 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-08-05 12:56:01 -0700
commitcacd6f8c5a3d66bc5dfeafb0388422d0e89527c2 (patch)
treed7b0868e8c483a6ea3c01cb51e559e315c3ffb91 /.emacs.d/site-lisp
parent774be4cdf42e8d4732c9b53dcd68edd3c4f3fdb9 (diff)
downloaddotfiles-cacd6f8c5a3d66bc5dfeafb0388422d0e89527c2.tar.gz
avoid function for interactive-only use in highlight-80+.el
Diffstat (limited to '.emacs.d/site-lisp')
-rw-r--r--.emacs.d/site-lisp/highlight-80+.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/.emacs.d/site-lisp/highlight-80+.el b/.emacs.d/site-lisp/highlight-80+.el
index 1207b841..24b9236d 100644
--- a/.emacs.d/site-lisp/highlight-80+.el
+++ b/.emacs.d/site-lisp/highlight-80+.el
@@ -88,7 +88,7 @@
highlight-80+-last-width tab-width)
;; The rest of the buffer can't be right, either.
(let ((font-lock-keywords))
- (font-lock-fontify-buffer)))
+ (font-lock-ensure (point-min) (point-max))))
;; re-search-forward is C and much faster checking columns ourselves
(re-search-forward highlight-80+-last-keywords nil t))
@@ -101,7 +101,7 @@
(font-lock-remove-keywords nil highlight-80+-keywords)
(kill-local-variable 'highlight-80+-last-keywords)
(kill-local-variable 'highlight-80+-last-width))
- (font-lock-fontify-buffer))
+ (font-lock-ensure (point-min) (point-max)))
(provide 'highlight-80+)
;;; highlight-80+.el ends here