unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#65766: 29.1; On MS-Windows, Pcomplete for Git subcommands opens a web browser instead of listing completions(?!)
@ 2023-09-05 20:01 Jim Porter
  2023-09-06 11:13 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Jim Porter @ 2023-09-05 20:01 UTC (permalink / raw)
  To: 65766

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).





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#65766: 29.1; On MS-Windows, Pcomplete for Git subcommands opens a web browser instead of listing completions(?!)
  2023-09-05 20:01 bug#65766: 29.1; On MS-Windows, Pcomplete for Git subcommands opens a web browser instead of listing completions(?!) Jim Porter
@ 2023-09-06 11:13 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2023-09-06 11:13 UTC (permalink / raw)
  To: Jim Porter; +Cc: 65766

> Date: Tue, 5 Sep 2023 13:01:46 -0700
> From: Jim Porter <jporterbugs@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.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-06 11:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-05 20:01 bug#65766: 29.1; On MS-Windows, Pcomplete for Git subcommands opens a web browser instead of listing completions(?!) Jim Porter
2023-09-06 11:13 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).