* lisp/progmodes/cc-bytecomp.el (cc-require): Handle uncompiled case.

This commit is contained in:
Glenn Morris 2013-08-28 19:31:52 -04:00
parent 27be8d3996
commit 2bb762d48a
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,7 @@
2013-08-28 Glenn Morris <rgm@gnu.org>
* progmodes/cc-bytecomp.el (cc-require): Handle uncompiled case.
* progmodes/cc-mode.el (c-define-abbrev-table): Handle NAME unbound.
2013-08-28 Stefan Monnier <monnier@iro.umontreal.ca>

View file

@ -244,7 +244,9 @@ Having cyclic cc-require's will result in infinite recursion. That's
somewhat intentional."
`(progn
(eval-when-compile
(setq cc-bytecomp-noruntime-functions byte-compile-noruntime-functions)
(if (boundp 'byte-compile-noruntime-functions) ; in case load uncompiled
(setq cc-bytecomp-noruntime-functions
byte-compile-noruntime-functions))
(cc-bytecomp-load (symbol-name ,cc-part)))
;; Hack to suppress spurious "might not be defined at runtime" warnings.
;; The basic issue is that