In a recent package update from the experimental packages perl-modes and
prog-modes, something has changed in CPerl mode that affects
font-lock syntax coloring and autocompletion of program blocks. The
Changelog does not refer to any changes in the files except to sync
cperl.el with upstream 2.53 and change the Makefile version in
perl-modes and to Use `condition-case' instead of `ignore-errors' in
rpm-spec-mode.el.
First, syntax hilighting appears to become confused when existing lines
are edited--especially when the line contains unterminated strings. The
confusion shows as incorrect coloring of symbols on the following line.
In most cases issuing a call to font-lock-fontify-buffer is the only way
to get the hilighting back to normal. I suspect a regex problem that
may stem from a change to other functions in xemacs-base. See the
attached PNG files. One shows the code before any changes, the next
shows it after typing one character--changes immediately. The third
shows that completing the line does not lead to an update of the
hilighting. In some cases adding a newline causes the hilighting to
correct itself, but in most cases it does not. I use Perl to write a
good deal of dynamic web pages. These often contain html tags. CPerl
mode now throws an error (available through `view-lossage') whenever I
try to add an html tag:
End of `< ... >' string/RE not found: (syntax-error Unbalanced parentheses)
These are the types of additions that a newline alone cannot be used to
"fix" the highlighting.
Second, the new CPerl wants to complete control structures I type. That
is new behavior. I cannot find a way to turn off this help. I would
not mind this that much except it triggers the error
nil not defined.
Precede char by C-q to avoid expansion
I have CPerl major mode on and the minor modes PenDel, Font, and Abbrev
active. The encoding is "Raw."
Installed packages include
perl-modes 1.10 (installed 2007-06-12)
prog-modes 2.13 (installed 2007-06-12)
--
Dr. Robert Delius Royar Associate Professor of English
Morehead State University Morehead, Kentucky
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta