Received: (at 65766) by debbugs.gnu.org; 6 Sep 2023 11:14:02 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 06 07:14:02 2023 Received: from localhost ([127.0.0.1]:33118 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qdqTx-0003tq-I8 for submit <at> debbugs.gnu.org; Wed, 06 Sep 2023 07:14:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1qdqTv-0003tb-5o for 65766 <at> debbugs.gnu.org; Wed, 06 Sep 2023 07:14:00 -0400 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 <eliz@HIDDEN>) 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==; Date: Wed, 06 Sep 2023 14:13:33 +0300 Message-Id: <83sf7r3676.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Jim Porter <jporterbugs@HIDDEN> In-Reply-To: <a90048dc-4807-bcae-0f01-e23501744746@HIDDEN> (message from Jim Porter on Tue, 5 Sep 2023 13:01:46 -0700) Subject: Re: bug#65766: 29.1; On MS-Windows, Pcomplete for Git subcommands opens a web browser instead of listing completions(?!) References: <a90048dc-4807-bcae-0f01-e23501744746@HIDDEN> X-Spam-Score: -2.2 (--) X-Debbugs-Envelope-To: 65766 Cc: 65766 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.2 (---) > Date: Tue, 5 Sep 2023 13:01:46 -0700 > From: Jim Porter <jporterbugs@HIDDEN> > > 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.
bug-gnu-emacs@HIDDEN
:bug#65766
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 5 Sep 2023 20:02:02 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 05 16:02:01 2023 Received: from localhost ([127.0.0.1]:59494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qdcFN-0005Wg-H7 for submit <at> debbugs.gnu.org; Tue, 05 Sep 2023 16:02:01 -0400 Received: from lists.gnu.org ([2001:470:142::17]:55542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jporterbugs@HIDDEN>) id 1qdcFK-0005WN-Jf for submit <at> debbugs.gnu.org; Tue, 05 Sep 2023 16:01:59 -0400 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 <jporterbugs@HIDDEN>) id 1qdcFE-0000Kk-EU for bug-gnu-emacs@HIDDEN; Tue, 05 Sep 2023 16:01:52 -0400 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <jporterbugs@HIDDEN>) id 1qdcFC-00016P-3u for bug-gnu-emacs@HIDDEN; Tue, 05 Sep 2023 16:01:52 -0400 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1bc0d39b52cso16948315ad.2 for <bug-gnu-emacs@HIDDEN>; Tue, 05 Sep 2023 13:01:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693944107; x=1694548907; darn=gnu.org; h=content-transfer-encoding:to:subject:from:content-language :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=n6mehHkap/bxasWHAxU2xlsvfjvF30XtLJNSfTOGseY=; b=iQEFpOdg4L3v8hbc6DBYCxrZSLzGRpUUlE06px18OqtB9defF8RiRWHo8FqFls8yh8 /3n6GvezThKq5hokq/SLpAVpX5LOg7eBcjcBg04xViMIoxEK2cJVTB6mEDsk83SK4p0s BYt2XF9jJE8prYkJhVPCe3r72cwFPGBuR7UBwcPB+jzp6jYEGaIlydNS1yMASTClrETl v0XXUji/xBBK2eddsd5tiYSFc74dPnl5WGQoEXM1EIHa3Z9+8X4MRX3tl2V+iJ/uzVV9 S3VvDI+oRMxbkXTO+ep4UUKxIOAqukzcvWUVYLjSFa+6xyHg1FjHzoywpyGRz0Kg2JoY iuXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693944107; x=1694548907; h=content-transfer-encoding:to:subject:from:content-language :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=n6mehHkap/bxasWHAxU2xlsvfjvF30XtLJNSfTOGseY=; b=N5JoOR83Kb9t6pyQYN78ZxK6cFJ0hAsvBdu0bezNBj8Q2XvKwyr098Xp3+oQdC0jav NNhkxvwF0Wpmq/87O57yWZ8RW3kPteN3gR5zWV66mrBj4rhE/R4+yemiUp3ALSwqCK9R QZgjrIKVkwoycGtwN6aOBRkHmIGNRzKusvP49Z+pGXhD1VRWC161UpHmMxNtT3hNEc2Q GqeVDawwiSVGtgmglU8Ce0EpyzG1111N+kRX465MCjgkogw1k3F/A87lHJpEuUs9/do8 ngnNv4yMOmVNY0RQwUfLyHni7Rv0sIJOcQb0S8Ketm8LbN2WjA3CiMa8SSftYCn0+zNt YCxA== X-Gm-Message-State: AOJu0Yy4/mUuTdKqJAX6USkY/VUNc/04rmtPKybgrZuXxuOkdMwbbAyU IvuJiMK7h5e/e+QxgeVvBgRQrhOUQISJMw== X-Google-Smtp-Source: AGHT+IHx1kmPEs2ktwMboqk5dGqH6B7Rp9S2nivI2Ulm1isE7pV5Pob1w5nMFuiynIgsL5CQq3dI3w== X-Received: by 2002:a17:903:258d:b0:1c0:aca0:8c2d with SMTP id jb13-20020a170903258d00b001c0aca08c2dmr9626216plb.67.1693944107330; Tue, 05 Sep 2023 13:01:47 -0700 (PDT) Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id l6-20020a170903244600b001bbfa86ca3bsm9735311pls.78.2023.09.05.13.01.46 for <bug-gnu-emacs@HIDDEN> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Sep 2023 13:01:47 -0700 (PDT) Message-ID: <a90048dc-4807-bcae-0f01-e23501744746@HIDDEN> Date: Tue, 5 Sep 2023 13:01:46 -0700 MIME-Version: 1.0 X-Mozilla-News-Host: news://news.gmane.io:119 Content-Language: en-US From: Jim Porter <jporterbugs@HIDDEN> Subject: 29.1; On MS-Windows, Pcomplete for Git subcommands opens a web browser instead of listing completions(?!) To: bug-gnu-emacs@HIDDEN Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=jporterbugs@HIDDEN; helo=mail-pl1-x62e.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PLING_QUERY=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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). Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (jporterbugs[at]gmail.com) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.1 PLING_QUERY Subject has exclamation mark and question mark X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 0.1 (/) 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).
Jim Porter <jporterbugs@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#65766
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.