1 new commit in cc-mode:
https://bitbucket.org/xemacs/cc-mode/commits/e5decf42ebf6/
Changeset: e5decf42ebf6
User: acm
Date: 2014-10-02 20:17:16+00:00
Summary: Fix Emacs bug #17463 (cc-langs.elc gets loaded at run-time).
cc-langs.el (c-no-parens-syntax-table): Rename the c-lang-const to
c-make-no-parens-syntax-table and correct the logic.
(c-no-parens-syntax-table): Correct the logic of the c-lang-defvar.
Affected #: 1 file
diff -r 62e1d14d01888223943fef31678bf2e565c453f3 -r
e5decf42ebf693b24382cb0e108b61ea4d80076b cc-langs.el
--- a/cc-langs.el
+++ b/cc-langs.el
@@ -389,7 +389,7 @@
(and (c-lang-const c++-make-template-syntax-table)
(funcall (c-lang-const c++-make-template-syntax-table))))
-(c-lang-defconst c-no-parens-syntax-table
+(c-lang-defconst c-make-no-parens-syntax-table
;; A variant of the standard syntax table which is used to find matching
;; "<"s and ">"s which have been marked as parens using
syntax table
;; properties. The other paren characters (e.g. "{", ")"
"]") are given a
@@ -397,18 +397,19 @@
;; even when there's unbalanced other parens inside them.
;;
;; This variable is nil for languages which don't have template stuff.
- t `(lambda ()
- (if (c-lang-const c-recognize-<>-arglists)
- (let ((table (funcall ,(c-lang-const c-make-mode-syntax-table))))
- (modify-syntax-entry ?\( "." table)
- (modify-syntax-entry ?\) "." table)
- (modify-syntax-entry ?\[ "." table)
- (modify-syntax-entry ?\] "." table)
- (modify-syntax-entry ?\{ "." table)
- (modify-syntax-entry ?\} "." table)
- table))))
+ t (if (c-lang-const c-recognize-<>-arglists)
+ `(lambda ()
+ (let ((table (funcall ,(c-lang-const c-make-mode-syntax-table))))
+ (modify-syntax-entry ?\( "." table)
+ (modify-syntax-entry ?\) "." table)
+ (modify-syntax-entry ?\[ "." table)
+ (modify-syntax-entry ?\] "." table)
+ (modify-syntax-entry ?\{ "." table)
+ (modify-syntax-entry ?\} "." table)
+ table))))
(c-lang-defvar c-no-parens-syntax-table
- (funcall (c-lang-const c-no-parens-syntax-table)))
+ (and (c-lang-const c-make-no-parens-syntax-table)
+ (funcall (c-lang-const c-make-no-parens-syntax-table))))
(c-lang-defconst c-identifier-syntax-modifications
"A list that describes the modifications that should be done to the
Repository URL:
https://bitbucket.org/xemacs/cc-mode/
--
This is a commit notification from
bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-patches