diff options
| author | Paul Eggert | 2015-05-20 08:23:09 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-05-20 08:24:23 -0700 |
| commit | 00ec2dd7af3d472fcd5098c74f2e6b8f759e007d (patch) | |
| tree | 0e04d74bbc40efe9e5eb04f28ef10602743c4e09 | |
| parent | e1890e3e829665a54f04284f4e23bd0fd37de06b (diff) | |
| download | emacs-00ec2dd7af3d472fcd5098c74f2e6b8f759e007d.tar.gz emacs-00ec2dd7af3d472fcd5098c74f2e6b8f759e007d.zip | |
Don't require help-fns when not needed
* lisp/emacs-lisp/autoload.el, lisp/emacs-lisp/advice.el:
* lisp/emacs-lisp/elint.el:
Don't require help-fns at the top level.
* lisp/emacs-lisp/advice.el (ad-arglist):
* lisp/emacs-lisp/cl-macs.el (cl--transform-lambda):
Don't require help-fns. (Bug#17001)
| -rw-r--r-- | lisp/emacs-lisp/advice.el | 3 | ||||
| -rw-r--r-- | lisp/emacs-lisp/autoload.el | 1 | ||||
| -rw-r--r-- | lisp/emacs-lisp/cl-macs.el | 1 | ||||
| -rw-r--r-- | lisp/emacs-lisp/elint.el | 2 |
4 files changed, 0 insertions, 7 deletions
diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el index 212ae909866..907f03bde45 100644 --- a/lisp/emacs-lisp/advice.el +++ b/lisp/emacs-lisp/advice.el | |||
| @@ -2149,7 +2149,6 @@ the cache-id will clear the cache." | |||
| 2149 | 2149 | ||
| 2150 | (defun ad-arglist (definition) | 2150 | (defun ad-arglist (definition) |
| 2151 | "Return the argument list of DEFINITION." | 2151 | "Return the argument list of DEFINITION." |
| 2152 | (require 'help-fns) | ||
| 2153 | (help-function-arglist | 2152 | (help-function-arglist |
| 2154 | (if (or (macrop definition) (ad-advice-p definition)) | 2153 | (if (or (macrop definition) (ad-advice-p definition)) |
| 2155 | (cdr definition) | 2154 | (cdr definition) |
| @@ -2474,8 +2473,6 @@ Example: `(ad-map-arglists '(a &rest args) '(w x y z))' will return | |||
| 2474 | (capitalize (symbol-name class)) | 2473 | (capitalize (symbol-name class)) |
| 2475 | (ad-advice-name advice))))))) | 2474 | (ad-advice-name advice))))))) |
| 2476 | 2475 | ||
| 2477 | (require 'help-fns) ;For help-split-fundoc and help-add-fundoc-usage. | ||
| 2478 | |||
| 2479 | (defun ad--make-advised-docstring (function &optional style) | 2476 | (defun ad--make-advised-docstring (function &optional style) |
| 2480 | "Construct a documentation string for the advised FUNCTION. | 2477 | "Construct a documentation string for the advised FUNCTION. |
| 2481 | Concatenate the original documentation with the documentation | 2478 | Concatenate the original documentation with the documentation |
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index 206d5bb4434..a6fefebf3f5 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el | |||
| @@ -32,7 +32,6 @@ | |||
| 32 | 32 | ||
| 33 | (require 'lisp-mode) ;for `doc-string-elt' properties. | 33 | (require 'lisp-mode) ;for `doc-string-elt' properties. |
| 34 | (require 'lisp-mnt) | 34 | (require 'lisp-mnt) |
| 35 | (require 'help-fns) ;for help-add-fundoc-usage. | ||
| 36 | (eval-when-compile (require 'cl-lib)) | 35 | (eval-when-compile (require 'cl-lib)) |
| 37 | 36 | ||
| 38 | (defvar generated-autoload-file nil | 37 | (defvar generated-autoload-file nil |
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el index 5bab84ed312..27d3da3dca4 100644 --- a/lisp/emacs-lisp/cl-macs.el +++ b/lisp/emacs-lisp/cl-macs.el | |||
| @@ -294,7 +294,6 @@ FORM is of the form (ARGS . BODY)." | |||
| 294 | ;; apparently harmless computation, so it should not | 294 | ;; apparently harmless computation, so it should not |
| 295 | ;; touch the match-data. | 295 | ;; touch the match-data. |
| 296 | (save-match-data | 296 | (save-match-data |
| 297 | (require 'help-fns) | ||
| 298 | (cons (help-add-fundoc-usage | 297 | (cons (help-add-fundoc-usage |
| 299 | (if (stringp (car header)) (pop header)) | 298 | (if (stringp (car header)) (pop header)) |
| 300 | ;; Be careful with make-symbol and (back)quote, | 299 | ;; Be careful with make-symbol and (back)quote, |
diff --git a/lisp/emacs-lisp/elint.el b/lisp/emacs-lisp/elint.el index 317e5a6fd3f..fc66c82c81d 100644 --- a/lisp/emacs-lisp/elint.el +++ b/lisp/emacs-lisp/elint.el | |||
| @@ -46,8 +46,6 @@ | |||
| 46 | 46 | ||
| 47 | ;;; Code: | 47 | ;;; Code: |
| 48 | 48 | ||
| 49 | (require 'help-fns) | ||
| 50 | |||
| 51 | (defgroup elint nil | 49 | (defgroup elint nil |
| 52 | "Linting for Emacs Lisp." | 50 | "Linting for Emacs Lisp." |
| 53 | :prefix "elint-" | 51 | :prefix "elint-" |