Lastest experimental CPerl mode changes

robert delius royar xemacs at frinabulax.org
Tue Jun 19 07:46:05 EDT 2007


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: beforechange.png
Type: image/png
Size: 11382 bytes
Desc: 
Url : http://lists.xemacs.org/pipermail/xemacs-beta/attachments/20070619/2a7f6e9c/beforechange.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: beginchange.png
Type: image/png
Size: 12070 bytes
Desc: 
Url : http://lists.xemacs.org/pipermail/xemacs-beta/attachments/20070619/2a7f6e9c/beginchange.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: afterchange.png
Type: image/png
Size: 12506 bytes
Desc: 
Url : http://lists.xemacs.org/pipermail/xemacs-beta/attachments/20070619/2a7f6e9c/afterchange.png


More information about the XEmacs-Beta mailing list