From: Karl Fogel <kfogel@red-bean.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: monnier@IRO.UMontreal.CA, emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] emacs-26 9a53b6d: Say how to override a primitive interactive spec
Date: Mon, 25 Jun 2018 07:43:58 -0500 [thread overview]
Message-ID: <87r2kvujch.fsf@red-bean.com> (raw)
In-Reply-To: <87y3f3a5o9.fsf@red-bean.com>
I wrote:
>One route might be to just put a "(@pxref{Using interactive})" at the
>end of the sentence [...] instead of my larger change, which I'd be
>happy to do; maybe that's the kind of thing you had mind by
>"cross-reference" in the first place.
Slept on it and realized that's a better solution (and also likely what you originally meant). Eli, if this looks like a good doc patch to you I'll install it:
--- doc/lispref/internals.texi
+++ doc/lispref/internals.texi
@@ -726,7 +726,8 @@ Writing Emacs Primitives
@cindex interactive specification in primitives
@item interactive
This is an interactive specification, a string such as might be used
-as the argument of @code{interactive} in a Lisp function. In the case
+as the argument of @code{interactive} in a Lisp function
+(@pxref{Using Interactive}). In the case
of @code{or}, it is 0 (a null pointer), indicating that @code{or}
cannot be called interactively. A value of @code{""} indicates a
function that should receive no arguments when called interactively.
@@ -743,11 +744,6 @@ Writing Emacs Primitives
@end group
@end example
-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.
-
@item doc
This is the documentation string. It uses C comment syntax rather
than C string syntax because comment syntax requires nothing special
next prev parent reply other threads:[~2018-06-25 12:43 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 ` `interactive-form` symbol property Basil L. Contovounesios
2018-06-24 15:56 ` 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 [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r2kvujch.fsf@red-bean.com \
--to=kfogel@red-bean.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).