public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Add to documentation of Python 'dont_repeat' method
@ 2022-02-19 16:47 Tom Tromey
  2022-05-18 18:53 ` Tom Tromey
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Tromey @ 2022-02-19 16:47 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

PR python/28533 points out that the Python 'dont_repeat' documentation
is a bit ambiguous about when the method ought to be called.  This
patch spells it out.
---
 gdb/doc/python.texi | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index c1a3f5f2a7e..c861bc34fd3 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -3896,8 +3896,10 @@ not documented.'' is used.
 @defun Command.dont_repeat ()
 By default, a @value{GDBN} command is repeated when the user enters a
 blank line at the command prompt.  A command can suppress this
-behavior by invoking the @code{dont_repeat} method.  This is similar
-to the user command @code{dont-repeat}, see @ref{Define, dont-repeat}.
+behavior by invoking the @code{dont_repeat} method at some point in
+its @code{invoke} method (normally this is done early in case of
+exception).  This is similar to the user command @code{dont-repeat},
+see @ref{Define, dont-repeat}.
 @end defun
 
 @defun Command.invoke (argument, from_tty)
-- 
2.31.1


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

* Re: [PATCH] Add to documentation of Python 'dont_repeat' method
  2022-02-19 16:47 [PATCH] Add to documentation of Python 'dont_repeat' method Tom Tromey
@ 2022-05-18 18:53 ` Tom Tromey
  2022-06-15 15:45   ` Tom Tromey
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Tromey @ 2022-05-18 18:53 UTC (permalink / raw)
  To: Tom Tromey; +Cc: gdb-patches

>>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:

Tom> PR python/28533 points out that the Python 'dont_repeat' documentation
Tom> is a bit ambiguous about when the method ought to be called.  This
Tom> patch spells it out.

Ping.

Tom

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

* Re: [PATCH] Add to documentation of Python 'dont_repeat' method
  2022-05-18 18:53 ` Tom Tromey
@ 2022-06-15 15:45   ` Tom Tromey
  2022-06-15 17:35     ` Christian Biesinger
  2022-06-15 18:03     ` Eli Zaretskii
  0 siblings, 2 replies; 5+ messages in thread
From: Tom Tromey @ 2022-06-15 15:45 UTC (permalink / raw)
  To: Tom Tromey; +Cc: gdb-patches

>>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:

>>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:
Tom> PR python/28533 points out that the Python 'dont_repeat' documentation
Tom> is a bit ambiguous about when the method ought to be called.  This
Tom> patch spells it out.

> Ping.

Ping again.

Tom

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

* Re: [PATCH] Add to documentation of Python 'dont_repeat' method
  2022-06-15 15:45   ` Tom Tromey
@ 2022-06-15 17:35     ` Christian Biesinger
  2022-06-15 18:03     ` Eli Zaretskii
  1 sibling, 0 replies; 5+ messages in thread
From: Christian Biesinger @ 2022-06-15 17:35 UTC (permalink / raw)
  To: Tom Tromey; +Cc: gdb-patches

On Wed, Jun 15, 2022 at 11:45 AM Tom Tromey <tom@tromey.com> wrote:
>
> >>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:
>
> >>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:
> Tom> PR python/28533 points out that the Python 'dont_repeat' documentation
> Tom> is a bit ambiguous about when the method ought to be called.  This
> Tom> patch spells it out.
>
> > Ping.
>
> Ping again.

FWIW I like this change.

Christian

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

* Re: [PATCH] Add to documentation of Python 'dont_repeat' method
  2022-06-15 15:45   ` Tom Tromey
  2022-06-15 17:35     ` Christian Biesinger
@ 2022-06-15 18:03     ` Eli Zaretskii
  1 sibling, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2022-06-15 18:03 UTC (permalink / raw)
  To: Tom Tromey; +Cc: gdb-patches

> From: Tom Tromey <tom@tromey.com>
> Date: Wed, 15 Jun 2022 09:45:05 -0600
> Cc: gdb-patches@sourceware.org
> 
> >>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:
> 
> >>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:
> Tom> PR python/28533 points out that the Python 'dont_repeat' documentation
> Tom> is a bit ambiguous about when the method ought to be called.  This
> Tom> patch spells it out.
> 
> > Ping.
> 
> Ping again.

Sorry for missing it.

This is OK, Texinfo-wise.

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

end of thread, other threads:[~2022-06-15 18:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-19 16:47 [PATCH] Add to documentation of Python 'dont_repeat' method Tom Tromey
2022-05-18 18:53 ` Tom Tromey
2022-06-15 15:45   ` Tom Tromey
2022-06-15 17:35     ` Christian Biesinger
2022-06-15 18:03     ` Eli Zaretskii

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