[Top][All Lists]

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

Re: [emacs-w3m:11603] Re: interactive-p obsolete

From: Lennart Borgman
Subject: Re: [emacs-w3m:11603] Re: interactive-p obsolete
Date: Wed, 6 Jul 2011 20:16:17 +0200

On Wed, Jul 6, 2011 at 10:54, Bastien <address@hidden> wrote:
> Tim Cross <address@hidden> writes:
>> I don't believe the argument of not being able to use the new function
>> because of the need for backwards compatibility is valid. You can
>> solve this problem in a number of ways and maintain backwards
>> compatibility.
> FWIW, this is how Org solves it:
> (defmacro org-called-interactively-p (&optional kind)
>  (if (featurep 'xemacs)
>       `(interactive-p)
>     (if (or (> emacs-major-version 23)
>             (and (>= emacs-major-version 23)
>                  (>= emacs-minor-version 2)))
>         `(with-no-warnings (called-interactively-p ,kind))
>       `(interactive-p))))

Why not add such a macro to Emacs?

reply via email to

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