GNU bug report logs - #65766
29.1; On MS-Windows, Pcomplete for Git subcommands opens a web browser instead of listing completions(?!)

Previous Next

Package: emacs;

Reported by: Jim Porter <jporterbugs <at> gmail.com>

Date: Tue, 5 Sep 2023 20:03:02 UTC

Severity: normal

Found in version 29.1

To reply to this bug, email your comments to 65766 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#65766; Package emacs. (Tue, 05 Sep 2023 20:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jim Porter <jporterbugs <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 05 Sep 2023 20:03:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jim Porter <jporterbugs <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.1; On MS-Windows, Pcomplete for Git subcommands opens a web
 browser instead of listing completions(?!)
Date: Tue, 5 Sep 2023 13:01:46 -0700
This is pretty weird, but I think I know what's happening here. On 
MS-Windows, start from "emacs -Q -f shell" and then type:

  git add -<TAB>

Instead of showing the list of completions, this opens up a web browser 
to the URL 
<file:///C:/Program%20Files/Git/mingw64/share/doc/git-doc/git-add.html> 
(or wherever you installed Git).

That's because usually, MS-Windows users don't have "man" installed, so 
Git opts to show its man pages in a web browser. I think when getting 
Pcomplete info from Help for Git, we should pass '--man' on the command 
line to force Git to use the format we expect (or at least to error out 
so that it doesn't open the web browser).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65766; Package emacs. (Wed, 06 Sep 2023 11:15:02 GMT) Full text and rfc822 format available.

Message #8 received at 65766 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jim Porter <jporterbugs <at> gmail.com>
Cc: 65766 <at> debbugs.gnu.org
Subject: Re: bug#65766: 29.1;
 On MS-Windows, Pcomplete for Git subcommands opens a web browser
 instead of listing completions(?!)
Date: Wed, 06 Sep 2023 14:13:33 +0300
> Date: Tue, 5 Sep 2023 13:01:46 -0700
> From: Jim Porter <jporterbugs <at> gmail.com>
> 
> This is pretty weird, but I think I know what's happening here. On 
> MS-Windows, start from "emacs -Q -f shell" and then type:
> 
>    git add -<TAB>
> 
> Instead of showing the list of completions, this opens up a web browser 
> to the URL 
> <file:///C:/Program%20Files/Git/mingw64/share/doc/git-doc/git-add.html> 
> (or wherever you installed Git).
> 
> That's because usually, MS-Windows users don't have "man" installed, so 
> Git opts to show its man pages in a web browser. I think when getting 
> Pcomplete info from Help for Git, we should pass '--man' on the command 
> line to force Git to use the format we expect (or at least to error out 
> so that it doesn't open the web browser).

Fine by me.  Bonus points for detecting that the Info manual for Git
is installed (I have one), and using that instead of man pages for
completion.




This bug report was last modified 1 year and 283 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.