[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: |
Tue, 03 May 2005 02:45:08 -0400 |
Index: emacs/lisp/progmodes/cc-mode.el
diff -c emacs/lisp/progmodes/cc-mode.el:1.39
emacs/lisp/progmodes/cc-mode.el:1.40
*** emacs/lisp/progmodes/cc-mode.el:1.39 Mon May 2 00:28:20 2005
--- emacs/lisp/progmodes/cc-mode.el Tue May 3 06:45:08 2005
***************
*** 639,661 ****
;;;###autoload (add-to-list 'auto-mode-alist '("\\.y\\(acc\\)?\\'" . c-mode))
;;;###autoload (add-to-list 'auto-mode-alist '("\\.lex\\'" . c-mode))
- (defvar cc-define-alist nil "Alist of #define directives for GUD tooltips.")
-
- (defun cc-create-define-alist ()
- (let* ((file (buffer-file-name))
- (output
- (with-output-to-string
- (with-current-buffer standard-output
- (call-process shell-file-name
- (if (file-exists-p file) file nil)
- (list t nil) nil "-c" cc-define-list-program))))
- (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))))
-
;;;###autoload
(defun c-mode ()
"Major mode for editing K&R and ANSI C code.
--- 639,644 ----
***************
*** 679,692 ****
mode-name "C"
local-abbrev-table c-mode-abbrev-table
abbrev-mode t)
- (make-local-variable 'cc-define-alist)
(use-local-map c-mode-map)
(c-init-language-vars-for 'c-mode)
(c-common-init 'c-mode)
(easy-menu-add c-c-menu)
(cc-imenu-init cc-imenu-c-generic-expression)
- (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))
--- 662,672 ----
- [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, 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/01
- [Emacs-diffs] Changes to emacs/lisp/progmodes/cc-mode.el,
Nick Roberts <=
- [Emacs-diffs] Changes to emacs/lisp/progmodes/cc-mode.el, Martin Stjernholm, 2005/05/22