aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-11-28 03:53:44 +0000
committerGlenn Morris2007-11-28 03:53:44 +0000
commit4ab4de9ce6fec1ff368f5b244ba1f8d3b37632cc (patch)
treeb90a9b43a8ebf38377981bfa7ccdbde9c8d77022
parent79df1d6f2fe4586ae47ea324b0be33ac064e68a8 (diff)
downloademacs-4ab4de9ce6fec1ff368f5b244ba1f8d3b37632cc.tar.gz
emacs-4ab4de9ce6fec1ff368f5b244ba1f8d3b37632cc.zip
(check-declare-locate): Reflow doc.
(check-declare-verify): Handle fset.
-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