mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-24 06:20:43 -08:00
lisp-mnt, checkdoc: Reduce run-time dependencies
* lisp/emacs-lisp/lisp-mnt.el: Don't require `mail-parse` at top-level. (lm-crack-address): Require it here instead. * lisp/emacs-lisp/checkdoc.el (dired): Don't load at run-time. (checkdoc-dired): Add corresponding `declare-function`.
This commit is contained in:
parent
6f3c62ff07
commit
9338fbbc28
2 changed files with 37 additions and 29 deletions
|
|
@ -111,8 +111,6 @@
|
|||
|
||||
;;; Code:
|
||||
|
||||
(require 'mail-parse)
|
||||
|
||||
;;; Variables:
|
||||
|
||||
(defgroup lisp-mnt nil
|
||||
|
|
@ -361,6 +359,8 @@ Return argument is of the form (\"HOLDER\" \"YEAR1\" ... \"YEARN\")"
|
|||
(defun lm-crack-address (x)
|
||||
"Split up email address(es) X into full name and real email address.
|
||||
The value is a list of elements of the form (FULLNAME . ADDRESS)."
|
||||
(require 'mail-parse)
|
||||
(declare-function mail-header-parse-addresses-lax "mail-parse" (string))
|
||||
(mapcar (lambda (elem)
|
||||
(cons (cdr elem) (car elem)))
|
||||
(mail-header-parse-addresses-lax x)))
|
||||
|
|
@ -505,7 +505,7 @@ absent, return nil."
|
|||
(if (and page (string-match (rx bol "<" (+ nonl) ">" eol) page))
|
||||
(substring page 1 -1)
|
||||
page)))
|
||||
(defalias 'lm-homepage 'lm-website) ; for backwards-compatibility
|
||||
(defalias 'lm-homepage #'lm-website) ; for backwards-compatibility
|
||||
|
||||
;;; Verification and synopses
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue