[Top][All Lists]

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

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

From: Bastien
Subject: Re: [emacs-w3m:11603] Re: interactive-p obsolete
Date: Wed, 06 Jul 2011 10:54:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

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)
     (if (or (> emacs-major-version 23)
             (and (>= emacs-major-version 23)
                  (>= emacs-minor-version 2)))
         `(with-no-warnings (called-interactively-p ,kind))


reply via email to

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