comparison lisp/emacs-lisp/elint.el @ 107146:149c0b848923

Fix typos in docstrings. * outline.el (outline-head-from-level): * simple.el (with-wrapper-hook): * cedet/ede.el (ede-run-target, project-delete-target) (project-dist-files, ede-name, ede-documentation, ede-parent-project) (ede-adebug-project, ede-adebug-project-parent) (ede-adebug-project-root): * emacs-lisp/elint.el (elint-extra-errors, elint-current-buffer) (elint-defun, elint-buffer-env, elint-top-form-logged) (elint-unbound-variable): * textmodes/reftex-toc.el (reftex-toc-newhead-from-alist):
author Juanma Barranquero <lekktu@gmail.com>
date Sun, 14 Feb 2010 18:28:10 +0100
parents 1d1d5d9bd884
children 2da9673fc448
comparison
equal deleted inserted replaced
107145:541b767fb366 107146:149c0b848923
145 ;; For some reason, some people seem to like to use them in other cases. 145 ;; For some reason, some people seem to like to use them in other cases.
146 '((encode-time second minute hour day month year &rest zone)) 146 '((encode-time second minute hour day month year &rest zone))
147 "Those built-ins for which we can't find arguments, if any.") 147 "Those built-ins for which we can't find arguments, if any.")
148 148
149 (defvar elint-extra-errors '(file-locked file-supersession ftp-error) 149 (defvar elint-extra-errors '(file-locked file-supersession ftp-error)
150 "Errors without error-message or error-confitions properties.") 150 "Errors without `error-message' or `error-conditions' properties.")
151 151
152 (defconst elint-preloaded-skip-re 152 (defconst elint-preloaded-skip-re
153 (regexp-opt '("loaddefs.el" "loadup.el" "cus-start" "language/" 153 (regexp-opt '("loaddefs.el" "loadup.el" "cus-start" "language/"
154 "eucjp-ms" "mule-conf" "/characters" "/charprop" 154 "eucjp-ms" "mule-conf" "/characters" "/charprop"
155 "cp51932")) 155 "cp51932"))
287 (elint-set-mode-line)) 287 (elint-set-mode-line))
288 288
289 ;;;###autoload 289 ;;;###autoload
290 (defun elint-current-buffer () 290 (defun elint-current-buffer ()
291 "Lint the current buffer. 291 "Lint the current buffer.
292 If necessary, this first calls `elint-initalize'." 292 If necessary, this first calls `elint-initialize'."
293 (interactive) 293 (interactive)
294 (or elint-builtin-variables 294 (or elint-builtin-variables
295 (elint-initialize)) 295 (elint-initialize))
296 (elint-clear-log (format "Linting %s" (or (buffer-file-name) 296 (elint-clear-log (format "Linting %s" (or (buffer-file-name)
297 (buffer-name)))) 297 (buffer-name))))
306 306
307 307
308 ;;;###autoload 308 ;;;###autoload
309 (defun elint-defun () 309 (defun elint-defun ()
310 "Lint the function at point. 310 "Lint the function at point.
311 If necessary, this first calls `elint-initalize'." 311 If necessary, this first calls `elint-initialize'."
312 (interactive) 312 (interactive)
313 (or elint-builtin-variables 313 (or elint-builtin-variables
314 (elint-initialize)) 314 (elint-initialize))
315 (save-excursion 315 (save-excursion
316 (or (beginning-of-defun) (error "Lint what?")) 316 (or (beginning-of-defun) (error "Lint what?"))
323 ;;; 323 ;;;
324 ;;; Top form functions 324 ;;; Top form functions
325 ;;; 325 ;;;
326 326
327 (defvar elint-buffer-env nil 327 (defvar elint-buffer-env nil
328 "The environment of a elisp buffer. 328 "The environment of an elisp buffer.
329 Will be local in linted buffers.") 329 Will be local in linted buffers.")
330 330
331 (defvar elint-buffer-forms nil 331 (defvar elint-buffer-forms nil
332 "The top forms in a buffer. 332 "The top forms in a buffer.
333 Will be local in linted buffers.") 333 Will be local in linted buffers.")
526 526
527 (defvar elint-top-form nil 527 (defvar elint-top-form nil
528 "The currently linted top form, or nil.") 528 "The currently linted top form, or nil.")
529 529
530 (defvar elint-top-form-logged nil 530 (defvar elint-top-form-logged nil
531 "T if the currently linted top form has been mentioned in the log buffer.") 531 "The value t if the currently linted top form has been mentioned in the log buffer.")
532 532
533 (defun elint-top-form (form) 533 (defun elint-top-form (form)
534 "Lint a top FORM." 534 "Lint a top FORM."
535 (let ((elint-top-form form) 535 (let ((elint-top-form form)
536 (elint-top-form-logged nil) 536 (elint-top-form-logged nil)
638 638
639 (defvar elint-bound-variable nil 639 (defvar elint-bound-variable nil
640 "Name of a temporarily bound symbol.") 640 "Name of a temporarily bound symbol.")
641 641
642 (defun elint-unbound-variable (var env) 642 (defun elint-unbound-variable (var env)
643 "T if VAR is unbound in ENV." 643 "Return t if VAR is unbound in ENV."
644 ;; #1063 suggests adding (symbol-file var) here, but I don't think 644 ;; #1063 suggests adding (symbol-file var) here, but I don't think
645 ;; this is right, because it depends on what files you happen to have 645 ;; this is right, because it depends on what files you happen to have
646 ;; loaded at the time, which might not be the same when the code runs. 646 ;; loaded at the time, which might not be the same when the code runs.
647 ;; It also suggests adding: 647 ;; It also suggests adding:
648 ;; (numberp (get var 'variable-documentation)) 648 ;; (numberp (get var 'variable-documentation))