From f55b37c038353c8f48891a6e8ea98d00b4af8e9c Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Sat, 30 Apr 2005 05:16:49 +0000 Subject: [PATCH] (c-mode): If there is no file (Macroexpansion) don't create an alist. --- lisp/progmodes/cc-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.39.2