emacs-devel
[Top][All Lists]
Advanced

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

Re: `interactive-form` symbol property


From: Eli Zaretskii
Subject: Re: `interactive-form` symbol property
Date: Sun, 24 Jun 2018 19:20:24 +0300

> From: Stefan Monnier <address@hidden>
> Date: Sun, 24 Jun 2018 11:56:15 -0400
> Cc: Karl Fogel <address@hidden>, address@hidden
> 
> > FWIW, I use it in a handful of places in my user-init-file to avoid
> > copying the interactive spec of some command I'm mimicking.  As a poor
> > example, I've written a couple of commands akin to browse-url, whose
> > interactive-form I set to the value of (interactive-form 'browse-url).
> 
> Interesting case, indeed.
> 
> You can do
> 
>     (defun my-foo ()
>       (interactive (advice-eval-interactive-spec
>                     (cadr (interactive-form 'bar))))
>       ...)
> 
> Maybe we should promote `advice-eval-interactive-spec` to
> `eval-interactive-spec`?

Any reason you dislike the interactive-form property so much that you
are willing to promote anything else instead? ;-)



reply via email to

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