unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#25406: 24.5; doc string of `Info-history'
@ 2017-01-09 16:39 Drew Adams
  2017-01-09 18:36 ` Eli Zaretskii
  2019-07-05 12:17 ` Stefan Kangas
  0 siblings, 2 replies; 5+ messages in thread
From: Drew Adams @ 2017-01-09 16:39 UTC (permalink / raw)
  To: 25406

The doc string of `Info-find-emacs-command-nodes' refers you to variable
`Info-history' for the format of the locations.

But the doc for `Info-history' says nothing about FILENAME, NODENAME,
and BUFFERPOS.

Instead, those are described in `Info-find-emacs-command-nodes'.

Something is backwards here, and/or missing.  Why refer to "the format
used in the variable `Info-history' if consulting that variable tells
you less about the format that what you are told before sending you
there?

Also, the language in the last sentence of the doc string for
`Info-find-emacs-command-nodes' is not so good.  I'm guessing that
this might be what is really meant:

 ", where BUFFERPOS is the line number
 of the first element of the returned list (which is treated specially
 in `Info-goto-emacs-command-node'), and 0 for the other elements of
 the list."

But why the parenthetical remark, and what it really means, I have
no idea.


In GNU Emacs 24.5.1 (i686-pc-mingw32)
 of 2015-04-11 on LEG570
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/usr --host=i686-pc-mingw32'





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

* bug#25406: 24.5; doc string of `Info-history'
  2017-01-09 16:39 bug#25406: 24.5; doc string of `Info-history' Drew Adams
@ 2017-01-09 18:36 ` Eli Zaretskii
  2019-07-05 12:17 ` Stefan Kangas
  1 sibling, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2017-01-09 18:36 UTC (permalink / raw)
  To: Drew Adams; +Cc: 25406

> Date: Mon, 9 Jan 2017 08:39:13 -0800 (PST)
> From: Drew Adams <drew.adams@oracle.com>
> 
> The doc string of `Info-find-emacs-command-nodes' refers you to variable
> `Info-history' for the format of the locations.
> 
> But the doc for `Info-history' says nothing about FILENAME, NODENAME,
> and BUFFERPOS.
> 
> Instead, those are described in `Info-find-emacs-command-nodes'.

Yes, and that is consistent with the text of the doc string.

> Something is backwards here, and/or missing.  Why refer to "the format
> used in the variable `Info-history' if consulting that variable tells
> you less about the format that what you are told before sending you
> there?

While the reference to Info-history might be redundant to some degree,
I see nothing wrong with it -- or the rest of the text.

>  ", where BUFFERPOS is the line number
>  of the first element of the returned list (which is treated specially
>  in `Info-goto-emacs-command-node'), and 0 for the other elements of
>  the list."
> 
> But why the parenthetical remark, and what it really means, I have
> no idea.

It is a hint for why BUFFERPOS is non-zero only in that first element.
That hint is only important to someone who wants to understand how the
code works.





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

* bug#25406: 24.5; doc string of `Info-history'
  2017-01-09 16:39 bug#25406: 24.5; doc string of `Info-history' Drew Adams
  2017-01-09 18:36 ` Eli Zaretskii
@ 2019-07-05 12:17 ` Stefan Kangas
  2019-07-05 12:38   ` Eli Zaretskii
  1 sibling, 1 reply; 5+ messages in thread
From: Stefan Kangas @ 2019-07-05 12:17 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 25406

Eli Zaretskii <eliz@gnu.org> writes:

>> Date: Mon, 9 Jan 2017 08:39:13 -0800 (PST)
>> From: Drew Adams <drew.adams@oracle.com>
>>
>> The doc string of `Info-find-emacs-command-nodes' refers you to variable
>> `Info-history' for the format of the locations.
>>
>> But the doc for `Info-history' says nothing about FILENAME, NODENAME,
>> and BUFFERPOS.
>>
>> Instead, those are described in `Info-find-emacs-command-nodes'.
>
> Yes, and that is consistent with the text of the doc string.
>
>> Something is backwards here, and/or missing.  Why refer to "the format
>> used in the variable `Info-history' if consulting that variable tells
>> you less about the format that what you are told before sending you
>> there?
>
> While the reference to Info-history might be redundant to some degree,
> I see nothing wrong with it -- or the rest of the text.
>
>>  ", where BUFFERPOS is the line number
>>  of the first element of the returned list (which is treated specially
>>  in `Info-goto-emacs-command-node'), and 0 for the other elements of
>>  the list."
>>
>> But why the parenthetical remark, and what it really means, I have
>> no idea.
>
> It is a hint for why BUFFERPOS is non-zero only in that first element.
> That hint is only important to someone who wants to understand how the
> code works.

It seems to me that the conclusion here is to do nothing.  Can we close
this bug report or am I missing something?

Best regards,
Stefan Kangas





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

* bug#25406: 24.5; doc string of `Info-history'
  2019-07-05 12:17 ` Stefan Kangas
@ 2019-07-05 12:38   ` Eli Zaretskii
  2019-08-02 14:02     ` Stefan Kangas
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2019-07-05 12:38 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 25406

> From: Stefan Kangas <stefan@marxist.se>
> Date: Fri, 5 Jul 2019 14:17:39 +0200
> Cc: Drew Adams <drew.adams@oracle.com>, 25406@debbugs.gnu.org
> 
> It seems to me that the conclusion here is to do nothing.  Can we close
> this bug report or am I missing something?

I'm fine with closing it.





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

* bug#25406: 24.5; doc string of `Info-history'
  2019-07-05 12:38   ` Eli Zaretskii
@ 2019-08-02 14:02     ` Stefan Kangas
  0 siblings, 0 replies; 5+ messages in thread
From: Stefan Kangas @ 2019-08-02 14:02 UTC (permalink / raw)
  To: Eli Zaretskii, 25406-done

Eli Zaretskii <eliz@gnu.org> writes:

> > From: Stefan Kangas <stefan@marxist.se>
> > Date: Fri, 5 Jul 2019 14:17:39 +0200
> > Cc: Drew Adams <drew.adams@oracle.com>, 25406@debbugs.gnu.org
> >
> > It seems to me that the conclusion here is to do nothing.  Can we close
> > this bug report or am I missing something?
>
> I'm fine with closing it.

OK, closed.

Thanks,
Stefan Kangas





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

end of thread, other threads:[~2019-08-02 14:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-09 16:39 bug#25406: 24.5; doc string of `Info-history' Drew Adams
2017-01-09 18:36 ` Eli Zaretskii
2019-07-05 12:17 ` Stefan Kangas
2019-07-05 12:38   ` Eli Zaretskii
2019-08-02 14:02     ` Stefan Kangas

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