On Monday, 21 July 2003, Kenneth.Lawas x2631 wrote:
================================================================
Dear Bug Team!
When opening a perl, sh or html file and choosing Options->Syntax
Highlighting->In This Buffer, the fontifying progress bar would
appear and flash as if being refreshed many times a second. But no
progress would actually be made. If I bring another window to the
front such that Xemacs loses focus, the fontifying immediately
finishes.
I searched the net for similar bugs and found one:
http://list-archive.xemacs.org/xemacs-beta/200305/msg00467.html
As described in the above URL, editing my src/EmacsFrame.c file to
undo the 2nd hunk (reverting from 1.17.2.2 to 1.17.2.1) fixed this
problem (fontifying is now immediately completed).
Patch to fix this problem (I'm not a programmer, so I apologize
if this is not in a preferred format):
Can you please check if the problem that I posted to this list about
infinite loop in XEmacs with lazy-lock goes away with your patched version of
XEmacs ?
Basically you need to start XEmacs with just the following in your
.xemacs/init.el
(require 'lazy-lock)
(add-hook 'font-lock-mode-hook 'turn-on-lazy-lock)
;; lazy-lock doesn't have a variable for its modeline name, so we have
;; to do a bit of surgery.
(and (assoc 'lazy-lock-mode minor-mode-alist)
(setcdr (cdr (cadr (assoc 'lazy-lock-mode minor-mode-alist))) ""))
and the following in your .xemacs/custom.el
(custom-set-variables
'(lazy-lock-minimum-size 50000)
'(lazy-lock-stealth-time nil)
'(lazy-lock-mode 1 nil (lazy-lock)))
and see if XEmacs gets into an infinite loop ?
Thanks,
kitty.