From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 21 09:17:55 2023 Received: (at submit) by debbugs.gnu.org; 21 Sep 2023 13:17:56 +0000 Received: from localhost ([127.0.0.1]:33011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJZ5-0004ZO-IB for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:17:55 -0400 Received: from lists.gnu.org ([2001:470:142::17]:43804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJZ1-0004ZA-O4 for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:17:54 -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 ) id 1qjJYi-0003Os-Da for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 09:17:33 -0400 Received: from server.qxqx.de ([2a01:4f8:121:346::180] helo=mail.qxqx.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJYc-0000vt-Hp for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 09:17:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=qxqx.de; s=mail1392553390; h=Content-Transfer-Encoding:Content-Type:Subject:From:Cc:To :MIME-Version:Date:Message-ID:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=IBDI57gBHsUiSj3IKr7R67eNpDhVZN2ncPbtxCMNE3w=; b=mZ2srHaE2Qi8C85EdMNKFyzRWg tVBznE3POWQ3mktcw5w1eoCtwgIjY8flRWrl7hJRJZFfBX3Zx8r6jJwQNcy8iXNAkNusHNCTf1zbV YZ9Hevs8tft6k4tmb2wVh9Jk2Yoa0YlFBUdIYBF4V1qSXOWVIwGWj7RUe10g/ROR2QXM=; Message-ID: <6f3e9c4f-12a8-a053-502d-fe539cecabc9@daniel-mendler.de> Date: Thu, 21 Sep 2023 13:08:15 +0200 MIME-Version: 1.0 Content-Language: en-US To: bug-gnu-emacs@gnu.org From: Daniel Mendler Subject: 29.1.50; pcomplete/git duplicates branch name prefix Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a01:4f8:121:346::180; envelope-from=mail@daniel-mendler.de; helo=mail.qxqx.de X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit Cc: Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) Recipe: 1. Open "M-x shell" inside the "emacs" git repository. 2. Enter "git log origin/ TAB". 3. *Completions* window is shown, with candidates like "origin/emacs-29". 4. Switch to *Completions* window with "C-x o". 5. Select a candidate with RET on "origin/emacs-29". The shell prompt is "git log origin/origin/emacs-29". The problem seems to be either that the candidates are unnecessarily prefixed with "origin/" or that the completion boundaries are not set for the completion table. This would ensure that "origin/" is replaced properly with "origin/emacs-29" after selection. For comparison when I use C-x C-f in the ~/emacs/ directory and press TAB, the candidates displayed in the *Completions* buffer (e.g. "lisp/") don't include the "~/emacs/" prefix, such that selecting one of the sub directories results in the correct path "~/emacs/lisp/". In GNU Emacs 29.1.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) of 2023-09-19 built on pyramis Windowing system distributor 'The X.Org Foundation', version 11.0.12101007 System Description: Debian GNU/Linux 12 (bookworm)