]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-mode): If there is no file (Macroexpansion) don't create an alist.
authorNick Roberts <nickrob@snap.net.nz>
Sat, 30 Apr 2005 05:16:49 +0000 (05:16 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Sat, 30 Apr 2005 05:16:49 +0000 (05:16 +0000)
lisp/progmodes/cc-mode.el

index fd31ac54183d73191f3a2fba6fd283bafa0e9e4b..2861e6834099136571a3e7c45544ccbba7646ffc 100644 (file)
@@ -686,7 +686,7 @@ Key bindings:
   (c-common-init 'c-mode)
   (easy-menu-add c-c-menu)
   (cc-imenu-init cc-imenu-c-generic-expression)
-  (cc-create-define-alist)
+  (if (buffer-file-name) (cc-create-define-alist))
   (add-hook 'after-save-hook 'cc-create-define-alist nil t)
   (run-mode-hooks 'c-mode-common-hook 'c-mode-hook)
   (c-update-modeline))