-;;; elint.el -- Lint Emacs Lisp
+;;; elint.el --- Lint Emacs Lisp
;; Copyright (C) 1997 Free Software Foundation, Inc.
(defun elint-find-next-top-form ()
"Find the next top form from point.
-Returns nil if there are no more forms, T otherwise."
+Return nil if there are no more forms, t otherwise."
(parse-partial-sexp (point) (point-max) nil t)
(not (eobp)))
(defun elint-check-defcustom-form (form env)
"Lint the defcustom FORM in ENV."
(if (and (> (length form) 3)
- (evenp (length form))) ; even no. of keyword/value args
+ ;; even no. of keyword/value args ?
+ (zerop (logand (length form) 1)))
(elint-env-add-global-var (elint-form (nth 2 form) env)
(car (cdr form)))
(elint-error "Malformed variable declaration: %s" form)
;; to reflect different seriousness of linting errors
(defun elint-error (string &rest args)
- "Report an linting error.
+ "Report a linting error.
STRING and ARGS are thrown on `format' to get the message."
(let ((errstr (apply 'format string args)))
(elint-log-message errstr)
))
(defun elint-warning (string &rest args)
- "Report an linting warning.
+ "Report a linting warning.
STRING and ARGS are thrown on `format' to get the message."
(let ((errstr (apply 'format string args)))
(elint-log-message errstr)
(catch tag &rest body)
(and &rest args)
(funcall func &rest args)
- (insert-string &rest args)
(insert &rest args)
(vconcat &rest args)
(run-hook-with-args hook &rest args)
(message-box string &rest args)
(prog2 x y &rest body)
(prog1 first &rest body)
- (ml-provide-prefix-argument prefix form)
(insert-before-markers &rest args)
(call-process-region start end program &optional delete
destination display &rest args)
(track-mouse &rest body)
(unwind-protect bodyform &rest unwindforms)
(save-restriction &rest body)
- (ml-prefix-argument-loop)
(quote arg)
(make-byte-code &rest args)
(or &rest args)
(start-process name buffer program &rest args)
(run-hook-with-args-until-failure hook &rest args)
(if cond then &rest else)
- (ml-if)
(apply function &rest args)
(format string &rest args)
(encode-time second minute hour day month year zone &rest args)
(provide 'elint)
+;;; arch-tag: b2f061e2-af84-4ddc-8e39-f5e969ac228f
;;; elint.el ends here
-