diff options
| author | Glenn Morris | 2017-05-06 18:20:21 -0700 |
|---|---|---|
| committer | Glenn Morris | 2017-05-06 18:20:21 -0700 |
| commit | 1f8036a522d4a7603e0b07fa5cc70f5bbdc15653 (patch) | |
| tree | 7e109f127d04f83a4179ab5153502925edce75e5 | |
| parent | 233cfb0ea93ecdd2b63298be4243059e2e7a91fd (diff) | |
| download | emacs-1f8036a522d4a7603e0b07fa5cc70f5bbdc15653.tar.gz emacs-1f8036a522d4a7603e0b07fa5cc70f5bbdc15653.zip | |
Evaluate mh-require when compiling
* lisp/mh-e/mh-alias.el, lisp/mh-e/mh-folder.el:
* lisp/mh-e/mh-gnus.el, lisp/mh-e/mh-search.el:
Evaluate mh-require when compiling, as require is automatically.
* lisp/mh-e/mh-gnus.el: No longer disable byte-compilation.
| -rw-r--r-- | lisp/mh-e/mh-alias.el | 5 | ||||
| -rw-r--r-- | lisp/mh-e/mh-folder.el | 2 | ||||
| -rw-r--r-- | lisp/mh-e/mh-gnus.el | 12 | ||||
| -rw-r--r-- | lisp/mh-e/mh-search.el | 2 |
4 files changed, 11 insertions, 10 deletions
diff --git a/lisp/mh-e/mh-alias.el b/lisp/mh-e/mh-alias.el index 82602eecf27..d62ac671ea1 100644 --- a/lisp/mh-e/mh-alias.el +++ b/lisp/mh-e/mh-alias.el | |||
| @@ -252,8 +252,9 @@ Blind aliases or users from /etc/passwd are not expanded." | |||
| 252 | (t | 252 | (t |
| 253 | (mh-alias-ali alias)))) | 253 | (mh-alias-ali alias)))) |
| 254 | 254 | ||
| 255 | (mh-require 'crm nil t) ; completing-read-multiple | 255 | (eval-and-compile |
| 256 | (mh-require 'multi-prompt nil t) | 256 | (mh-require 'crm nil t) ; completing-read-multiple |
| 257 | (mh-require 'multi-prompt nil t)) | ||
| 257 | 258 | ||
| 258 | ;;;###mh-autoload | 259 | ;;;###mh-autoload |
| 259 | (defun mh-read-address (prompt) | 260 | (defun mh-read-address (prompt) |
diff --git a/lisp/mh-e/mh-folder.el b/lisp/mh-e/mh-folder.el index acef35d6cd2..f846f179433 100644 --- a/lisp/mh-e/mh-folder.el +++ b/lisp/mh-e/mh-folder.el | |||
| @@ -525,7 +525,7 @@ font-lock is done highlighting.") | |||
| 525 | (cons (current-buffer) nil))))) | 525 | (cons (current-buffer) nil))))) |
| 526 | 526 | ||
| 527 | ;; Register mh-folder-mode as supporting which-function-mode... | 527 | ;; Register mh-folder-mode as supporting which-function-mode... |
| 528 | (mh-require 'which-func nil t) | 528 | (eval-and-compile (mh-require 'which-func nil t)) |
| 529 | (when (and (boundp 'which-func-modes) (listp which-func-modes)) | 529 | (when (and (boundp 'which-func-modes) (listp which-func-modes)) |
| 530 | (add-to-list 'which-func-modes 'mh-folder-mode)) | 530 | (add-to-list 'which-func-modes 'mh-folder-mode)) |
| 531 | 531 | ||
diff --git a/lisp/mh-e/mh-gnus.el b/lisp/mh-e/mh-gnus.el index 3afdb7501ff..318759ddc1b 100644 --- a/lisp/mh-e/mh-gnus.el +++ b/lisp/mh-e/mh-gnus.el | |||
| @@ -30,11 +30,12 @@ | |||
| 30 | 30 | ||
| 31 | (require 'mh-e) | 31 | (require 'mh-e) |
| 32 | 32 | ||
| 33 | (mh-require 'gnus-util nil t) | 33 | (eval-and-compile |
| 34 | (mh-require 'mm-bodies nil t) | 34 | (mh-require 'gnus-util nil t) |
| 35 | (mh-require 'mm-decode nil t) | 35 | (mh-require 'mm-bodies nil t) |
| 36 | (mh-require 'mm-view nil t) | 36 | (mh-require 'mm-decode nil t) |
| 37 | (mh-require 'mml nil t) | 37 | (mh-require 'mm-view nil t) |
| 38 | (mh-require 'mml nil t)) | ||
| 38 | 39 | ||
| 39 | ;; Copy of function from gnus-util.el. | 40 | ;; Copy of function from gnus-util.el. |
| 40 | ;; TODO This is not in Gnus 5.11. | 41 | ;; TODO This is not in Gnus 5.11. |
| @@ -170,7 +171,6 @@ PROMPT overrides the default one used to ask user for a file name." | |||
| 170 | (provide 'mh-gnus) | 171 | (provide 'mh-gnus) |
| 171 | 172 | ||
| 172 | ;; Local Variables: | 173 | ;; Local Variables: |
| 173 | ;; no-byte-compile: t | ||
| 174 | ;; no-update-autoloads: t | 174 | ;; no-update-autoloads: t |
| 175 | ;; indent-tabs-mode: nil | 175 | ;; indent-tabs-mode: nil |
| 176 | ;; sentence-end-double-space: nil | 176 | ;; sentence-end-double-space: nil |
diff --git a/lisp/mh-e/mh-search.el b/lisp/mh-e/mh-search.el index 099f922a5e8..7ff35645bdd 100644 --- a/lisp/mh-e/mh-search.el +++ b/lisp/mh-e/mh-search.el | |||
| @@ -1416,7 +1416,7 @@ being the list of messages originally from that folder." | |||
| 1416 | (when cur-msg (mh-goto-msg cur-msg t t)) | 1416 | (when cur-msg (mh-goto-msg cur-msg t t)) |
| 1417 | (set-buffer-modified-p old-buffer-modified-flag))) | 1417 | (set-buffer-modified-p old-buffer-modified-flag))) |
| 1418 | 1418 | ||
| 1419 | (mh-require 'which-func nil t) | 1419 | (eval-and-compile (mh-require 'which-func nil t)) |
| 1420 | 1420 | ||
| 1421 | ;; Shush compiler. | 1421 | ;; Shush compiler. |
| 1422 | (defvar which-func-mode) ; < Emacs 22, XEmacs | 1422 | (defvar which-func-mode) ; < Emacs 22, XEmacs |