all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#61183: 29.0.60; Add describe-repeat-maps to the manual
@ 2023-01-30 17:19 Juri Linkov
  2023-01-30 17:59 ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Juri Linkov @ 2023-01-30 17:19 UTC (permalink / raw)
  To: 61183

Tags: patch

This patch adds describe-repeat-maps to the Info manual:

```
diff --git a/doc/emacs/basic.texi b/doc/emacs/basic.texi
index 2cc45a8805e..849647664b7 100644
--- a/doc/emacs/basic.texi
+++ b/doc/emacs/basic.texi
@@ -887,6 +887,7 @@ Repeating
 subsequent @kbd{z} repeats it once again.
 
 @findex repeat-mode
+@findex describe-repeat-maps
 @vindex repeat-exit-key
 @vindex repeat-exit-timeout
   Also you can activate @code{repeat-mode} that temporarily enables a
@@ -895,11 +896,11 @@ Repeating
 @kbd{C-x u C-x u} to undo many changes, @kbd{C-x o o} instead of
 @kbd{C-x o C-x o} to switch several windows, @kbd{C-x @{ @{ @} @} ^ ^
 v v} to resize the selected window interactively, @kbd{M-g n n p p} to
-navigate @code{next-error} matches, and @kbd{C-x ] ] [ [} to navigate
-through pages.  Any other key exits transient mode and then is
-executed normally.  The user option @code{repeat-exit-key} defines an
-additional key to exit this transient mode.  Also it's possible to
-break the repetition chain automatically after some idle time by
-customizing the user option @code{repeat-exit-timeout} to specify the
-idle time in seconds after which this transient mode will be turned
-off.
+navigate @code{next-error} matches, @kbd{C-x ] ] [ [} to navigate
+through pages, and other listed in @code{describe-repeat-maps}.
+Any other key exits transient mode and then is executed normally.  The
+user option @code{repeat-exit-key} defines an additional key to exit
+this transient mode.  Also it's possible to break the repetition chain
+automatically after some idle time by customizing the user option
+@code{repeat-exit-timeout} to specify the idle time in seconds after
+which this transient mode will be turned off.
```





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

* bug#61183: 29.0.60; Add describe-repeat-maps to the manual
  2023-01-30 17:19 bug#61183: 29.0.60; Add describe-repeat-maps to the manual Juri Linkov
@ 2023-01-30 17:59 ` Eli Zaretskii
  2023-01-30 18:10   ` Juri Linkov
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2023-01-30 17:59 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 61183

> From: Juri Linkov <juri@linkov.net>
> Date: Mon, 30 Jan 2023 19:19:56 +0200
> 
> This patch adds describe-repeat-maps to the Info manual:

Thanks.

> +navigate @code{next-error} matches, @kbd{C-x ] ] [ [} to navigate
> +through pages, and other listed in @code{describe-repeat-maps}.

"and other commands", I presume?

Also, saying that commands are "listed in" a function sounds
awkwardly; I guess you meant in the window shown by
describe-repeat-maps instead?

And finally, I think this is insufficient to document
describe-repeat-maps, because its output is not very
self-explanatory.  I actually have difficulty understanding what it
wants to tell me.  The heading line says

  A list of keymaps used by commands with the symbol property `repeat-map'

which isn't a user-level information.  This is followed by keymap
names and some bindings in each keymap.  What is the user supposed to
understand from that?  I think we lack some short introductory text
immediately after the heading.  Or maybe the manual should have some
more detailed explanation of what that command shows.





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

* bug#61183: 29.0.60; Add describe-repeat-maps to the manual
  2023-01-30 17:59 ` Eli Zaretskii
@ 2023-01-30 18:10   ` Juri Linkov
  2023-01-30 18:36     ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Juri Linkov @ 2023-01-30 18:10 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 61183

>> +navigate @code{next-error} matches, @kbd{C-x ] ] [ [} to navigate
>> +through pages, and other listed in @code{describe-repeat-maps}.
>
> "and other commands", I presume?

This is what I already tried, but noticed that it's talking about
key sequences.  But "other key sequences" looks awkward too.

> Also, saying that commands are "listed in" a function sounds
> awkwardly; I guess you meant in the window shown by
> describe-repeat-maps instead?

Maybe simply "listed by describe-repeat-maps"?

> And finally, I think this is insufficient to document
> describe-repeat-maps, because its output is not very
> self-explanatory.  I actually have difficulty understanding what it
> wants to tell me.  The heading line says
>
>   A list of keymaps used by commands with the symbol property `repeat-map'
>
> which isn't a user-level information.  This is followed by keymap
> names and some bindings in each keymap.  What is the user supposed to
> understand from that?  I think we lack some short introductory text
> immediately after the heading.  Or maybe the manual should have some
> more detailed explanation of what that command shows.

Its output is easy to understand for anyone who uses this feature
and just wants to check what commands are already supported.





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

* bug#61183: 29.0.60; Add describe-repeat-maps to the manual
  2023-01-30 18:10   ` Juri Linkov
@ 2023-01-30 18:36     ` Eli Zaretskii
  2023-01-31  9:45       ` Robert Pluim
  2023-02-01 18:06       ` Juri Linkov
  0 siblings, 2 replies; 9+ messages in thread
From: Eli Zaretskii @ 2023-01-30 18:36 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 61183

> From: Juri Linkov <juri@linkov.net>
> Cc: 61183@debbugs.gnu.org
> Date: Mon, 30 Jan 2023 20:10:53 +0200
> 
> >> +navigate @code{next-error} matches, @kbd{C-x ] ] [ [} to navigate
> >> +through pages, and other listed in @code{describe-repeat-maps}.
> >
> > "and other commands", I presume?
> 
> This is what I already tried, but noticed that it's talking about
> key sequences.  But "other key sequences" looks awkward too.

"Other key sequences" sounds OK to me.

> > Also, saying that commands are "listed in" a function sounds
> > awkwardly; I guess you meant in the window shown by
> > describe-repeat-maps instead?
> 
> Maybe simply "listed by describe-repeat-maps"?

Also works.

> > And finally, I think this is insufficient to document
> > describe-repeat-maps, because its output is not very
> > self-explanatory.  I actually have difficulty understanding what it
> > wants to tell me.  The heading line says
> >
> >   A list of keymaps used by commands with the symbol property `repeat-map'
> >
> > which isn't a user-level information.  This is followed by keymap
> > names and some bindings in each keymap.  What is the user supposed to
> > understand from that?  I think we lack some short introductory text
> > immediately after the heading.  Or maybe the manual should have some
> > more detailed explanation of what that command shows.
> 
> Its output is easy to understand for anyone who uses this feature
> and just wants to check what commands are already supported.

That's not the correct criterion for judging documentation, definitely
not when the manual is concerned.  The manual should be clear enough
to explain the command's effect even to someone who reads about
repeated commands for the first time.

And even if you only consider experienced users, how can a user
understand that these commands support repeating?  Which part(s) of
that buffer say that in terns that are clear enough?  A naïve reader
of the buffer will just see a list of commands and their bindings,
preceded by a sentence whose intent is hard to understand without some
background in Emacs keymaps.





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

* bug#61183: 29.0.60; Add describe-repeat-maps to the manual
  2023-01-30 18:36     ` Eli Zaretskii
@ 2023-01-31  9:45       ` Robert Pluim
  2023-01-31 14:07         ` Eli Zaretskii
  2023-02-01 18:06       ` Juri Linkov
  1 sibling, 1 reply; 9+ messages in thread
From: Robert Pluim @ 2023-01-31  9:45 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 61183, Juri Linkov

>>>>> On Mon, 30 Jan 2023 20:36:28 +0200, Eli Zaretskii <eliz@gnu.org> said:

    >> From: Juri Linkov <juri@linkov.net>
    >> Its output is easy to understand for anyone who uses this feature
    >> and just wants to check what commands are already supported.

    Eli> That's not the correct criterion for judging documentation, definitely
    Eli> not when the manual is concerned.  The manual should be clear enough
    Eli> to explain the command's effect even to someone who reads about
    Eli> repeated commands for the first time.

    Eli> And even if you only consider experienced users, how can a user
    Eli> understand that these commands support repeating?  Which part(s) of
    Eli> that buffer say that in terns that are clear enough?  A naïve reader
    Eli> of the buffer will just see a list of commands and their bindings,
    Eli> preceded by a sentence whose intent is hard to understand without some
    Eli> background in Emacs keymaps.


How about putting something like

If `repeat-mode' is enabled, these keymaps determine which single key 
can be used to repeat a command invoked via a full key sequence.

in the buffer produced by `descripe-repeat-maps'?

Robert
-- 





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

* bug#61183: 29.0.60; Add describe-repeat-maps to the manual
  2023-01-31  9:45       ` Robert Pluim
@ 2023-01-31 14:07         ` Eli Zaretskii
  2023-02-01 18:06           ` Juri Linkov
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2023-01-31 14:07 UTC (permalink / raw)
  To: Robert Pluim; +Cc: 61183, juri

> From: Robert Pluim <rpluim@gmail.com>
> Cc: Juri Linkov <juri@linkov.net>,  61183@debbugs.gnu.org
> Date: Tue, 31 Jan 2023 10:45:25 +0100
> 
>     Eli> And even if you only consider experienced users, how can a user
>     Eli> understand that these commands support repeating?  Which part(s) of
>     Eli> that buffer say that in terns that are clear enough?  A naïve reader
>     Eli> of the buffer will just see a list of commands and their bindings,
>     Eli> preceded by a sentence whose intent is hard to understand without some
>     Eli> background in Emacs keymaps.
> 
> 
> How about putting something like
> 
> If `repeat-mode' is enabled, these keymaps determine which single key 
> can be used to repeat a command invoked via a full key sequence.
> 
> in the buffer produced by `descripe-repeat-maps'?

This text is much better, thanks.  However, it only talks about the
keymaps, whereas the window we pop shows also some key bindings for
each keymap.  The explanatory text should say something about that as
well, I think.  Such an explanation would probably clarify why the
text says "single" in "single key", which currently looks "out of the
blue".





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

* bug#61183: 29.0.60; Add describe-repeat-maps to the manual
  2023-01-30 18:36     ` Eli Zaretskii
  2023-01-31  9:45       ` Robert Pluim
@ 2023-02-01 18:06       ` Juri Linkov
  1 sibling, 0 replies; 9+ messages in thread
From: Juri Linkov @ 2023-02-01 18:06 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 61183

>> >> +navigate @code{next-error} matches, @kbd{C-x ] ] [ [} to navigate
>> >> +through pages, and other listed in @code{describe-repeat-maps}.
>> >
>> > "and other commands", I presume?
>>
>> This is what I already tried, but noticed that it's talking about
>> key sequences.  But "other key sequences" looks awkward too.
>
> "Other key sequences" sounds OK to me.
>
>> > Also, saying that commands are "listed in" a function sounds
>> > awkwardly; I guess you meant in the window shown by
>> > describe-repeat-maps instead?
>>
>> Maybe simply "listed by describe-repeat-maps"?
>
> Also works.

Pushed.

>> Its output is easy to understand for anyone who uses this feature
>> and just wants to check what commands are already supported.
>
> That's not the correct criterion for judging documentation, definitely
> not when the manual is concerned.  The manual should be clear enough
> to explain the command's effect even to someone who reads about
> repeated commands for the first time.
>
> And even if you only consider experienced users, how can a user
> understand that these commands support repeating?  Which part(s) of
> that buffer say that in terns that are clear enough?  A naïve reader
> of the buffer will just see a list of commands and their bindings,
> preceded by a sentence whose intent is hard to understand without some
> background in Emacs keymaps.

Maybe this should be explained in the docstring of describe-repeat-maps.





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

* bug#61183: 29.0.60; Add describe-repeat-maps to the manual
  2023-01-31 14:07         ` Eli Zaretskii
@ 2023-02-01 18:06           ` Juri Linkov
  2023-02-02 13:37             ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Juri Linkov @ 2023-02-01 18:06 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Robert Pluim, 61183

>> How about putting something like
>>
>> If `repeat-mode' is enabled, these keymaps determine which single key
>> can be used to repeat a command invoked via a full key sequence.
>>
>> in the buffer produced by `descripe-repeat-maps'?
>
> This text is much better, thanks.

Now added to the docstring.

>                                    However, it only talks about the
> keymaps, whereas the window we pop shows also some key bindings for
> each keymap.  The explanatory text should say something about that as
> well, I think.  Such an explanation would probably clarify why the
> text says "single" in "single key", which currently looks "out of the
> blue".





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

* bug#61183: 29.0.60; Add describe-repeat-maps to the manual
  2023-02-01 18:06           ` Juri Linkov
@ 2023-02-02 13:37             ` Eli Zaretskii
  0 siblings, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2023-02-02 13:37 UTC (permalink / raw)
  To: Juri Linkov; +Cc: rpluim, 61183-done

> From: Juri Linkov <juri@linkov.net>
> Cc: Robert Pluim <rpluim@gmail.com>,  61183@debbugs.gnu.org
> Date: Wed, 01 Feb 2023 20:06:36 +0200
> 
> >> How about putting something like
> >>
> >> If `repeat-mode' is enabled, these keymaps determine which single key
> >> can be used to repeat a command invoked via a full key sequence.
> >>
> >> in the buffer produced by `descripe-repeat-maps'?
> >
> > This text is much better, thanks.
> 
> Now added to the docstring.
> 
> >                                    However, it only talks about the
> > keymaps, whereas the window we pop shows also some key bindings for
> > each keymap.  The explanatory text should say something about that as
> > well, I think.  Such an explanation would probably clarify why the
> > text says "single" in "single key", which currently looks "out of the
> > blue".

Thanks, I've made some further improvements in this and related
documentation.

I think we can now close this bug.





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

end of thread, other threads:[~2023-02-02 13:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-30 17:19 bug#61183: 29.0.60; Add describe-repeat-maps to the manual Juri Linkov
2023-01-30 17:59 ` Eli Zaretskii
2023-01-30 18:10   ` Juri Linkov
2023-01-30 18:36     ` Eli Zaretskii
2023-01-31  9:45       ` Robert Pluim
2023-01-31 14:07         ` Eli Zaretskii
2023-02-01 18:06           ` Juri Linkov
2023-02-02 13:37             ` Eli Zaretskii
2023-02-01 18:06       ` Juri Linkov

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.