all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: Karl Fogel <kfogel@red-bean.com>, emacs-devel@gnu.org
Subject: Re: `interactive-form` symbol property
Date: Sun, 24 Jun 2018 18:40:48 +0300	[thread overview]
Message-ID: <87k1qokxa7.fsf@tcd.ie> (raw)
In-Reply-To: <jwv8t748fa0.fsf-monnier+emacsdiffs@gnu.org> (Stefan Monnier's message of "Sun, 24 Jun 2018 09:54:14 -0400")

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

>>> +If you wish to override a primitive interactive specification, just
>>> +set the @code{interactive-form} property of the primitive function's
>>> +symbol (@pxref{Using Interactive}).  There is no need to edit C code
>>> +and recompile Emacs.
>> You can also use advice-add for the same purpose (it's more
>> complicated, but it's arguably better behaved).
>
> And a quick search seems to indicate that this `interactive-form`
> property is not used anywhere (not within Emacs, not within GNU ELPA,
> and not within the few other Elisp packages I had lying around for
> a quick search).
>
> Maybe, rather than document it, we should obsolete it?

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).

This is obviously no reason to hold back on obsoleting the property, but
I'm still curious whether there's another way to be as lazy as I
currently am about copying interactive specs in this way.

-- 
Basil



  parent reply	other threads:[~2018-06-24 15:40 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20180624121111.28772.8847@vcs0.savannah.gnu.org>
     [not found] ` <20180624121113.215CF206CC@vcs0.savannah.gnu.org>
2018-06-24 13:42   ` [Emacs-diffs] emacs-26 9a53b6d: Say how to override a primitive interactive spec Stefan Monnier
2018-06-24 13:54     ` `interactive-form` symbol property (was: [Emacs-diffs] emacs-26 9a53b6d: Say how to override a primitive interactive spec) Stefan Monnier
2018-06-24 15:27       ` Drew Adams
2018-06-24 15:48         ` `interactive-form` symbol property Stefan Monnier
2018-06-24 17:19           ` Drew Adams
2018-06-24 21:57         ` `interactive-form` symbol property (was: [Emacs-diffs] emacs-26 9a53b6d: Say how to override a primitive interactive spec) Radon Rosborough
2018-06-24 15:40       ` Basil L. Contovounesios [this message]
2018-06-24 15:56         ` `interactive-form` symbol property Stefan Monnier
2018-06-24 16:20           ` Eli Zaretskii
2018-06-25 12:32             ` Stefan Monnier
2018-06-25 15:19               ` Eli Zaretskii
2018-06-25 20:22                 ` Stefan Monnier
2018-06-24 14:44     ` [Emacs-diffs] emacs-26 9a53b6d: Say how to override a primitive interactive spec Eli Zaretskii
2018-06-24 22:09       ` Karl Fogel
2018-06-25  2:34         ` Eli Zaretskii
2018-06-25  3:47           ` Karl Fogel
2018-06-25 12:43             ` Karl Fogel
2018-06-25 14:41               ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k1qokxa7.fsf@tcd.ie \
    --to=contovob@tcd.ie \
    --cc=emacs-devel@gnu.org \
    --cc=kfogel@red-bean.com \
    --cc=monnier@IRO.UMontreal.CA \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.