unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jim Porter <jporterbugs@gmail.com>
To: 65766@debbugs.gnu.org
Subject: bug#65766: 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	[thread overview]
Message-ID: <a90048dc-4807-bcae-0f01-e23501744746@gmail.com> (raw)

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





             reply	other threads:[~2023-09-05 20:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-05 20:01 Jim Porter [this message]
2023-09-06 11:13 ` bug#65766: 29.1; On MS-Windows, Pcomplete for Git subcommands opens a web browser instead of listing completions(?!) Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a90048dc-4807-bcae-0f01-e23501744746@gmail.com \
    --to=jporterbugs@gmail.com \
    --cc=65766@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).