bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#5354: Please replace font-lock-fontify-buffer with font-lock-fontify


From: Stefan Monnier
Subject: bug#5354: Please replace font-lock-fontify-buffer with font-lock-fontify-region in js-mode
Date: Mon, 11 Jan 2010 12:37:25 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux)

> In `js-mode' there is a call to `font-lock-fontify-buffer' at the end.
> This creates problem for mumamo since it fontifies outside the region
> where js-mode should be applied:

>   (let (font-lock-keywords) ; leaves syntactic keywords intact
>     (font-lock-fontify-buffer))

> Could this please be replaced by

>   (let (font-lock-keywords ; leaves syntactic keywords intact
>         font-lock-extend-region-functions) ;; accept narrowing
>     (font-lock-fontify-region (point-min) (point-max)))

This looks majorly odd (aka difficult to explain/justify from js-mode's
point of view).  I suggest you instead submit a proposal for a new
font-lock function that does what js-mode needs.


        Stefan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]