(check-declare-verify): Handle deffoo.

This commit is contained in:
Glenn Morris 2007-12-11 05:52:07 +00:00
parent 9824ded5dd
commit e49337eabb
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2007-12-11 Glenn Morris <rgm@gnu.org>
* emacs-lisp/check-declare.el (check-declare-verify): Handle deffoo.
2007-12-11 Jay Belanger <jay.p.belanger@gmail.com>
* calc/calc-lang.el (math-lang-name): New property name.

View file

@ -34,6 +34,9 @@
;;; TODO:
;; 1. Warn about functions marked as obsolete, eg
;; password-read-and-add in smime.el.
;;; Code:
(defconst check-declare-warning-buffer "*Check Declarations Warnings*"
@ -141,7 +144,8 @@ is a string giving details of the error."
;; defsubst's don't _have_ to be known at compile time.
(setq re (format (if cflag
"^[ \t]*\\(DEFUN\\)[ \t]*([ \t]*\"%s\""
"^[ \t]*(\\(fset[ \t]+'\\|def\\(?:un\\|subst\\|\
"^[ \t]*(\\(fset[ \t]+'\\|\
def\\(?:un\\|subst\\|foo\\|\
ine-\\(?:derived\\|generic\\|\\(?:global\\(?:ized\\)?-\\)?minor\\)-mode\
\\|\\(?:ine-obsolete-function-\\)?alias[ \t]+'\\)\\)\
\[ \t]*%s\\([ \t;]+\\|$\\)")