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: confirmed; dated Tue, 5 Feb 2019 12:50:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Removed tag(s) fixed. Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Removed tag(s) patch. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs@HIDDEN> to internal_control <at> debbugs.gnu.org. Full text available.
bug unarchived. Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug archived. Request was from Debbugs Internal Request <help-debbugs@HIDDEN> to internal_control <at> debbugs.gnu.org. Full text available.
bug closed, send any further explanations to 34330 <at> debbugs.gnu.org and Tadeus Prastowo <tadeus.prastowo@HIDDEN> Request was from Alex Branham <alex.branham@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) fixed. 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; 27 Aug 2019 14:52:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 27 10:52:40 2019
Received: from localhost ([127.0.0.1]:49277 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i2cpr-00079B-Uo
	for submit <at> debbugs.gnu.org; Tue, 27 Aug 2019 10:52:40 -0400
Received: from mail-ot1-f47.google.com ([209.85.210.47]:37693)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alex.branham@HIDDEN>)
 id 1i2cpp-00078q-Rj; Tue, 27 Aug 2019 10:52:38 -0400
Received: by mail-ot1-f47.google.com with SMTP id f17so18959136otq.4;
 Tue, 27 Aug 2019 07:52:37 -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=SNUJi5GQravxivSwl3p2LtSD177AwdpO5k4i0rF0/cc=;
 b=H0kBCDAiU5hb5CAsQZ1KqyCQ1Vbmlo3ZgE8U+i095fO7Pvw1I6JnmYsklg3NdD8Fig
 h8dLJdFMDoWC8ml2Z5HO1y3aIMyNLSDT3R/kfucRrupLepFAFR9fEYMStJhvPWAa42SI
 VbHdBHZWHMLDz/2ym/kctdIMoWC9BpEqayViWp3R5E0MkqZeDS+/Yw2QwDWt+iqnLSGb
 UIOG2jNGHkAZ3/MmKe07MkE656YhI8yo0pQ6tCKYZ8prL3sMfHr2aXmYo5oFnuu2UwiZ
 zGrW4sHRN28Ujs5Zd4aRDCP3faNBXt/8BLy48cIgYkHytyKeia26tuPVUjKSRBTzRRsw
 Fp4w==
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=SNUJi5GQravxivSwl3p2LtSD177AwdpO5k4i0rF0/cc=;
 b=qV11fbtH7ZJCp2Sg6aupijMaV4MiAu0jRfLHE8q2EGUXQY6pzW8ttM3RYh5dyacqCK
 Vvs7roqp/nECDC0qzbL7iCSPExOIX0dzEH2sObNVqAbBWu03kbWxpQOjPyRJHDmjbNNQ
 dr0JzRzdg/0M5jvEcCS0smpRa6xsRnXybwuND2Ai2moie7D22wudrpa4gc59e7AstYEt
 09bZ0A60R9EjHzNh9WvEp/ocLx8wLunUAytlXnDKXxSVowCGvg9pkAZvcGvv8IHlicxI
 sUH1+PiC0cb/1EBH7k9iCK0LbI3pHGCZhq8vZQQvliyW2FxscTwgDLsDmH6CeIGZwZkb
 Rfmg==
X-Gm-Message-State: APjAAAXrlozrH6ZcB5E7EuHxGE4Jqdz1b+lrFWfyrcxUat0rrXq76xF8
 0TWuWqxKMaUku4QTEyLTzLBZGLX0
X-Google-Smtp-Source: APXvYqxjasA7LOFUGE3AMmjF0ZyyTpfytdfaUWepGS2ZGZFx5DMAoe8tSTJmAmB/RerzCwdXB9Sa5Q==
X-Received: by 2002:a9d:65d4:: with SMTP id z20mr18569522oth.314.1566917551969; 
 Tue, 27 Aug 2019 07:52:31 -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
 a16sm4231362oid.26.2019.08.27.07.52.28
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 27 Aug 2019 07:52:28 -0700 (PDT)
From: Alex Branham <alex.branham@HIDDEN>
To: Noam Postavsky <npostavs@HIDDEN>
Subject: Re: bug#34330: 27.0.50; shell auto-complete cannot handle special
 characters
References: <CAN-HRFbwUZ8e76KER2qki+wGM+Wh80ZyJbnJeKqXjjR4fM97oA@HIDDEN>
 <87zhkav2e4.fsf@HIDDEN> <87sgq2v27l.fsf@HIDDEN>
 <87pnkv6f9z.fsf@HIDDEN> <85blwfkebg.fsf@HIDDEN>
Date: Tue, 27 Aug 2019 09:52:27 -0500
In-Reply-To: <85blwfkebg.fsf@HIDDEN> (Noam Postavsky's message of "Fri, 23
 Aug 2019 12:59:47 -0400")
Message-ID: <87tva2slsk.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: Tadeus Prastowo <tadeus.prastowo@HIDDEN>, 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 fixed
close 34330 
quit

On Fri 23 Aug 2019 at 12:59, Noam Postavsky <npostavs@HIDDEN> wrote:

> Alex Branham <alex.branham@HIDDEN> writes:
>
>> Is this OK to apply to master to fix the issue with completion of
>> filenames?
>
> Well, nobody raised any objections, so it's probably fine.  I think it
> would be helpful to also add a comment in the code about this, since
> it's not very obvious that the order is so sensitive.

Thanks, pushed to master.

e4d17d8cb4 2019-08-27T09:51:14-05:00 "Fix filename completion in shell mode buffers"
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=e4d17d8cb479ffeeb7dfb7320a1432722ac8df75





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34330; Package emacs. Full text available.

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


Received: (at 34330) by debbugs.gnu.org; 23 Aug 2019 16:59:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 23 12:59:59 2019
Received: from localhost ([127.0.0.1]:41074 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i1Cus-0000LB-GM
	for submit <at> debbugs.gnu.org; Fri, 23 Aug 2019 12:59:58 -0400
Received: from mail-io1-f53.google.com ([209.85.166.53]:33447)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>) id 1i1Cuo-0000Ku-7h
 for 34330 <at> debbugs.gnu.org; Fri, 23 Aug 2019 12:59:55 -0400
Received: by mail-io1-f53.google.com with SMTP id z3so21692753iog.0
 for <34330 <at> debbugs.gnu.org>; Fri, 23 Aug 2019 09:59:54 -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=Jr85Ytsjtsyp4nKORQFUCdyV3Ta23jyikUJgp1ZyBAA=;
 b=nM4JDDbbTwmIK9DhfM1amLO+3re3bOWoUEhs6ZDysiDIIQHimaqXw0ie27JH19wHAN
 LJBdfYBYvPBeNBpJgpGadN21y3tF6V7dsp+yUB/MibY9UE64wPpCn6ssVe+ltQ6oyCBM
 kB0Or9mkIPw2ONSY5Yse7aQdD/2TS7sV+P3q/IZAhltQoBbLmU6Xkr8F+Bu1oIVsy79y
 6TwCOHhcCjjP+3mPv9yTeyH5bW/3xvpfs99HdoAkJ5/6+8K9uBWuoYMixxTI4Xd4a7Zp
 Mi8981IlSSf8H3EwyjsJguVd8w6dx1nO8/PzXEJ7GLl/kQpKrUjDRADXghcSiYVg3Jc5
 hmlg==
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=Jr85Ytsjtsyp4nKORQFUCdyV3Ta23jyikUJgp1ZyBAA=;
 b=nLFhJMiXIWD/7fbJPktzxjXelJrxOAaAR6VjYbfKNhehotumlwbF6PebuPgGwkGi83
 OEuf37JVNjLmMkx3qug0A19FbS9A6HuEnZeYlKTv1zwZzho9aWw30kfboVJFaFZq+UU8
 L5cpBJEYByiRTmHzHVz2/aHChxCG0XeDI5xFSFpDWCwpFkrI0aV3gIbKWgrYjtdkSfSf
 9U/TEAtDIbMOdSlyazbyXav1BnXqAE26P914grPCsrVP1BrnvXfRkzjZr5yeDxZ70vRB
 vZmOdBpI/SheoKEOEWc4iNjwX3FrnJcJDWromxZ3gquox9hDePIclUFsv24aZFG4liVT
 +8Pw==
X-Gm-Message-State: APjAAAX//O2cOGVPOhLzLZVSsWCbPod2lDhAO/V/qXyg7fyYU1Y6p146
 pHE/xZpF3ZxKUyWq/8RfVj6p0lkM
X-Google-Smtp-Source: APXvYqy5DH+Z/3dSC/8us2vXFHNPcYfdOzI/t4DcRXPPBU0vBGNFC4j3MGABnuSme4JJ8c3LPJ96vQ==
X-Received: by 2002:a6b:b8d7:: with SMTP id i206mr8258818iof.229.1566579588416; 
 Fri, 23 Aug 2019 09:59:48 -0700 (PDT)
Received: from vhost2
 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.38.42])
 by smtp.gmail.com with ESMTPSA id e17sm2516137ioh.0.2019.08.23.09.59.47
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Fri, 23 Aug 2019 09:59:47 -0700 (PDT)
From: Noam Postavsky <npostavs@HIDDEN>
To: Alex Branham <alex.branham@HIDDEN>
Subject: Re: bug#34330: 27.0.50;
 shell auto-complete cannot handle special characters
References: <CAN-HRFbwUZ8e76KER2qki+wGM+Wh80ZyJbnJeKqXjjR4fM97oA@HIDDEN>
 <87zhkav2e4.fsf@HIDDEN> <87sgq2v27l.fsf@HIDDEN>
 <87pnkv6f9z.fsf@HIDDEN>
Date: Fri, 23 Aug 2019 12:59:47 -0400
In-Reply-To: <87pnkv6f9z.fsf@HIDDEN> (Alex Branham's message of "Fri, 23
 Aug 2019 11:02:48 -0500")
Message-ID: <85blwfkebg.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 34330
Cc: Tadeus Prastowo <tadeus.prastowo@HIDDEN>, 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 (-)

Alex Branham <alex.branham@HIDDEN> writes:

> Is this OK to apply to master to fix the issue with completion of
> filenames?

Well, nobody raised any objections, so it's probably fine.  I think it
would be helpful to also add a comment in the code about this, since
it's not very obvious that the order is so sensitive.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34330; Package emacs. Full text available.

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


Received: (at 34330) by debbugs.gnu.org; 23 Aug 2019 16:03:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 23 12:03:02 2019
Received: from localhost ([127.0.0.1]:41043 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i1C1l-00079a-Gs
	for submit <at> debbugs.gnu.org; Fri, 23 Aug 2019 12:03:01 -0400
Received: from mail-oi1-f170.google.com ([209.85.167.170]:45323)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alex.branham@HIDDEN>) id 1i1C1j-00079F-8b
 for 34330 <at> debbugs.gnu.org; Fri, 23 Aug 2019 12:02:59 -0400
Received: by mail-oi1-f170.google.com with SMTP id v12so7365304oic.12
 for <34330 <at> debbugs.gnu.org>; Fri, 23 Aug 2019 09:02:59 -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=qCCrQ+KUCxTbZw+GqZtA9/ttunyhzp2lQUm+hiZsUBM=;
 b=fI5Edk9TVrZepGHjiuChysT3mY8QNYoFWs3MJWQXULMe0pqC85R0rBPzSiLeuVMMou
 Q0DxU6cjY5cLpSAtAuZI9xjjuaOZnsdjZQB3EdeJFBwRhfaKMeCaQ798vIeo9EMIjfIg
 3TUFNz4TrS4Hob/O46w9jRi4A0RHhNxDyJbiNV1zHOvF//D41hCPh4kL+lwyAKcd4n/9
 F76BR0j5pB8tppvGGUiVWeVl2DsgUMpoRQaGJcv51IBU3iYoqQeeC5tcaMscnsH/rfJj
 XjgiOd2sAt1zUlFsAetovPGtcAzPO49BjqEROiW1rLCyHs+jwgv/NCIqx/PwfSErJ+Al
 QZLg==
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=qCCrQ+KUCxTbZw+GqZtA9/ttunyhzp2lQUm+hiZsUBM=;
 b=BgwaWgEXdH+QcX14WQrKka+5pftLQTnTjeQuGjKrR9bkP0yzSta0wXIcVAGM4YSh9r
 IEVjk0nfNlmkgFEeb2QbYSsGxar/lTURJ3vEhHiGRzlGHqfVVpChMkiCwDRzXsZt0phS
 w/lTQCLiB1BS/Z3TbE7Um9a1mlhkXSPkQi9pKs+1giPmQ/xM1RQdgDztfkozGrzwZMMc
 mkeG+Unh4Vzd+3I+c9EOTY301RqVH38U3s9MYm2rPGcVFq+7hhB1vv8kGcMoZy5Hhz6h
 Zxwlolx/J4YGPaNdsuH40aQnR5aal31xMvfrkQGB9TNjxWIqljq5KPGyAshKzeF32osH
 kYAA==
X-Gm-Message-State: APjAAAUBp8CzxcTj2TZ3HoiRXWD2xJjAuJQGdKe3tWSP/psrJRkCufba
 tQcRXB6CLyaj52xxUt8iRPzBT9Nfktc=
X-Google-Smtp-Source: APXvYqxHwdvfdJ9fH7+mkD01deqMQJGTgxnTL7++NBV1kinbetv1Fl3Vm+Ji4mjdCdhXO7YIJJIwDw==
X-Received: by 2002:aca:4d85:: with SMTP id a127mr3624381oib.3.1566576172673; 
 Fri, 23 Aug 2019 09:02:52 -0700 (PDT)
Received: from mars (cpe-70-114-192-208.austin.res.rr.com. [70.114.192.208])
 by smtp.gmail.com with ESMTPSA id y88sm1136110ota.32.2019.08.23.09.02.49
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 23 Aug 2019 09:02:49 -0700 (PDT)
From: Alex Branham <alex.branham@HIDDEN>
To: Alex Branham <alex.branham@HIDDEN>
Subject: Re: bug#34330: 27.0.50; shell auto-complete cannot handle special
 characters
References: <CAN-HRFbwUZ8e76KER2qki+wGM+Wh80ZyJbnJeKqXjjR4fM97oA@HIDDEN>
 <87zhkav2e4.fsf@HIDDEN> <87sgq2v27l.fsf@HIDDEN>
Date: Fri, 23 Aug 2019 11:02:48 -0500
In-Reply-To: <87sgq2v27l.fsf@HIDDEN> (Alex Branham's message of "Thu, 15
 Aug 2019 11:10:54 -0500")
Message-ID: <87pnkv6f9z.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: Tadeus Prastowo <tadeus.prastowo@HIDDEN>, 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 (-)


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

Is this OK to apply to master to fix the issue with completion of
filenames?

Alex

>
>>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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#34330; Package emacs. Full text available.

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, 13 Aug 2020 11:30:02 UTC

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