[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/progmodes/cc-mode.el
From: |
Nick Roberts |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/progmodes/cc-mode.el |
Date: |
Fri, 29 Apr 2005 19:47:30 -0400 |
Index: emacs/lisp/progmodes/cc-mode.el
diff -c emacs/lisp/progmodes/cc-mode.el:1.35
emacs/lisp/progmodes/cc-mode.el:1.36
*** emacs/lisp/progmodes/cc-mode.el:1.35 Fri Apr 29 18:23:33 2005
--- emacs/lisp/progmodes/cc-mode.el Fri Apr 29 23:47:30 2005
***************
*** 649,657 ****
(with-output-to-string
(with-current-buffer standard-output
(call-process cc-mode-cpp-program
! file t nil "-dM"))))
(define-list (split-string output "\n" t))
(name))
(dolist (define define-list)
(setq name (nth 1 (split-string define "[( ]")))
(push (cons name define) cc-define-alist))))
--- 649,658 ----
(with-output-to-string
(with-current-buffer standard-output
(call-process cc-mode-cpp-program
! (if (file-exists-p file) file nil) t nil "-dM"))))
(define-list (split-string output "\n" t))
(name))
+ (setq cc-define-alist nil)
(dolist (define define-list)
(setq name (nth 1 (split-string define "[( ]")))
(push (cons name define) cc-define-alist))))
***************
*** 686,691 ****
--- 687,693 ----
(easy-menu-add c-c-menu)
(cc-imenu-init cc-imenu-c-generic-expression)
(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))
- [Emacs-diffs] Changes to emacs/lisp/progmodes/cc-mode.el, Sam Steingold, 2005/05/01
- [Emacs-diffs] Changes to emacs/lisp/progmodes/cc-mode.el, Nick Roberts, 2005/05/01
- [Emacs-diffs] Changes to emacs/lisp/progmodes/cc-mode.el,
Nick Roberts <=
- [Emacs-diffs] Changes to emacs/lisp/progmodes/cc-mode.el, Nick Roberts, 2005/05/01
- [Emacs-diffs] Changes to emacs/lisp/progmodes/cc-mode.el, Nick Roberts, 2005/05/01
- [Emacs-diffs] Changes to emacs/lisp/progmodes/cc-mode.el, Nick Roberts, 2005/05/03
- [Emacs-diffs] Changes to emacs/lisp/progmodes/cc-mode.el, Martin Stjernholm, 2005/05/22