aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/emacs-lisp/check-declare.el14
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/emacs-lisp/check-declare.el b/lisp/emacs-lisp/check-declare.el
index 800d0fa5fc0..d98b59d774e 100644
--- a/lisp/emacs-lisp/check-declare.el
+++ b/lisp/emacs-lisp/check-declare.el
@@ -46,9 +46,9 @@
46(defun check-declare-locate (file basefile) 46(defun check-declare-locate (file basefile)
47 "Return the full path of FILE. 47 "Return the full path of FILE.
48Expands files with a \".c\" extension relative to the Emacs 48Expands files with a \".c\" extension relative to the Emacs
49\"src/\" directory. Otherwise, `locate-library' searches for 49\"src/\" directory. Otherwise, `locate-library' searches for FILE.
50FILE. If that fails, expands FILE relative to BASEFILE's 50If that fails, expands FILE relative to BASEFILE's directory part.
51directory part. The returned file might not exist." 51The returned file might not exist."
52 (if (string-equal "c" (file-name-extension file)) 52 (if (string-equal "c" (file-name-extension file))
53 (expand-file-name file (expand-file-name "src" source-directory)) 53 (expand-file-name file (expand-file-name "src" source-directory))
54 (let ((tfile (locate-library (file-name-nondirectory file)))) 54 (let ((tfile (locate-library (file-name-nondirectory file))))
@@ -112,7 +112,7 @@ found to be true, otherwise a list of errors with elements of the form
112 ;; defsubst's don't _have_ to be known at compile time. 112 ;; defsubst's don't _have_ to be known at compile time.
113 (setq re (format (if cflag 113 (setq re (format (if cflag
114 "^[ \t]*\\(DEFUN\\)[ \t]*([ \t]*\"%s\"" 114 "^[ \t]*\\(DEFUN\\)[ \t]*([ \t]*\"%s\""
115 "^[ \t]*(\\(def\\(?:un\\|subst\\|\ 115 "^[ \t]*(\\(fset[ \t]+'\\|def\\(?:un\\|subst\\|\
116ine-\\(?:derived\\|generic\\|\\(?:global\\(?:ized\\)?-\\)?minor\\)-mode\ 116ine-\\(?:derived\\|generic\\|\\(?:global\\(?:ized\\)?-\\)?minor\\)-mode\
117\\|\\(?:ine-obsolete-function-\\)?alias[ \t]+'\\)\\)\ 117\\|\\(?:ine-obsolete-function-\\)?alias[ \t]+'\\)\\)\
118\[ \t]*%s\\([ \t;]+\\|$\\)") 118\[ \t]*%s\\([ \t;]+\\|$\\)")
@@ -153,8 +153,8 @@ ine-\\(?:derived\\|generic\\|\\(?:global\\(?:ized\\)?-\\)?minor\\)-mode\
153 "\\`define-obsolete-function-alias\\>" 153 "\\`define-obsolete-function-alias\\>"
154 type) 154 type)
155 'obsolete) 155 'obsolete)
156 ;; Can't easily check alias arguments. 156 ;; Can't easily check arguments in these cases.
157 ((string-match "\\`defalias\\>" type) 157 ((string-match "\\`\\(defalias\\|fset\\)\\>" type)
158 t) 158 t)
159 ((looking-at "\\((\\|nil\\)") 159 ((looking-at "\\((\\|nil\\)")
160 (byte-compile-arglist-signature 160 (byte-compile-arglist-signature
@@ -176,7 +176,7 @@ ine-\\(?:derived\\|generic\\|\\(?:global\\(?:ized\\)?-\\)?minor\\)-mode\
176 ;; arglist t means no arglist specified, as 176 ;; arglist t means no arglist specified, as
177 ;; opposed to an empty arglist. 177 ;; opposed to an empty arglist.
178 ((eq arglist t) nil) 178 ((eq arglist t) nil)
179 ((eq sig t) nil) ; defalias, can't check 179 ((eq sig t) nil) ; eg defalias - can't check arguments
180 ((eq sig 'err) 180 ((eq sig 'err)
181 "arglist not found") ; internal error 181 "arglist not found") ; internal error
182 ((not (equal (byte-compile-arglist-signature 182 ((not (equal (byte-compile-arglist-signature