]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix MH-E not to load cl at runtime (Bug#25552)
authorMike Kupfer <mkupfer@alum.berkeley.edu>
Thu, 4 May 2017 22:30:17 +0000 (14:30 -0800)
committerMike Kupfer <mkupfer@alum.berkeley.edu>
Thu, 4 May 2017 22:30:17 +0000 (15:30 -0700)
* lisp/mh-e/mh-acros.el (defun-mh): Check at runtime, not
compile time, whether the target is bound.
* lisp/mh-e/mh-compat.el: Enable compilation.  Pull in
mh-acros at compile time.
Authored-by: Glenn Morris <rgm@gnu.org>, Noam Postavsky
<npostavs@users.sourceforge.net>

lisp/mh-e/mh-acros.el
lisp/mh-e/mh-compat.el

index 0c89efbe3c148099b1f58ef22bd06d0c2f75da78..d424247a4fcf2a067d97ac057f996311dd22f8e2 100644 (file)
@@ -90,10 +90,9 @@ loads \"cl\" appropriately."
   "Create function NAME.
 If FUNCTION exists, then NAME becomes an alias for FUNCTION.
 Otherwise, create function NAME with ARG-LIST and BODY."
-  (let ((defined-p (fboundp function)))
-    (if defined-p
-        `(defalias ',name ',function)
-      `(defun ,name ,arg-list ,@body))))
+  `(if (fboundp ',function)
+       (defalias ',name ',function)
+     (defun ,name ,arg-list ,@body)))
 (put 'defun-mh 'lisp-indent-function 'defun)
 (put 'defun-mh 'doc-string-elt 4)
 
index 3f3990e8695bd17bf78f1d362afcff74f6c6b6ee..099fc9bbbaad0ef09cf9f1d42bbe7d081b8f4af4 100644 (file)
@@ -40,7 +40,7 @@
 ;; Items are listed alphabetically (except for mh-require which is
 ;; needed sooner it would normally appear).
 
-(require 'mh-acros)
+(eval-when-compile (require 'mh-acros))
 
 (mh-do-in-gnu-emacs
   (defalias 'mh-require 'require))
@@ -374,7 +374,6 @@ XEmacs."
 (provide 'mh-compat)
 
 ;; Local Variables:
-;; no-byte-compile: t
 ;; indent-tabs-mode: nil
 ;; sentence-end-double-space: nil
 ;; End: