GNU bug report logs -
#24842
24.5; `help-make-xrefs': False link-type determinations
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Mon, 31 Oct 2016 23:01:01 UTC
Severity: minor
Tags: wontfix
Found in versions 24.1, 24.0.50, 24.5
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On Tue, 07 Sep 2021 20:00:20 +0200 Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> Drew Adams <drew.adams <at> oracle.com> writes:
>
>> `help-make-xrefs' tries to guess the type of a symbol that is enclosed
>> in `...', in help.
>>
>> This determination needs to to be improved, or else programmers need
>> some way to inhibit it when it turns out to be inappropriate.
>>
>> Example: This is part of a doc string I have:
>>
>> `isearchp-movement-unit-alist'\t- units and their movement functions
>> `isearchp-on-demand-action-function'\t- on-demand action function
>> `isearchp-prompt-for-filter-name'\t- when to ask for filter name
>>
>> Those symbols are all variables (in fact, user options), not functions.
>> but the word "function" at the end of the second line causes the quoted
>> symbol that follows it to be considered as a function name. And then,
>> because it is not `fboundp', it gets no link. It should instead get a
>> variable-name link to its definition.
>
> There wasn't any recipe for reproduction here, so I came up with this:
>
> (defun foo1 ())
> (defvar foo2 ())
>
> (defvar foo nil
> "
> `foo1' something.
> `foo1'\t- units and their movement functions
> `foo2' something.
> `foo2'\t- units and their movement functions
> ")
>
> When evaling this and then `C-h v foo RET' in Emacs 28, all these are
> recognised as symbols in the *Help* buffer, so this seems to work for me
> in this test case, at least.
>
> Are you still seeing this issue in recent Emacs versions?
On Tue, 07 Sep 2021 21:28:22 +0200 Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> Drew Adams <drew.adams <at> oracle.com> writes:
>
>>> Are you still seeing this issue in recent Emacs versions?
>>
>> Thanks for testing. This was apparently fixed in release 24.
>> The bug was filed in a snapshot between 23 and 24. (The bug
>> still exists in 23.)
>>
>> So this can be closed. Thx.
>
> Thanks; closing this, then.
But the recipe Lars gave doesn't quite match the description Drew gave,
IIUC: if in the recipe you change the first occurrence of `functions' to
`function', then eval and do `C-h v foo', then the first occurrence of
`foo2' in the doc string is not turned into a link. Isn't that what the
problem was, and still is?
Steve Berman
This bug report was last modified 3 years and 152 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.