diff options
author | Andrea Corallo <akrl@sdf.org> | 2020-12-12 15:31:33 +0100 |
---|---|---|
committer | Andrea Corallo <akrl@sdf.org> | 2020-12-12 15:31:33 +0100 |
commit | 0474fda62d79cb7eb250f34f19773c87f283c665 (patch) | |
tree | df7418a6b22fbbfda725c56825ec0290f8e6be39 /lisp/emacs-lisp/elint.el | |
parent | be907b0ba82c2a65e0468d50653cae8a7cf5f16b (diff) | |
parent | 4afef614cd6c93b4d4a57aa5bb211563649abc56 (diff) | |
download | emacs-0474fda62d79cb7eb250f34f19773c87f283c665.tar.gz emacs-0474fda62d79cb7eb250f34f19773c87f283c665.tar.bz2 emacs-0474fda62d79cb7eb250f34f19773c87f283c665.zip |
Merge remote-tracking branch 'savannah/master' into HEAD
Diffstat (limited to 'lisp/emacs-lisp/elint.el')
-rw-r--r-- | lisp/emacs-lisp/elint.el | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/elint.el b/lisp/emacs-lisp/elint.el index ef97c8279d7..79b72ff969f 100644 --- a/lisp/emacs-lisp/elint.el +++ b/lisp/emacs-lisp/elint.el @@ -558,7 +558,8 @@ Return nil if there are no more forms, t otherwise." (when . elint-check-conditional-form) (unless . elint-check-conditional-form) (and . elint-check-conditional-form) - (or . elint-check-conditional-form)) + (or . elint-check-conditional-form) + (require . elint-require-form)) "Functions to call when some special form should be linted.") (defun elint-form (form env &optional nohandler) @@ -953,6 +954,13 @@ Does basic handling of `featurep' tests." (elint-form form env t)))) env) +(defun elint-require-form (form _env) + "Load `require'd files." + (pcase form + (`(require ',x) + (require x))) + nil) + ;;; ;;; Message functions ;;; |