emacs-devel
[Top][All Lists]
Advanced

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

Re: Interactive hat. [Was: CUA-like stuff spuriously enables transient-


From: Juanma Barranquero
Subject: Re: Interactive hat. [Was: CUA-like stuff spuriously enables transient-mark-mode]
Date: Wed, 25 Mar 2009 12:26:58 +0100

On Wed, Mar 25, 2009 at 11:16, Alan Mackenzie <address@hidden> wrote:

> The next try is to use a macro which will generate an appropriate
> interactive string.  Something like:
>
>    (defmacro foo-interactive (s-22 s-23)
>       "doc string"
>       `(interactive ,(if (emacs-got-interactive-hat) s-23 s22)))
>
> , but I can't get defun to take a macro-generated interactive string.  I
> suspect it's not possible.  It seems to work, sort of, in byte-compiled
> defuns.

It is not possible to use the `interactive-form' symbol property, as
documented in (elisp)"21.2.1 Using `interactive'" ?

    Juanma




reply via email to

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