From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#52169: 28.0.60; "Args out of range" when completing shell command Date: Sat, 04 Dec 2021 00:09:09 -0500 Message-ID: References: <87wnksx8oc.fsf@gmail.com> <87wnkrvv8y.fsf@gnus.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29361"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 52169@debbugs.gnu.org, =?UTF-8?Q?K=C3=A9vin?= Le Gouguec To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 04 06:10:13 2021 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 1mtNJN-0007QT-6m for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 06:10:13 +0100 Original-Received: from localhost ([::1]:54082 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtNJL-0007Zy-1k for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 00:10:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtNJC-0007Zh-Lo for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 00:10:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41221) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtNJC-0007f7-Dx for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 00:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mtNJC-0003a3-0m for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 00:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Dec 2021 05:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52169 X-GNU-PR-Package: emacs Original-Received: via spool by 52169-submit@debbugs.gnu.org id=B52169.163859456313713 (code B ref 52169); Sat, 04 Dec 2021 05:10:01 +0000 Original-Received: (at 52169) by debbugs.gnu.org; 4 Dec 2021 05:09:23 +0000 Original-Received: from localhost ([127.0.0.1]:52767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtNIZ-0003Z6-Fr for submit@debbugs.gnu.org; Sat, 04 Dec 2021 00:09:23 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:51802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtNIU-0003Yq-CJ for 52169@debbugs.gnu.org; Sat, 04 Dec 2021 00:09:21 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 68E80440147; Sat, 4 Dec 2021 00:09:12 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 18099440037; Sat, 4 Dec 2021 00:09:11 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1638594551; bh=NoBh1avZvxshvZlWa4jNEPfcMwQtyS3ShCzv9L4QLPo=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=bC1j/5OW3iQVRpUePjwHIfVwF6N8sEWjqm/8NDVpQmgMK7WNYkWS9e3cyj+YbUVEp 8SazadvsKXCUUlz0CWqSEQjDQSA2AAuSG1KiOViw10QrdY0MOB7YiqbJQomPiEqEUP HTDLvJQMFNJ5ZAl6pJtP1OlJkoij1vNc5TEw8QaYPlklLp6JFbfR9LH7VmsxcS8wrn TYk9JWaBb1E4UYwKOPgKa6LETOZudywFtNWEuc98T9YSeD6IzBg0xczjj+XdJO87/P RCzS1cDMMyXwCpXJV6v+IEpG4UTZcDt2NOJsa58k+6UWPVuLgELbg4jAxPd+Ph4OrV +DvmkwBepNiBg== Original-Received: from pastel (unknown [216.154.30.173]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id C056612091C; Sat, 4 Dec 2021 00:09:10 -0500 (EST) In-Reply-To: <87wnkrvv8y.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 29 Nov 2021 16:26:05 +0100") 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" Xref: news.gmane.io gmane.emacs.bugs:221438 Archived-At: >> $ emacs -Q >> M-! ./nosuchcommand C-b TAB >> >> - In Emacs 27.1, this simply says "[No match]". >> - In Emacs 28.0.60, this errors out: >> >> > completion--some: Args out of range: "./nosuchcomma", 0, 14 Yuck! This is one of those cases where the mismatch between the assumptions of pcomplete and the featureset of minibuffer.el clash: `pcomplete-stub` tells us we're completing "./nosuchcommand" but without telling us where that string comes from in the buffer, so we fail to find "./nosuchcommand" just before point (because the "d" is *after* point) and thus fall back on the worst-case handler which doesn't behave well at all here. I pushed to `master` a fix for the immediate cause of the `Args out of range` error, which seems to brings us back to Emacs-27's poor behavior. Maybe it's good enough for `emacs-28` as well, but I have to think about this problem a bit more. Stefan