|
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) `(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)))) -- Bastien
[Prev in Thread] | Current Thread | [Next in Thread] |