diff options
| author | Glenn Morris | 2015-05-04 20:17:35 -0400 |
|---|---|---|
| committer | Glenn Morris | 2015-05-04 20:17:35 -0400 |
| commit | b2f3c8071b79b6e0dff73d5fbc1dcaab0d8f2fbe (patch) | |
| tree | c45a69a17026141bd1c117a75faf81afbdbe7dc4 | |
| parent | f773a4dd216e408257a358ca7c0c3f9b49baa7a0 (diff) | |
| download | emacs-b2f3c8071b79b6e0dff73d5fbc1dcaab0d8f2fbe.tar.gz emacs-b2f3c8071b79b6e0dff73d5fbc1dcaab0d8f2fbe.zip | |
* lisp/emacs-lisp/check-declare.el (check-declare-verify):
Handle cl-defgeneric, cl-defmethod.
| -rw-r--r-- | lisp/emacs-lisp/check-declare.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/check-declare.el b/lisp/emacs-lisp/check-declare.el index a7045ad8f22..7269b83b619 100644 --- a/lisp/emacs-lisp/check-declare.el +++ b/lisp/emacs-lisp/check-declare.el | |||
| @@ -157,6 +157,7 @@ is a string giving details of the error." | |||
| 157 | (setq re (format (if cflag | 157 | (setq re (format (if cflag |
| 158 | "^[ \t]*\\(DEFUN\\)[ \t]*([ \t]*\"%s\"" | 158 | "^[ \t]*\\(DEFUN\\)[ \t]*([ \t]*\"%s\"" |
| 159 | "^[ \t]*(\\(fset[ \t]+'\\|\ | 159 | "^[ \t]*(\\(fset[ \t]+'\\|\ |
| 160 | cl-def\\(?:generic\\|method\\)\\|\ | ||
| 160 | def\\(?:un\\|subst\\|foo\\|method\\|class\\|\ | 161 | def\\(?:un\\|subst\\|foo\\|method\\|class\\|\ |
| 161 | ine-\\(?:derived\\|generic\\|\\(?:global\\(?:ized\\)?-\\)?minor\\)-mode\\|\ | 162 | ine-\\(?:derived\\|generic\\|\\(?:global\\(?:ized\\)?-\\)?minor\\)-mode\\|\ |
| 162 | \\(?:ine-obsolete-function-\\)?alias[ \t]+'\\|\ | 163 | \\(?:ine-obsolete-function-\\)?alias[ \t]+'\\|\ |
| @@ -200,8 +201,8 @@ ine-overloadable-function\\)\\)\ | |||
| 200 | type) | 201 | type) |
| 201 | 'obsolete) | 202 | 'obsolete) |
| 202 | ;; Can't easily check arguments in these cases. | 203 | ;; Can't easily check arguments in these cases. |
| 203 | ((string-match "\\`\\(def\\(alias\\|\ | 204 | ((string-match "\\`\\(def\\(alias\\|class\\)\\|\ |
| 204 | method\\|class\\)\\|fset\\)\\>" type) | 205 | fset\\|\\(?:cl-\\)?defmethod\\)\\>" type) |
| 205 | t) | 206 | t) |
| 206 | ((looking-at "\\((\\|nil\\)") | 207 | ((looking-at "\\((\\|nil\\)") |
| 207 | (byte-compile-arglist-signature | 208 | (byte-compile-arglist-signature |