unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Doc of keyboard macros
@ 2018-09-24 14:47 Stefan Monnier
  2018-09-24 15:21 ` Eli Zaretskii
  0 siblings, 1 reply; 18+ messages in thread
From: Stefan Monnier @ 2018-09-24 14:47 UTC (permalink / raw)
  To: emacs-devel

https://emacs.stackexchange.com/questions/44918 points out that `C-x (`
and `C-x e` are not very visible in the doc, while F3 and F4 may be
difficult to reach on Apple's machines (and I just saw that they are
also difficult to reach on my Debian machine for some reason).
So I suggest making the "old" keyboard macro bindings a bit more
prominent in the doc (I also happen to prefer them over F3 and F4,
because of their mnemonic value).

Any objection to the patch below for emacs-26?


        Stefan


diff --git a/doc/emacs/kmacro.texi b/doc/emacs/kmacro.texi
index dac41fdb87..e71f23632d 100644
--- a/doc/emacs/kmacro.texi
+++ b/doc/emacs/kmacro.texi
@@ -47,19 +47,27 @@ Keyboard Macros
 @node Basic Keyboard Macro
 @section Basic Use
 
-@table @kbd
-@item @key{F3}
+@table @asis
+@item @kbd{C-x (} or @key{F3}
 Start defining a keyboard macro
 (@code{kmacro-start-macro-or-insert-counter}).
-@item @key{F4}
-If a keyboard macro is being defined, end the definition; otherwise,
-execute the most recent keyboard macro
-(@code{kmacro-end-or-call-macro}).
-@item C-u @key{F3}
-Re-execute last keyboard macro, then append keys to its definition.
-@item C-u C-u @key{F3}
-Append keys to the last keyboard macro without re-executing it.
-@item C-x C-k r
+
+When invoked with a @kbd{C-u} prefix, it first re-executes the last
+keyboard macro and then appends keys to its definition.
+
+When invoked with a double @kbd{C-u C-u}
+it append keys to the last keyboard macro without re-executing it.
+
+@item @kbd{C-x e} or @key{F4}
+Execute the most recent keyboard macro.  If a keyboard macro is being
+defined, end the definition.
+
+For historical reasons, the two bindings are subtly different: if
+invoked while a macro is being defined, @key{F4} only ends the current
+definition, while @kbd{C-x e} additionally immediately executes the
+just defined macro.
+
+@item @kbd{C-x C-k r}
 Run the last keyboard macro on each line that begins in the region
 (@code{apply-macro-to-region-lines}).
 @end table



^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2018-10-16  1:05 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-24 14:47 Doc of keyboard macros Stefan Monnier
2018-09-24 15:21 ` Eli Zaretskii
2018-09-24 15:51   ` Eli Zaretskii
2018-09-24 16:36     ` Stefan Monnier
2018-09-24 16:50       ` Andreas Schwab
2018-09-24 17:07       ` Eli Zaretskii
2018-09-24 19:00         ` Stefan Monnier
2018-09-24 19:23         ` Juri Linkov
2018-09-24 19:35           ` Eli Zaretskii
2018-09-24 20:03             ` Alan Mackenzie
2018-09-24 20:17             ` Joost Kremers
2018-10-10 20:25               ` Mathias Dahl
2018-10-14  8:28                 ` Marcin Borkowski
2018-10-14 14:33                   ` Yuri Khan
2018-10-15 20:22                     ` Juri Linkov
2018-10-16  1:05                       ` Van L
2018-09-24 20:06           ` Drew Adams
2018-09-24 20:22         ` Filipp Gunbin

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