diff options
author | Bill Wohler <wohler@newt.com> | 2004-08-25 05:55:39 +0000 |
---|---|---|
committer | Bill Wohler <wohler@newt.com> | 2004-08-25 05:55:39 +0000 |
commit | eccf9613456f3573f9dc72d3dcb59f31f9f90442 (patch) | |
tree | 73f0165cec638908cf8039ca3646a32daab16f9a /lisp/mh-e/mh-acros.el | |
parent | 1c6cfb0b0de4e888d79cb8a661ed6dfeeda97729 (diff) | |
download | emacs-eccf9613456f3573f9dc72d3dcb59f31f9f90442.tar.gz |
Upgraded to MH-E version 7.82.
See etc/MH-E-NEWS and lisp/mh-e/ChangeLog for details.
Diffstat (limited to 'lisp/mh-e/mh-acros.el')
-rw-r--r-- | lisp/mh-e/mh-acros.el | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/mh-e/mh-acros.el b/lisp/mh-e/mh-acros.el index dd8660a8ce3..16383304503 100644 --- a/lisp/mh-e/mh-acros.el +++ b/lisp/mh-e/mh-acros.el @@ -51,12 +51,7 @@ Some versions of `cl' produce code for the expansion of \(setf (gethash ...) ...) that uses functions in `cl' at run time. This macro recognizes that and loads `cl' where appropriate." (if (eq (car (macroexpand '(setf (gethash foo bar) baz))) 'cl-puthash) - `(progn - (require 'cl) - ;; Autoloads of CL functions go here... - (autoload 'cl-puthash "cl") - (autoload 'values "cl") - (autoload 'copy-tree "cl")) + `(require 'cl) `(eval-when-compile (require 'cl)))) ;;; Macros to generate correct code for different emacs variants @@ -130,6 +125,12 @@ various structure fields. Lookup `defstruct' for more details." (list 'nth ,x z))) (quote ,struct-name)))) +(defadvice require (around mh-prefer-el activate) + "Modify `require' to load uncompiled MH-E files." + (or (featurep (ad-get-arg 0)) + (and (string-match "^mh-" (symbol-name (ad-get-arg 0))) + (load (format "%s.el" (ad-get-arg 0)) t t)) + ad-do-it)) (provide 'mh-acros) |