GNU bug report logs - #63132
Bug on Darwin MacOS with 'M-x man RET commandname[ ]'

Previous Next

Package: emacs;

Reported by: asocial-hired.0l <at> icloud.com

Date: Thu, 27 Apr 2023 21:12:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Arteen1000 <arteen1000 <at> gmail.com>
To: Eli Zaretskii <eliz_at_gnu_org_pp7ae4cxcc7edx_x8aj9216 <at> icloud.com>
Cc: 63132 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: bug#63132: Bug on Darwin MacOS with 'M-x man RET commandname[ ]'
Date: Fri, 28 Apr 2023 08:18:27 -0700
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.