summaryrefslogtreecommitdiff
path: root/lisp/ChangeLog
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2015-01-13 15:39:36 +0000
committerAlan Mackenzie <acm@muc.de>2015-01-13 15:47:26 +0000
commit30c5f5cdef8db72c007efecfc8436479631b45d0 (patch)
tree781d6e630b7efca6e0fef929a416bb79851949f5 /lisp/ChangeLog
parentc3024739131467b607fa745daf52ca25a3fd3c4d (diff)
Allow compilation during loading of Modes derived from a CC Mode mode.
Fixes debbugs#19206. cc-bytecomp.el (cc-bytecomp-compiling-or-loading): new function which walks the stack to discover whether we're compiling or loading. (cc-bytecomp-is-compiling): Reformulate, and move towards beginning. (cc-bytecomp-is-loading): New defsubst. (cc-bytecomp-setup-environment, cc-bytecomp-restore-environment): Use the above defsubsts. (cc-require-when-compile, cc-bytecomp-defvar) (cc-bytecomp-defun): Simplify conditionals. cc-defs.el (cc-bytecomp-compiling-or-loading): "Borrow" this function from cc-bytecomp.el. (c-get-current-file): Reformulate using the above. (c-lang-defconst): Prevent duplicate entries of file names in a symbol's 'source property. (c-lang-const): Use cc-bytecomp-is-compiling. cc-langs.el (c-make-init-lang-vars-fun): Use cc-bytecomp-is-compiling.
Diffstat (limited to 'lisp/ChangeLog')
-rw-r--r--lisp/ChangeLog26
1 files changed, 26 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 532a10a1b7..072af5b1b9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,29 @@
+2015-01-13 Alan Mackenzie <acm@muc.de>
+
+ Allow compilation during loading of Modes derived from a CC Mode mode.
+ Fixes debbugs#19206.
+
+ * progmodes/cc-bytecomp.el (cc-bytecomp-compiling-or-loading): new
+ function which walks the stack to discover whether we're compiling
+ or loading.
+ (cc-bytecomp-is-compiling): Reformulate, and move towards
+ beginning.
+ (cc-bytecomp-is-loading): New defsubst.
+ (cc-bytecomp-setup-environment, cc-bytecomp-restore-environment):
+ Use the above defsubsts.
+ (cc-require-when-compile, cc-bytecomp-defvar)
+ (cc-bytecomp-defun): Simplify conditionals.
+
+ * progmodes/cc-defs.el (cc-bytecomp-compiling-or-loading):
+ "Borrow" this function from cc-bytecomp.el.
+ (c-get-current-file): Reformulate using the above.
+ (c-lang-defconst): Prevent duplicate entries of file names in a
+ symbol's 'source property.
+ (c-lang-const): Use cc-bytecomp-is-compiling.
+
+ * progmodes/cc-langs.el (c-make-init-lang-vars-fun): Use
+ cc-bytecomp-is-compiling.
+
2015-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/eieio-core.el (eieio-defclass): Fix call to `defclass'