[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
Re: [Emacs-diffs] emacs-26 9a53b6d: Say how to override a primitive interactive spec, Eli Zaretskii, 2018/06/24