[Gd-chatter] r11316 - trunk/gwydion/tools/elisp
cpage at gwydiondylan.org
cpage at gwydiondylan.org
Fri May 4 04:48:40 CEST 2007
Author: cpage
Date: Fri May 4 04:48:38 2007
New Revision: 11316
Modified:
trunk/gwydion/tools/elisp/dylan-mode.el
Log:
Bug: 7354
Fixed Dylan Mode fontification of block comments when they're edited. Editing
the text of a multi-line block comment removed the comment face and fontified it
as code. The problem is that the Dylan Mode region fontification code was
narrowing the buffer to the start of the edited line, preventing font-lock from
seeing and parsing the start of the comment. Now it only narrows the buffer to
the end of the interchange header, so all the Dylan code is visible.
Modified: trunk/gwydion/tools/elisp/dylan-mode.el
==============================================================================
--- trunk/gwydion/tools/elisp/dylan-mode.el (original)
+++ trunk/gwydion/tools/elisp/dylan-mode.el Fri May 4 04:48:38 2007
@@ -1459,7 +1459,7 @@
(let ((beg (max beg header-end))
(save-font-lock-dont-widen font-lock-dont-widen))
(save-restriction
- (narrow-to-region beg (point-max))
+ (narrow-to-region header-end (point-max))
(setq font-lock-dont-widen t)
(unwind-protect
(font-lock-default-fontify-region beg end loudly)
More information about the chatter
mailing list