From: Nick Roberts Date: Sat, 30 Apr 2005 05:16:49 +0000 (+0000) Subject: (c-mode): If there is no file (Macroexpansion) don't create an alist. X-Git-Tag: ttn-vms-21-2-B4~653 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f55b37c038353c8f48891a6e8ea98d00b4af8e9c;p=emacs.git (c-mode): If there is no file (Macroexpansion) don't create an alist. --- diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index fd31ac54183..2861e683409 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el @@ -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))