ankurdave / color-identifiers-mode

Emacs minor mode to highlight each source code identifier uniquely based on its name
308 stars 23 forks source link

Warning: `font-lock-fontify-buffer' is for interactive use only; use font-lock-ensure or font-lock-flush instead. #26

Closed Malabarba closed 9 years ago

Malabarba commented 9 years ago

Installing on the latest Emacs gives this warning during byte-compilation:

In color-identifiers-mode:
color-identifiers-mode.el:65:21:Warning: `font-lock-fontify-buffer' is for
    interactive use only; use font-lock-ensure or font-lock-flush instead.
In color-identifiers:refresh:
color-identifiers-mode.el:547:74:Warning: `font-lock-fontify-buffer' is for
    interactive use only; use font-lock-ensure or font-lock-flush instead.

Looking at the source of font-lock-fontify-buffer I find this scary comment:

;; When called from Lisp, this function is a big mess.

So I figured it was worth a bug report.