From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74944: 31.0.50; Double TAB does not pop up *Completions* buffer when completing filename with dashes Date: Tue, 07 Jan 2025 16:01:32 +0100 Message-ID: <87ikqqwtv7.fsf@ledu-giraud.fr> References: <87msgtyx32.fsf@gmail.com> <87cyhlusjb.fsf@ledu-giraud.fr> <87pllk0wn7.fsf@ledu-giraud.fr> <87wmfmd1x4.fsf@gmail.com> Reply-To: Manuel Giraud Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40939"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74944@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 07 16:02:38 2025 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 1tVB6L-000APg-Cq for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Jan 2025 16:02:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVB5s-0006yH-SU; Tue, 07 Jan 2025 10:02:08 -0500 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 1tVB5m-0006xW-Lk for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2025 10:02:04 -0500 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 1tVB5m-0000bB-D7 for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2025 10:02:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=GP+4W2rDFBO5zqHFUShJSnujdwe/XUhS5hNapeZ8Q8Y=; b=rFNIKByshoDKROCCVM69miDgCtGkL7ZXO46GhRrVw1xnnthjhaHN0H0dnPszi/trGRLK7fo5a6VM6ed7TId1CDQCpU0LFaA4+I12hrAzrJogy6mUJlH/dmt9UzAUeZ5QHIOl2So7XkznSKclzDPdffJx5c+UOV8clo0Q4q+ghRO9uX4OZOde/j6i3kQ5wlYOr+r2vdndHl9JYs6pJEZfTr4B+wY/fU9w/Fcbm5L3PQHPSKYCOUvYEV8TwqjINFKULBHl6mAIlffgEHAFwnm6bYx4HvfwG174nY2v3MArJMBvA16YGrC4NZdV2N/7D5+ZxKJTM46/U32N86bEvmuZ2A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tVB5m-0004EG-5Z for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2025 10:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Manuel Giraud Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Jan 2025 15:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74944 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: "Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors" , 74944@debbugs.gnu.org Original-Received: via spool by 74944-submit@debbugs.gnu.org id=B74944.173626210116206 (code B ref 74944); Tue, 07 Jan 2025 15:02:02 +0000 Original-Received: (at 74944) by debbugs.gnu.org; 7 Jan 2025 15:01:41 +0000 Original-Received: from localhost ([127.0.0.1]:44220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tVB5R-0004DH-7z for submit@debbugs.gnu.org; Tue, 07 Jan 2025 10:01:41 -0500 Original-Received: from ledu-giraud.fr ([51.159.28.247]:37201) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tVB5N-0004D6-SZ for 74944@debbugs.gnu.org; Tue, 07 Jan 2025 10:01:39 -0500 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=5eEAdiRU PQYieXGJRoVk/SwXYRTkOciHP0eGqOhA9cw=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=RO/4dwm7qUCOVB3vOkpvZ56HOQ+tBD vpz640Bb3nvNIzzs8MnFUBbsawfQZQVazb/KjObaVMX8iU4cyYvZKCDA== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=5eEAdiRUPQYieXGJ RoVk/SwXYRTkOciHP0eGqOhA9cw=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=ngY3JzaByHk0OLBdJ+cL77tWnfgBr0w11jfJdv dyonsv/M1KymOY5mCKSVbX/x4QMXBIkNq/5fzYHAo+SxwWmvHF3LbVO3VAiasINHwhpY8q yzSuwPeky6iWGDjjWc1wgL+F9A65RmKxApHbAjjjrLRja7VkZhWuk9NnipV1QWWppQ311C s29feMgmWRgMt3Ay2aNev3lunmOAPKP4YIE+YuEiwDtk8ojr4q5bwHml0bglX7oix4pDWz 6Bcso1WS7euKD+NJ5MmKzBlrO8DB+irDbndL8N2sMGkHm24p4jVIS6MyVk8wloQ49pxk87 KNRgl+jDRWADwX64LlWfaS1w== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id b4448bea (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 7 Jan 2025 16:01:33 +0100 (CET) In-Reply-To: <87wmfmd1x4.fsf@gmail.com> (Visuwesh's message of "Thu, 26 Dec 2024 18:41:35 +0530") 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:298726 Archived-At: Visuwesh writes: [...] > The second call which moves the before the first '-' makes sense to me > since to complete further one, one has to insert text before that > character. This happens elsewhere too so I am not exactly surprised. > However, I think this is where the capf gets stuck since Emacs thinks it > has to complete an option / a flag and the completion engine stops. Hi Visuwesh, I was down the rabbit hole on this one and now, I need some fresh air and, hopefully, advices from experts here. The culprit seems to be that `shell-filename-completion' does not know how to complete the filename when the point is on '-' with the following input in the *shell* buffer: $ rm -pos1.xyz And it is due to the fact that `comint-word' is only looking for a word *backward*. I don't understand why is that so I tried to make `comint-word' also looking for a word forward. But then the following assertion in `completion-in-region' is violated: (cl-assert (<= start (point)) (<= (point) end)) Does anyone could help me here? -- Manuel Giraud