From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: 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 Message-ID: <83sf7r3676.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38968"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65766@debbugs.gnu.org To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 06 13:15:11 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qdqV3-0009rS-0Q for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Sep 2023 13:15:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdqUz-0000hf-CC; Wed, 06 Sep 2023 07:15:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdqUw-0000hD-JI for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2023 07:15:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qdqUv-00050S-AL for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2023 07:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qdqUw-0003vf-AB for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2023 07:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Sep 2023 11:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65766 X-GNU-PR-Package: emacs Original-Received: via spool by 65766-submit@debbugs.gnu.org id=B65766.169399884215011 (code B ref 65766); Wed, 06 Sep 2023 11:15:02 +0000 Original-Received: (at 65766) by debbugs.gnu.org; 6 Sep 2023 11:14:02 +0000 Original-Received: from localhost ([127.0.0.1]:33118 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdqTx-0003tq-I8 for submit@debbugs.gnu.org; Wed, 06 Sep 2023 07:14:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdqTv-0003tb-5o for 65766@debbugs.gnu.org; Wed, 06 Sep 2023 07:14:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdqTo-0004qn-QZ; Wed, 06 Sep 2023 07:13:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ynjYhx8DiH5cSOIxFKE5GeuqXpljT/n6YA7AN4NCiGs=; b=LVOdXLj5sjRl /3udxS/yuhecoi3x0rDbBNn8sC77C2YNokkilvUP0G0skH3YZ1eBa+yx6OUhEIh1NdifZryyQb+LE 4T2XFC/QteQYxaSxImobvuyynCmH3H4Gg2U9AIC/HFMOfRXLFFtY4xZGW9oF1xkDspk4HaCuMIJ8p hp4Pve3qy6SrW0GcPbk2/TS8wIVdgReOug1kh1K8Iw9hdtkw4u+m7a7QK4TNA61SSDR+BNoFO7nD8 egs0KtPo6hfpFH1ohkR2y/93arTxarqKmH2EhzINmhD1sBBJIVZCpORzMh7hc2zihbx3hBSMNyjUa CSwKiZlPJKJY64t71kjfIA==; In-Reply-To: (message from Jim Porter on Tue, 5 Sep 2023 13:01:46 -0700) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:269508 Archived-At: > Date: Tue, 5 Sep 2023 13:01:46 -0700 > From: Jim Porter > > 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 - > > Instead of showing the list of completions, this opens up a web browser > to the URL > > (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.