[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 9a53b6d: Say how to override a primitive interact
From: |
Karl Fogel |
Subject: |
[Emacs-diffs] emacs-26 9a53b6d: Say how to override a primitive interactive spec |
Date: |
Sun, 24 Jun 2018 08:11:12 -0400 (EDT) |
branch: emacs-26
commit 9a53b6d4260bde138117be385d5f626122f49904
Author: Karl Fogel <address@hidden>
Commit: Karl Fogel <address@hidden>
Say how to override a primitive interactive spec
* doc/lispref/internals.texi (Writing Emacs Primitives): Mention that
the `interactive-form' property can be used to override a primitive
interactive specification, and refer to the detailed documentation
for setting that property.
From this thread on Emacs Devel:
https://lists.gnu.org/archive/html/emacs-devel/2018-03/msg00923.html
From: Eli Zaretskii
To: Karl Fogel
CC: Juri Linkov, Emacs Devel
Subject: Re: [Emacs-diffs] \
master b88e7c8: Make transpose-regions interactive (Bug#30343)
Date: Thu, 29 Mar 2018 14:38:15 +0300
Message-Id: <address@hidden>
---
doc/lispref/internals.texi | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/doc/lispref/internals.texi b/doc/lispref/internals.texi
index e604335..2533327 100644
--- a/doc/lispref/internals.texi
+++ b/doc/lispref/internals.texi
@@ -743,6 +743,11 @@ DEFUN ("foo", Ffoo, Sfoo, 0, UNEVALLED, 0
@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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 9a53b6d: Say how to override a primitive interactive spec,
Karl Fogel <=