GNU bug report logs -
#5354
Please replace font-lock-fontify-buffer with font-lock-fontify-region in js-mode
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5354 in the body.
You can then email your comments to 5354 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5354
; Package
emacs
.
(Mon, 11 Jan 2010 16:43:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Lennart Borgman <lennart.borgman <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 11 Jan 2010 16:43:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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)))
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5354
; Package
emacs
.
(Mon, 11 Jan 2010 17:38:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 5354 <at> debbugs.gnu.org (full text, mbox):
> 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
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5354
; Package
emacs
.
(Mon, 11 Jan 2010 21:34:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 5354 <at> debbugs.gnu.org (full text, mbox):
On Mon, Jan 11, 2010 at 6:37 PM, Stefan Monnier
<monnier <at> iro.umontreal.ca> wrote:
>> 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.
Thanks, you are right. Looking at it again I realize I can of course
instead change font-lock-fontify-buffer-function in mumamo. So I did
that.
Please close this bug. Sorry for the trouble and thanks for the help.
bug closed, send any further explanations to Lennart Borgman <lennart.borgman <at> gmail.com>
Request was from
Chong Yidong <cyd <at> stupidchicken.com>
to
control <at> debbugs.gnu.org
.
(Mon, 11 Jan 2010 21:51:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <bug-gnu-emacs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 09 Feb 2010 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 15 years and 129 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.