emacs-devel
[Top][All Lists]
Advanced

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

Re: `interactive-form` symbol property


From: Stefan Monnier
Subject: Re: `interactive-form` symbol property
Date: Sun, 24 Jun 2018 11:56:15 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> 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`?


        Stefan



reply via email to

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