diff options
| author | Glenn Morris | 2007-12-11 05:52:07 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-12-11 05:52:07 +0000 |
| commit | e49337eabb2f1d16999f9329b287ca43d68c47cf (patch) | |
| tree | bc7e3cd6a8e9ac03e532752ef942e24c2982e934 | |
| parent | 9824ded5dded6f1d25ba7c71d959d56ac2f10e7e (diff) | |
| download | emacs-e49337eabb2f1d16999f9329b287ca43d68c47cf.tar.gz emacs-e49337eabb2f1d16999f9329b287ca43d68c47cf.zip | |
(check-declare-verify): Handle deffoo.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/emacs-lisp/check-declare.el | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d392c85e212..260a6a802a0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2007-12-11 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/check-declare.el (check-declare-verify): Handle deffoo. | ||
| 4 | |||
| 1 | 2007-12-11 Jay Belanger <jay.p.belanger@gmail.com> | 5 | 2007-12-11 Jay Belanger <jay.p.belanger@gmail.com> |
| 2 | 6 | ||
| 3 | * calc/calc-lang.el (math-lang-name): New property name. | 7 | * calc/calc-lang.el (math-lang-name): New property name. |
diff --git a/lisp/emacs-lisp/check-declare.el b/lisp/emacs-lisp/check-declare.el index 9fc8a9e61e7..fe7f774c7e9 100644 --- a/lisp/emacs-lisp/check-declare.el +++ b/lisp/emacs-lisp/check-declare.el | |||
| @@ -34,6 +34,9 @@ | |||
| 34 | 34 | ||
| 35 | ;;; TODO: | 35 | ;;; TODO: |
| 36 | 36 | ||
| 37 | ;; 1. Warn about functions marked as obsolete, eg | ||
| 38 | ;; password-read-and-add in smime.el. | ||
| 39 | |||
| 37 | ;;; Code: | 40 | ;;; Code: |
| 38 | 41 | ||
| 39 | (defconst check-declare-warning-buffer "*Check Declarations Warnings*" | 42 | (defconst check-declare-warning-buffer "*Check Declarations Warnings*" |
| @@ -141,7 +144,8 @@ is a string giving details of the error." | |||
| 141 | ;; defsubst's don't _have_ to be known at compile time. | 144 | ;; defsubst's don't _have_ to be known at compile time. |
| 142 | (setq re (format (if cflag | 145 | (setq re (format (if cflag |
| 143 | "^[ \t]*\\(DEFUN\\)[ \t]*([ \t]*\"%s\"" | 146 | "^[ \t]*\\(DEFUN\\)[ \t]*([ \t]*\"%s\"" |
| 144 | "^[ \t]*(\\(fset[ \t]+'\\|def\\(?:un\\|subst\\|\ | 147 | "^[ \t]*(\\(fset[ \t]+'\\|\ |
| 148 | def\\(?:un\\|subst\\|foo\\|\ | ||
| 145 | ine-\\(?:derived\\|generic\\|\\(?:global\\(?:ized\\)?-\\)?minor\\)-mode\ | 149 | ine-\\(?:derived\\|generic\\|\\(?:global\\(?:ized\\)?-\\)?minor\\)-mode\ |
| 146 | \\|\\(?:ine-obsolete-function-\\)?alias[ \t]+'\\)\\)\ | 150 | \\|\\(?:ine-obsolete-function-\\)?alias[ \t]+'\\)\\)\ |
| 147 | \[ \t]*%s\\([ \t;]+\\|$\\)") | 151 | \[ \t]*%s\\([ \t;]+\\|$\\)") |