GNU bug report logs - #34330
27.0.50; shell auto-complete cannot handle special characters

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Tadeus Prastowo <tadeus.prastowo@HIDDEN>; Keywords: patch confirmed; dated Tue, 5 Feb 2019 12:50:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 34330 <at> debbugs.gnu.org:


Received: (at 34330) by debbugs.gnu.org; 15 Aug 2019 16:11:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 15 12:11:07 2019
Received: from localhost ([127.0.0.1]:52338 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hyILD-0002Qx-7r
	for submit <at> debbugs.gnu.org; Thu, 15 Aug 2019 12:11:07 -0400
Received: from mail-ot1-f46.google.com ([209.85.210.46]:36580)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alex.branham@HIDDEN>) id 1hyIL8-0002Pz-TW
 for 34330 <at> debbugs.gnu.org; Thu, 15 Aug 2019 12:11:03 -0400
Received: by mail-ot1-f46.google.com with SMTP id k18so6982732otr.3
 for <34330 <at> debbugs.gnu.org>; Thu, 15 Aug 2019 09:11:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=3fkgMb1Pb1R/epUmbjcpQ1NZSzw7biv9+dcDnhEcA1Q=;
 b=gFieMx1U5xwYUp/BThqNrzGXSer51Px0l5znuCiAvIvdbOiEksVb0/cNe1ehkbmVdB
 E0YdF4+v2t77vrQKMTmY9KX13uvMwlFJyhNWSsUhEXYGTKky8c9fMfqeeSGuDPCPywKg
 c0JMb4DLt3uu1Dlgxxkv+FbnwWBgY0ffvBbTzOcAcfcAAPzsVWqVPSwze+8XLSi5fEvO
 lL3CshzYooGd/FZPbeNp1wuLQUn7qIA5wCx6P+6gG9YpK3NapxywvuLfEyI09OogH0L+
 3S05AlC/1ODnfqoYTMCgajZgI/028kq7Acu9FysGPGlf2KibWM9XPSdDwDbswcH2NnM2
 XSDw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=3fkgMb1Pb1R/epUmbjcpQ1NZSzw7biv9+dcDnhEcA1Q=;
 b=aArnNeRGrgC0XKpe6cZmCQlThKJeBwPzvwGFC8WpYl6xJJzFJEfvPfS9F0mUp6jeRG
 vmcc8CQOh89T0KfzsebJFNFhjASMwF6v+IDHXIz7y4uP8zc7kDYUDaAA50qcLnk0l9ig
 z5PsYxLNa0bL+5HnRhChaBclOv5yFLHfrsu8/qZ1U0308Tm/9X1ozSSGAG9eBr/YYz3C
 gz89zFJH733+QMRObTPBwwCOceItlBAhkA7ElI62lwW+ZZvMr+73/ho1Yr3D7RyljHjk
 8xVg036UmeRL6zXeXLj/HsStsz4IW1WsqL57y7C2H8YkZX6g7owmg3Hn1o5VCdCw4Zxh
 lkYQ==
X-Gm-Message-State: APjAAAWjWJ2H1ciG/+TsfLEUsvuWMkKRksxcD0CtWvyy25/eG9jcEIJC
 lHnfpaYQKudwCNrVQuVF7+pDmHez9SM=
X-Google-Smtp-Source: APXvYqwNpkEXOAwF7vpmcsq20dunhwU/M8vFmwwXfj62rLhC2Xwy4rvxjaBxG9wypN0dK9TW0l0pVQ==
X-Received: by 2002:a9d:d27:: with SMTP id 36mr4221677oti.327.1565885456910;
 Thu, 15 Aug 2019 09:10:56 -0700 (PDT)
Received: from earth (cpe-70-114-192-208.austin.res.rr.com. [70.114.192.208])
 by smtp.gmail.com with ESMTPSA id
 w5sm541657oic.36.2019.08.15.09.10.54
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 15 Aug 2019 09:10:54 -0700 (PDT)
From: Alex Branham <alex.branham@HIDDEN>
To: Tadeus Prastowo <tadeus.prastowo@HIDDEN>
Subject: Re: bug#34330: 27.0.50; shell auto-complete cannot handle special
 characters
References: <CAN-HRFbwUZ8e76KER2qki+wGM+Wh80ZyJbnJeKqXjjR4fM97oA@HIDDEN>
 <87zhkav2e4.fsf@HIDDEN>
Date: Thu, 15 Aug 2019 11:10:54 -0500
In-Reply-To: <87zhkav2e4.fsf@HIDDEN> (Alex Branham's message of "Thu, 15
 Aug 2019 11:06:59 -0500")
Message-ID: <87sgq2v27l.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34330
Cc: 34330 <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: -1.0 (-)

--=-=-=
Content-Type: text/plain

On Thu 15 Aug 2019 at 11:06, Alex Branham <alex.branham@HIDDEN> wrote:

> Patch attached.

... and here's the actual patch

From 1af4915f3dc774b4fb53e2b52b1318f4b52b7ba3 Mon Sep 17 00:00:00 2001
From: Alex Branham <alex.branham@HIDDEN>
Date: Thu, 15 Aug 2019 11:02:38 -0500
Subject: [PATCH] Fix filename completion in shell mode buffers

* lisp/shell.el (shell-dynamic-complete-functions): Move
pcomplete-completions-at-point down the list so that filename
completion has a chance to complete before pcompletion.

Fixes bug#34330
---
 lisp/shell.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lisp/shell.el b/lisp/shell.el
index 2914d1d2c8..889602d26e 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -184,14 +184,15 @@ shell buffer.  The value may depend on the operating system or shell."
     shell-environment-variable-completion
     shell-command-completion
     shell-c-a-p-replace-by-expanded-directory
-    pcomplete-completions-at-point
     shell-filename-completion
-    comint-filename-completion)
+    comint-filename-completion
+    pcomplete-completions-at-point)
   "List of functions called to perform completion.
 This variable is used to initialize `comint-dynamic-complete-functions' in the
 shell buffer."
   :type '(repeat function)
-  :group 'shell)
+  :group 'shell
+  :version "27.1")
 
 (defcustom shell-command-regexp "[^;&|\n]+"
   "Regexp to match a single command within a pipeline.
-- 
2.22.0


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
 filename=0001-Fix-filename-completion-in-shell-mode-buffers.patch

From 1af4915f3dc774b4fb53e2b52b1318f4b52b7ba3 Mon Sep 17 00:00:00 2001
From: Alex Branham <alex.branham@HIDDEN>
Date: Thu, 15 Aug 2019 11:02:38 -0500
Subject: [PATCH] Fix filename completion in shell mode buffers

* lisp/shell.el (shell-dynamic-complete-functions): Move
pcomplete-completions-at-point down the list so that filename
completion has a chance to complete before pcompletion.

Fixes bug#34330
---
 lisp/shell.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lisp/shell.el b/lisp/shell.el
index 2914d1d2c8..889602d26e 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -184,14 +184,15 @@ shell buffer.  The value may depend on the operating system or shell."
     shell-environment-variable-completion
     shell-command-completion
     shell-c-a-p-replace-by-expanded-directory
-    pcomplete-completions-at-point
     shell-filename-completion
-    comint-filename-completion)
+    comint-filename-completion
+    pcomplete-completions-at-point)
   "List of functions called to perform completion.
 This variable is used to initialize `comint-dynamic-complete-functions' in the
 shell buffer."
   :type '(repeat function)
-  :group 'shell)
+  :group 'shell
+  :version "27.1")
 
 (defcustom shell-command-regexp "[^;&|\n]+"
   "Regexp to match a single command within a pipeline.
-- 
2.22.0


--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34330; Package emacs. Full text available.
Added tag(s) patch. Request was from Alex Branham <alex.branham@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 34330 <at> debbugs.gnu.org:


Received: (at 34330) by debbugs.gnu.org; 15 Aug 2019 16:07:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 15 12:07:11 2019
Received: from localhost ([127.0.0.1]:52312 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hyIHP-0002H3-BA
	for submit <at> debbugs.gnu.org; Thu, 15 Aug 2019 12:07:11 -0400
Received: from mail-oi1-f170.google.com ([209.85.167.170]:45911)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alex.branham@HIDDEN>)
 id 1hyIHM-0002Gc-2U; Thu, 15 Aug 2019 12:07:09 -0400
Received: by mail-oi1-f170.google.com with SMTP id m206so2575914oib.12;
 Thu, 15 Aug 2019 09:07:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=XKJu9cF2dkSPlLF+spweKxb1wdK/Cf9PYckObb4w4Wk=;
 b=kQNIOiCseVbOCeEuaT96Dnv4x56Xxrupbo1131CfUWhLMe3BFDVG3/qyo24XtmCkUw
 j65jR5o0l840Ddsss4tvTUUfLuuj8gIsEWdgyMtwyiTkWO1HUUOZR1qxPOezgg0K2zuM
 +sfQ8LC4TCpbaM0gT+JtKGI63EjbV12MUnRBwLpbRzxHAQkQYDJZnQMSCCDaOoMspJn3
 PsKPThWNgzjFbjjG8jY2C27vePNC15gH+/d6t4NCN+B9kZH9y4uPLlIRAFyMC+0+ExFO
 eOx/EaPYlC8agCnY0pE4hqe6adkoZUfyh3hWD2GH8BVOFzf63CPVErKrnxPVeqfpHsnj
 +4yQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=XKJu9cF2dkSPlLF+spweKxb1wdK/Cf9PYckObb4w4Wk=;
 b=UoehN/VcVxPC/+w0mtlSOzvWXw+XFmU5R29fITjH2fUrSC27ZJUSzHO4uMNu4uT90O
 KUpOAdfoETzO/vVmlgB+MC8OW/6RBmXzr7Q793FqAugYiFutSdhPqBMBCl3Sqbw8zMdP
 Yl0SIqY4IzoEZIEF+LEsAHbD+SFtyzCyT32uVeahMROU5fcIKWAKcEAf2G1jDJLkJz/U
 yjhkCMbho5YG5gOPyFDZaIQZpgzdhHw5t2f+HDVViAkc1so4TfM0xka0tIQW257rPfl6
 zQFdUb6rW8I0DXdywq9065+4VhpkKQPOmkIYkQrD0xV5Y1ZmLOMJ8XYI1QS6W1EnH0K8
 50Tg==
X-Gm-Message-State: APjAAAXFJW14FQGuT+pgctw3snE22mlZZzUjY6Z5Jw5glpqTO6pT7cIl
 iQ53q1vZfdj11OmG2vGi7yMsUXq9Ohk=
X-Google-Smtp-Source: APXvYqz6T3ZvE3LxeM3RugzZ1zzk4FXLO/76ksijwO0WQ2tGd7FFnCZtfstN4l9N/usu66srY0c9HA==
X-Received: by 2002:aca:4950:: with SMTP id w77mr2123355oia.28.1565885221908; 
 Thu, 15 Aug 2019 09:07:01 -0700 (PDT)
Received: from earth (cpe-70-114-192-208.austin.res.rr.com. [70.114.192.208])
 by smtp.gmail.com with ESMTPSA id
 u5sm570677oic.45.2019.08.15.09.07.00
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 15 Aug 2019 09:07:00 -0700 (PDT)
From: Alex Branham <alex.branham@HIDDEN>
To: Tadeus Prastowo <tadeus.prastowo@HIDDEN>
Subject: Re: bug#34330: 27.0.50; shell auto-complete cannot handle special
 characters
References: <CAN-HRFbwUZ8e76KER2qki+wGM+Wh80ZyJbnJeKqXjjR4fM97oA@HIDDEN>
Date: Thu, 15 Aug 2019 11:06:59 -0500
In-Reply-To: <CAN-HRFbwUZ8e76KER2qki+wGM+Wh80ZyJbnJeKqXjjR4fM97oA@HIDDEN>
 (Tadeus Prastowo's message of "Tue, 5 Feb 2019 13:48:21 +0100")
Message-ID: <87zhkav2e4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34330
Cc: 34330 <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: -1.0 (-)

tags 34330 + patch
quit

On Tue 05 Feb 2019 at 13:48, Tadeus Prastowo <tadeus.prastowo@HIDDEN> wrote:

> M-x shell<enter>
> mkdir -p /tmp/A\ \&\ B/ABC<enter>
> cd /tmp/A<tab>
> cd /tmp/A\ \&\ B/ # auto-complete successful
> cd /tmp/A\ \&\ B/A<tab> # cannot auto-complete to ABC

This happens because `pcomplete-completions-at-point' comes before the
shell and comint filename completion in
`shell-dynamic-complete-functions'. I propose moving it to the end. This
has already been the source of a previous bug report (bug#10417). Patch attached.

Thanks,
Alex




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34330; Package emacs. Full text available.
bug Marked as found in versions 26.1. Request was from Bhavin Gandhi <bhavin7392@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) confirmed. Request was from Bhavin Gandhi <bhavin7392@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 5 Feb 2019 12:49:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 05 07:49:02 2019
Received: from localhost ([127.0.0.1]:60288 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gr09u-0002dC-5L
	for submit <at> debbugs.gnu.org; Tue, 05 Feb 2019 07:49:02 -0500
Received: from eggs.gnu.org ([209.51.188.92]:53239)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tadeus.prastowo@HIDDEN>) id 1gr09r-0002ch-2V
 for submit <at> debbugs.gnu.org; Tue, 05 Feb 2019 07:49:00 -0500
Received: from lists.gnu.org ([209.51.188.17]:52719)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <tadeus.prastowo@HIDDEN>)
 id 1gr09l-0003o5-Pb
 for submit <at> debbugs.gnu.org; Tue, 05 Feb 2019 07:48:53 -0500
Received: from eggs.gnu.org ([209.51.188.92]:39377)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <tadeus.prastowo@HIDDEN>) id 1gr09k-0008MI-IC
 for bug-gnu-emacs@HIDDEN; Tue, 05 Feb 2019 07:48:53 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <tadeus.prastowo@HIDDEN>) id 1gr09j-0003ma-FA
 for bug-gnu-emacs@HIDDEN; Tue, 05 Feb 2019 07:48:52 -0500
Received: from mail-qt1-x82e.google.com ([2607:f8b0:4864:20::82e]:32906)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <tadeus.prastowo@HIDDEN>)
 id 1gr09i-0003ig-Ry
 for bug-gnu-emacs@HIDDEN; Tue, 05 Feb 2019 07:48:51 -0500
Received: by mail-qt1-x82e.google.com with SMTP id l11so3637109qtp.0
 for <bug-gnu-emacs@HIDDEN>; Tue, 05 Feb 2019 04:48:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unitn.it; s=google;
 h=mime-version:from:date:message-id:subject:to;
 bh=gTbGkD7caKZmFba/ZZjzZXn95QpEJ5xeHQpZsmbYAg8=;
 b=bY0kfP4a7tipRknLNjY3YdSaueU4awK2a6gFZNHVVdsuph7Z8lSvVNfG+4PyZzgBYx
 fFwmB1k/EHy0v7a0fNSWQNn7TS9INJJ0kJZTVvJoRuQra526M0HEYvl162XgEpg3TefJ
 ZGBMcopk/C0IK4Z/0UkdMOX1Cwur4nKBbFX/c=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=gTbGkD7caKZmFba/ZZjzZXn95QpEJ5xeHQpZsmbYAg8=;
 b=EGyGq+aY2AMPB6TTZSRLiEG5VDkOBRpFUAux5rqmnsxLgvuRz6WTiHp3zlQIwXIH2N
 4sFiM69XNrVcq6UYYWNx/rmeOx6ZwtapvlSiunDg0rlYBlWju/535TfH4yOd022IpGzS
 39idVfcwk75WwTMFild3Uhpi9rBy6mta8P6EmlCOpzyMI4fThsD1qxVb2VCB7sqr72L5
 b1YJJ9pXCwJaqLC1dmPxrvAquIPZQWGTT7LE7NX9QGHnC3avKEuztByymGBv3jkcHTO/
 bh0XmLG/dcQC/UA6jr4HmNd0YegqfX2zYAlLtHZswGXzQJMWZQ5g0lEuCmft7zQB1Dnk
 PtFQ==
X-Gm-Message-State: AHQUAuZ27ybWE6u7X8vseYYEbOpWaHNrZtc76wKeehfsvL6jQ7gHBbat
 3u++GsAaGqKEUTryXq09UWrCRgVZ4MdMbbZTeTUfNkrw3A==
X-Google-Smtp-Source: AHgI3IZ/Vp+phzuix+3o70DT1lTLt70JmH7WdZndNDJSSnfv2ZVznByeTemb4n87grGGcwwLQFVXgbjRundciCTacWU=
X-Received: by 2002:ac8:39e5:: with SMTP id v92mr3409930qte.142.1549370913112; 
 Tue, 05 Feb 2019 04:48:33 -0800 (PST)
MIME-Version: 1.0
From: Tadeus Prastowo <tadeus.prastowo@HIDDEN>
Date: Tue, 5 Feb 2019 13:48:21 +0100
Message-ID: <CAN-HRFbwUZ8e76KER2qki+wGM+Wh80ZyJbnJeKqXjjR4fM97oA@HIDDEN>
Subject: 27.0.50; shell auto-complete cannot handle special characters
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset="UTF-8"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2607:f8b0:4864:20::82e
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: 1.0 (+)
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.0 (/)

M-x shell<enter>
mkdir -p /tmp/A\ \&\ B/ABC<enter>
cd /tmp/A<tab>
cd /tmp/A\ \&\ B/ # auto-complete successful
cd /tmp/A\ \&\ B/A<tab> # cannot auto-complete to ABC

The following fixes the problem:
<enter>
exit<enter>
C-x k<enter>
C-x b
*scratch*
(setq
 shell-command-regexp
  "\\(?:\\(?:[\\][\\]\\)+\\\\[;&|
]\\|[^\\]\\\\[;&|
]\\|[^;&|
]\\)+"
  shell-command-separator-regexp
  "\\(?:\\(?:[\\][\\]\\)+[;&|
]\\|[^\\][;&|
]\\)*")

(with-eval-after-load "shell"
 (defun shell-forward-command (&optional arg)
   "Move forward across ARG shell command(s).  Does not cross lines.
See `shell-command-regexp'."
   (interactive "p")
   (let ((limit (line-end-position)))
     (if (re-search-forward (concat shell-command-regexp
"\\(\\(?:\\(?:[\\][\\]\\)+[;&|]\\|[^\\][;&|]\\)[\t ]*\\)+")
                 limit 'move arg)
      (skip-syntax-backward " "))))

 (defun shell-backward-command (&optional arg)
   "Move backward across ARG shell command(s).  Does not cross lines.
See `shell-command-regexp'."
   (interactive "p")
   (let ((limit (save-excursion (comint-bol nil) (point))))
     (when (> limit (point))
    (setq limit (line-beginning-position)))
     (skip-syntax-backward " " limit)
     (if (re-search-backward
       (format "\\(?:\\(?:[\\][\\]\\)+[;&|]\\|[^\\][;&|]\\)+[\t ]*\\(%s\\)"
           shell-command-regexp)
       limit 'move arg)
      (progn (goto-char (match-beginning 1))
         (skip-chars-forward ";&|"))))))
M-x eval-buffer<enter>
M-x shell<enter>
cd /tmp/A<tab>
cd /tmp/A\ \&\ B/ # auto-complete successful
cd /tmp/A\ \&\ B/A<tab>
cd /tmp/A\ \&\ B/ABC # auto-complete successful

In GNU Emacs 27.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2019-02-04 built on lgw01-amd64-031
Windowing system distributor 'The X.Org Foundation', version 11.0.11906000
System Description: Ubuntu 16.04.5 LTS

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Configured using:
 'configure --build=x86_64-linux-gnu --prefix=/usr
 '--includedir=${prefix}/include' '--mandir=${prefix}/share/man'
 '--infodir=${prefix}/share/info' --sysconfdir=/etc --localstatedir=/var
 --disable-silent-rules '--libdir=${prefix}/lib/x86_64-linux-gnu'
 '--libexecdir=${prefix}/lib/x86_64-linux-gnu' --disable-maintainer-mode
 --disable-dependency-tracking --prefix=/usr --sharedstatedir=/var/lib
 --program-suffix=-snapshot --with-modules=yes --with-x=yes
 --with-x-toolkit=gtk3 --with-xwidgets=yes 'CFLAGS=-g -O2
 -fstack-protector-strong -Wformat -Werror=format-security'
 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2'
 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro''

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB
NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF
XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS
LIBSYSTEMD PDUMPER LCMS2 GMP

Important settings:
  value of $LC_MONETARY: en_US.UTF-8
  value of $LC_NUMERIC: en_US.UTF-8
  value of $LC_TIME: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml
easymenu mml-sec password-cache epa derived epg epg-config gnus-util
rmail rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair
mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode elisp-mode lisp-mode prog-mode register page menu-bar
rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote threads dbusbind
inotify lcms2 dynamic-setting system-font-setting font-render-setting
xwidget-internal move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 44122 7108)
 (symbols 48 5855 1)
 (strings 32 14936 1959)
 (string-bytes 1 491087)
 (vectors 16 8761)
 (vector-slots 8 112008 10734)
 (floats 8 17 20)
 (intervals 56 226 0)
 (buffers 992 11)
 (heap 1024 13015 994))




Acknowledgement sent to Tadeus Prastowo <tadeus.prastowo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#34330; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 15 Aug 2019 16:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.