GNU bug report logs -
#63132
Bug on Darwin MacOS with 'M-x man RET commandname[ ]'
Previous Next
Full log
View this message in rfc822 format
The reason I do it is to get the ‘man 2 read’ page. I believe the issue is primarily caused by call to ‘man -k ^2’ and ‘man -k ^’ from Man-completion-table but I am unsure. The advice defined doesn’t work on Linux VM (makes it crash) but works on MacOS, so I am not sure why exactly this is.
> On Apr 28, 2023, at 3:43 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>
>
>>
>> Cc: 63132 <at> debbugs.gnu.org
>> Date: Fri, 28 Apr 2023 10:49:30 +0300
>> From: Eli Zaretskii <eliz <at> gnu.org>
>>
>>> (define-advice man (:around (orig-func &rest args) no-completing-read)
>>>
>>> "Inhibit `completing-read'."
>>
>> Please tell what is wrong with the arguments passed to the 'man'
>> commands, so I could think about fixing that without any advices.
>
> I think I understand the issue now: it happens inside
> Man-completion-table, right?
>
> But then I don't understand the situation: why would someone type
> "M-x man RET 2 ", with the trailing space? Is this simply a mistake
> on behalf of the user?
>
> Stefan, any ideas how we can catch this situation? I don't think we
> can blindly remove the trailing whitespace, since this could be
> meaningful in completion?
This bug report was last modified 2 years and 47 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.