GNU bug report logs - #20146
font-lock-extend-jit-lock-region-after-change: results are discarded instead of being returned.

Previous Next

Package: emacs;

Reported by: Alan Mackenzie <acm <at> muc.de>

Date: Thu, 19 Mar 2015 23:03:02 UTC

Severity: normal

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Alan Mackenzie <acm <at> muc.de>
To: 20146 <at> debbugs.gnu.org
Subject: bug#20146: font-lock-extend-jit-lock-region-after-change: results are discarded instead of being returned.
Date: Thu, 19 Mar 2015 23:01:36 +0000
Hi, Emacs

In font-lock-extend-jit-lock-region-after-change in font-lock.el, the
new fontification region is calculated by funcalling
font-lock-extend-after-change-region-function.  The result of this
funcall is assigned to internal variables beg and end.

To return these values to the caller, they should be written to the
dynamically bound variables jit-lock-start and jit-lock-end.  This is
only done in the case

    (memq 'font-lock-extend-region-wholelines
           font-lock-extend-region-functions)

.  It should be done in all cases.

-- 
Alan Mackenzie (Nuremberg, Germany).




This bug report was last modified 5 years and 202 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.