Hi i am running XEmacs-21.4 and i ran into the
following problem. When
i tried to fontify this file:
/tmp/v1.cxx:
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
xemacs gets stuck and when i killed the proc i get
this trace:
Lisp backtrace follows:
re-search-forward("^\\(\\(\\(\\sw\\|\\s_\\|[:~*&]\\)+[
]+\\)\\(\\(\\(\\sw\\|\\s_\\|[:~*&]\\)+[
]+\\)\\(\\(\\sw\\|\\s_\\|[:~*&]\\)+[
]+\\)?\\)?\\)?\\([:*&]+[
]*\\)?\\(\\(\\sw\\|\\s_\\|[:~*&]\\)+\\)[ ]*(" 84 t)
# bind (highlights matcher keyword nkeywords iter
old-progress
progress bufname keywords case-fold-search loudly
loudvar end start)
font-lock-fontify-keywords-region(1 84 nil)
# (unwind-protect ...)
# bind (modified buffer-undo-list inhibit-read-only
old-syntax-table
buffer-file-name buffer-file-truename loudly end beg)
font-lock-default-fontify-region(1 84 nil)
# bind (loudly end beg)
font-lock-fontify-region(1 84)
# (unwind-protect ...)
byte-code("..." [font-lock-fontify-region] 3)
# (condition-case ... . ((t (byte-code "�??" ...
2))))
# bind (was-on font-lock-verbose
font-lock-message-threshold aborted)
# (unwind-protect ...)
font-lock-default-fontify-buffer()
# bind (font-lock-verbose)
font-lock-fontify-buffer()
# bind (on-p maximum-size arg)
font-lock-mode(1)
(progn (require (quote font-lock))
(font-lock-use-default-colors)
(customize-set-variable (quote font-lock-use-colors)
t)
(customize-set-variable (quote font-lock-use-fonts)
nil) (font-lock-mode
1))
eval((progn (require (quote font-lock))
(font-lock-use-default-colors)
(customize-set-variable (quote font-lock-use-colors)
t)
(customize-set-variable (quote font-lock-use-fonts)
nil) (font-lock-mode
1)))
# (condition-case ... . error)
# (catch top-level ...)
it appears that if i were to change the definition of
ctoken in
font-lock.el:2204 from:
(ctoken "\\(\\sw\\|\\s_\\|[:~*&]\\)+")
to
(ctoken "\\(\\sw\\|\\s_\\|[:*&]\\)+")
the problem goes away. i am not fluent with regexp
and i don't know
what side effects this might have. can this be
considered as a legit
fix?
Thanks!
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com