Hi, Raymond.
On Thu, May 29, 2014 at 10:27:48AM -0700, Raymond Toy wrote:
I updated all of my packages yesterday (after not having updated in
quite some time) and now just about anything that uses c-mode produces
an "Invalid syntax designator" error on any special input. The error
is coming from (looking-at "\\s!").
This happens with xemacs -vanilla. Create a new file foo.c, and
start
typing "main(".
Help! I can't use xemacs to edit anything anymore.
Would you try out this patch, please, and let me know how well it
works/how badly it fails:
diff -r 825a64412160 cc-engine.el
--- a/cc-engine.el Sun Feb 09 12:18:57 2014 +0000
+++ b/cc-engine.el Thu May 29 21:16:21 2014 +0000
@@ -2221,7 +2221,8 @@
((and (not not-in-delimiter) ; inside a comment starter
(not (bobp))
(progn (backward-char)
- (and (not (looking-at "\\s!"))
+ (and (not (and (memq 'category-properties c-emacs-features)
+ (looking-at "\\s!")))
(looking-at c-comment-start-regexp))))
(setq ty (if (looking-at c-block-comment-start-regexp) 'c 'c++)
co-st (point))
Thanks!
Ray
--
Alan Mackenzie (Nuremberg, Germany).
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta