Subject: bug#39215: Hyperlinks to man pages in doc strings

From: Stefan Kangas <[email-masked]>
Date: Fri, 24 Sep 2021 19:10:09 -0700

Phil Sainty <[email-masked]> writes:

> On 2021-09-25 13:07, Stefan Kangas wrote:
>> "\\<[Mm]an[ \t\n]+\\(?:page\\)[ \t\n]+\\(?:for[
>> \t\n]\\)?['`‘\"]\\([^'’\"]+\\)['’\"]"
>
> Was "\\(?:page\\)[ \t\n]+" meant to be "\\(?:page[ \t\n]+\\)?" ?
>
> That would be almost the same as "for" except I note that there's
> no allowance for more than one whitespace char after "for", so
> maybe that needs changing as well?

Thanks for this attentive reading.

The intention was actually this, which should fix the issues you
mention:

"\\<[Mm]an[ \t\n]+page[ \t\n]+\\(?:for[ \t\n]+\\)?['`‘\"]\\([^'’\"]+\\)['’\"]")