emacs-devel
[Top][All Lists]
Advanced

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

Re: called-interactively-p, cedet, and Emacs 23.1 and earlier


From: Stefan Monnier
Subject: Re: called-interactively-p, cedet, and Emacs 23.1 and earlier
Date: Wed, 24 Mar 2010 13:51:26 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> We have recently stumbled over called-interactively-p, which is now used
> with an argument throughout the Emacs versions of the CEDET code.
> My externally maintained code I would like to have work in Emacs 22 and 23.1
> which does not support the argument, and XEmacs which is missing the feature
> completely, and is thus easy to make work in this case. Could some kind soul
> help me define some advice, or other trick I can install in older Emacs to
> allow this form to work?

How 'bout

(condition-case nil
    (called-interactively-p nil)
  (defmacro called-interactively-p (arg)
    (case arg
      (interactive `(interactive-p))
      ((any nil) `(called-interactively-p)))))


-- Stefan




reply via email to

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