unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#42776: Obscure documentation of `edebug-form-data' in edebug.el
@ 2020-08-09 15:03 Alan Mackenzie
  2020-12-09 13:37 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Mackenzie @ 2020-08-09 15:03 UTC (permalink / raw)
  To: 42776

Hello, Emacs.

In the master branch:

The doc string of edebug-form-data begins thusly:

     "A list of entries associating symbols with buffer regions.
      Each entry is an `edebug--form-data' struct with fields:
      SYMBOL, BEGIN-MARKER, and END-MARKER.  The markers
      are at the beginning and end of an entry level form and SYMBOL is
      a symbol that holds all edebug related information for the form on its
      property list."
 
The following extract from this is obscure: "...the beginning and end of
an entry level form ...."

What in heaven or earth is an "entry level form"?  What is it for?

Less major questions are: What is the nature of the "association" of the
symbols with the buffer regions?  Which buffer gets its regions
associated?

It seems the only way to make sense of this doc string is by reading
edebug.el's source to find out what it means.  This isn't what doc
strings are supposed to be for.

This is a bug.

-- 
Alan Mackenzie (Nuremberg, Germany).





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

* bug#42776: Obscure documentation of `edebug-form-data' in edebug.el
  2020-08-09 15:03 bug#42776: Obscure documentation of `edebug-form-data' in edebug.el Alan Mackenzie
@ 2020-12-09 13:37 ` Lars Ingebrigtsen
  2020-12-26  9:01   ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2020-12-09 13:37 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: 42776

Alan Mackenzie <acm@muc.de> writes:

> The doc string of edebug-form-data begins thusly:
>
>      "A list of entries associating symbols with buffer regions.
>       Each entry is an `edebug--form-data' struct with fields:
>       SYMBOL, BEGIN-MARKER, and END-MARKER.  The markers
>       are at the beginning and end of an entry level form and SYMBOL is
>       a symbol that holds all edebug related information for the form on its
>       property list."
>
> The following extract from this is obscure: "...the beginning and end of
> an entry level form ...."
>
> What in heaven or earth is an "entry level form"?  What is it for?

I'm guessing that's just a typo for "of a form"?

> Less major questions are: What is the nature of the "association" of the
> symbols with the buffer regions?  Which buffer gets its regions
> associated?
>
> It seems the only way to make sense of this doc string is by reading
> edebug.el's source to find out what it means.  This isn't what doc
> strings are supposed to be for.

I'm not extremely familiar with the edebug data structures -- can
somebody clarify this doc string?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#42776: Obscure documentation of `edebug-form-data' in edebug.el
  2020-12-09 13:37 ` Lars Ingebrigtsen
@ 2020-12-26  9:01   ` Eli Zaretskii
  2020-12-26 22:15     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2020-12-26  9:01 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: acm, 42776

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Wed, 09 Dec 2020 14:37:20 +0100
> Cc: 42776@debbugs.gnu.org
> 
> Alan Mackenzie <acm@muc.de> writes:
> 
> > The doc string of edebug-form-data begins thusly:
> >
> >      "A list of entries associating symbols with buffer regions.
> >       Each entry is an `edebug--form-data' struct with fields:
> >       SYMBOL, BEGIN-MARKER, and END-MARKER.  The markers
> >       are at the beginning and end of an entry level form and SYMBOL is
> >       a symbol that holds all edebug related information for the form on its
> >       property list."
> >
> > The following extract from this is obscure: "...the beginning and end of
> > an entry level form ...."
> >
> > What in heaven or earth is an "entry level form"?  What is it for?
> 
> I'm guessing that's just a typo for "of a form"?

"Of an instrumented form", I guess?  Any reason not to modify the doc
string with that?

> > Less major questions are: What is the nature of the "association" of the
> > symbols with the buffer regions?  Which buffer gets its regions
> > associated?

The buffer in which the instrumented form lives.  IOW, the source code
of the form you instrumented.





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

* bug#42776: Obscure documentation of `edebug-form-data' in edebug.el
  2020-12-26  9:01   ` Eli Zaretskii
@ 2020-12-26 22:15     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2020-12-26 22:15 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: acm, 42776

Eli Zaretskii <eliz@gnu.org> writes:

> "Of an instrumented form", I guess?  Any reason not to modify the doc
> string with that?

Looking at the code, that does seem to be the intended meaning (I
think), so I've now made that change.

>> > Less major questions are: What is the nature of the "association" of the
>> > symbols with the buffer regions?  Which buffer gets its regions
>> > associated?
>
> The buffer in which the instrumented form lives.  IOW, the source code
> of the form you instrumented.

Yup.  And I think that's everything covered?  So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2020-12-26 22:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-09 15:03 bug#42776: Obscure documentation of `edebug-form-data' in edebug.el Alan Mackenzie
2020-12-09 13:37 ` Lars Ingebrigtsen
2020-12-26  9:01   ` Eli Zaretskii
2020-12-26 22:15     ` Lars Ingebrigtsen

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