* lisp/progmodes/cc-mode.el (c-define-abbrev-table): Handle NAME unbound.
authorGlenn Morris <rgm@gnu.org>
Wed, 28 Aug 2013 23:31:06 +0000 (19:31 -0400)
committerGlenn Morris <rgm@gnu.org>
Wed, 28 Aug 2013 23:31:06 +0000 (19:31 -0400)
lisp/ChangeLog
lisp/progmodes/cc-mode.el

index 690aca9..00250a0 100644 (file)
@@ -1,3 +1,7 @@
+2013-08-28  Glenn Morris  <rgm@gnu.org>
+
+       * progmodes/cc-mode.el (c-define-abbrev-table): Handle NAME unbound.
+
 2013-08-28  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * simple.el (repeat-complex-command--called-interactively-skip):
index c388430..1e8d6cb 100644 (file)
@@ -221,7 +221,7 @@ control).  See \"cc-mode.el\" for more info."
   ;; Compatibility wrapper for `define-abbrev' which passes a non-nil
   ;; sixth argument for SYSTEM-FLAG in emacsen that support it
   ;; (currently only Emacs >= 21.2).
-  (let ((table (or (symbol-value name)
+  (let ((table (or (and (boundp name) (symbol-value name))
                   (progn (condition-case nil
                               (define-abbrev-table name nil doc)
                             (wrong-number-of-arguments ;E.g. Emacs<23.