[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#25552: 26.0.50; load cl unintendedly

From: Jeffrey Honig
Subject: bug#25552: 26.0.50; load cl unintendedly
Date: Thu, 2 Feb 2017 21:21:22 -0500

Bill should weigh in on this change, he did extensive work in this area.

On Thu, Feb 2, 2017 at 9:05 PM, Mike Kupfer <address@hidden> wrote:
address@hidden wrote:

> Mike Kupfer <address@hidden> writes:
> > Hi Katsumi and Glenn, I applied Glenn's patch to 25.1.90, and I'm afraid
> > that it introduced a failure.
> I guess it's because defun-mh checks whether the alias target is fbound
> at compile time:
>     (defmacro defun-mh (name function arg-list &rest body)
>       "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))))
> It would be better to check at runtime:
>     (defmacro defun-mh (name function arg-list &rest body)
>       `(if (fboundp ',function)
>            (defalias ',name ',function)
>          (defun ,name ,arg-list ,@body)))
> And/or require `mail-abbrev' at compile time
> --- i/lisp/mh-e/mh-compat.el
> +++ w/lisp/mh-e/mh-compat.el
> @@ -260,7 +260,7 @@ 'mh-line-end-position
>        'line-end-position
>      'point-at-eol))
> -(mh-require 'mailabbrev nil t)
> +(eval-and-compile (mh-require 'mailabbrev nil t))
>  (defun-mh mh-mail-abbrev-make-syntax-table
>    mail-abbrev-make-syntax-table ()
>    "Emacs 21 and XEmacs don't have `mail-abbrev-make-syntax-table'.

Thanks, Noam!

I did some light testing of Noam's change to defun-mh plus Glenn's
patch.  The problem that I reported is gone, and I haven't seen any
other issues.  I did the testing with both Emacs 25.1.90 and master

Does anyone on the MH-E dev team have any concerns about this
combination of changes?


Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
mh-e-devel mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]