GNU bug report logs - #28096
25.2; c-a-p/shell/ielm: Broken directory completion for directories that contain spaces

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; Severity: minor; Reported by: xristos <xristos@HIDDEN>; Keywords: confirmed; dated Tue, 15 Aug 2017 12:49:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 28096) by debbugs.gnu.org; 30 May 2018 13:44:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 30 09:44:46 2018
Received: from localhost ([127.0.0.1]:54778 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fO1PC-0001LR-N1
	for submit <at> debbugs.gnu.org; Wed, 30 May 2018 09:44:46 -0400
Received: from mail-wm0-f54.google.com ([74.125.82.54]:38466)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <contovob@HIDDEN>) id 1fO1P9-0001LA-L7
 for 28096 <at> debbugs.gnu.org; Wed, 30 May 2018 09:44:44 -0400
Received: by mail-wm0-f54.google.com with SMTP id m129-v6so47723331wmb.3
 for <28096 <at> debbugs.gnu.org>; Wed, 30 May 2018 06:44:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=tcd-ie.20150623.gappssmtp.com; s=20150623;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=Iu9Rr2+OGa4mmBMggHtXQHNuAY9aalqTPGaDHC3Gmk0=;
 b=TDghbR9nI/HKMOaUsj2UP8g6woRVuv0UGLVFmy2uG9Wqbz0D0GIGAqXuMnZxeUechf
 By4hZlao7PeKR8tkJWtdrBZoGIGH4t11mhPREAHolGyoNFkaG+gQlpMb3qdl5cn8YOLL
 dZAfRRJF7IuWw/vaAZy7iB3CBGMPtoZXEm5K/n+ZIhRQG+hMZ5w6XMSBwY1wALrJYVaZ
 X0FTk9/heuVk3Spn1CO+FnFoEU+o/heno+V2qnxTIUBGh7UUov//IbE3bFNfTcGqJWUi
 lxegqOuhcHKr/+txNJKVPK1y/8rVKpAL4QhIXlCmBH6tWy+bAgZwFdlRS4w+AAc8sBhH
 PWVg==
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=Iu9Rr2+OGa4mmBMggHtXQHNuAY9aalqTPGaDHC3Gmk0=;
 b=AL94IowbHxYQanf36Rauf/TDRZmhigEY9hGEg0OVlGjAiuoXbAtYs9Zf5BTE3D7iLN
 Fi++c235NTvcknk82tGfmcmkygT38cEvdGcFa8xeDzBt/nW53NALTL9jSBtmLj79cHXo
 ILLoVG4I3fB2DmWSssMsqSstz3mJsBstocr2rB8cayWX+VCIRedboVAw/wzID1rMnRrn
 3Jr4V+lvKVMx8LAn9VhDxg7QlI5kOnubcFZ2YjChoIXC57YJ6s/bgP+FSqaGBueEj+SC
 bvOSw5MOqm1JEtAemseEXX/xh2W8UL015T7A2hk32YNLb++HYpgtjKXeewLjuCGVxGOT
 NkJw==
X-Gm-Message-State: APt69E0GDM1EUV0y+TtXmgxBY4/m8IwxbjyAp886ttvAHZW7itTaPT9g
 /skve+5hBxAFgpFj7bAtTmnRAg==
X-Google-Smtp-Source: ADUXVKJF4gzkUFYjR2A/GonqzAPVnbidYSGhGnz+/Bc+ecRcfrAAOJCP0SRh9aEQVWZF3tW+Z5iXIw==
X-Received: by 2002:a1c:7e8d:: with SMTP id
 z135-v6mr1501415wmc.6.1527687877968; 
 Wed, 30 May 2018 06:44:37 -0700 (PDT)
Received: from localhost ([178.62.40.52])
 by smtp.gmail.com with ESMTPSA id 75-v6sm18126187wmw.37.2018.05.30.06.44.37
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Wed, 30 May 2018 06:44:37 -0700 (PDT)
From: "Basil L. Contovounesios" <contovob@HIDDEN>
To: Noam Postavsky <npostavs@HIDDEN>
Subject: Re: bug#28096: 25.2;
 c-a-p/shell/ielm: Broken directory completion for directories that
 contain spaces
References: <u5fuctm28d.fsf@HIDDEN> <871sfyrolu.fsf@HIDDEN>
 <bmd0xedmzd.fsf@HIDDEN> <87y3g1best.fsf@HIDDEN>
 <87y3g1qr3l.fsf@HIDDEN>
Date: Wed, 30 May 2018 14:44:35 +0100
In-Reply-To: <87y3g1qr3l.fsf@HIDDEN> (Basil L. Contovounesios's message of
 "Wed, 30 May 2018 13:13:02 +0100")
Message-ID: <87sh69qmv0.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: 28096
Cc: xristos <xristos@HIDDEN>, 28096 <at> debbugs.gnu.org,
 Eric Skoglund <eric@HIDDEN>
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 (-)

"Basil L. Contovounesios" <contovob@HIDDEN> writes:

> I'm not familiar with the workings of shell, but it seems like it's
> trying to be smart about cd completion and falling a bit short.

After a bit more digging (see bug#11348 and bug#11607), it looks like
the culprit is pcomplete/cd.  I'm far from familiar with pcomplete, and
edebugging pcomplete-entries and pcomplete--entries did not reveal
anything obviously amiss to me, so my current workaround, inspired by
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=11348#26, is to:

(with-eval-after-load 'shell
  (setq shell-dynamic-complete-functions
        (delq #'pcomplete-completions-at-point
              shell-dynamic-complete-functions)))

-- 
Basil




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

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


Received: (at 28096) by debbugs.gnu.org; 30 May 2018 12:13:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 30 08:13:14 2018
Received: from localhost ([127.0.0.1]:54748 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fNzyc-0007is-5F
	for submit <at> debbugs.gnu.org; Wed, 30 May 2018 08:13:14 -0400
Received: from mail-wm0-f44.google.com ([74.125.82.44]:53853)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <contovob@HIDDEN>) id 1fNzyZ-0007ic-Aa
 for 28096 <at> debbugs.gnu.org; Wed, 30 May 2018 08:13:12 -0400
Received: by mail-wm0-f44.google.com with SMTP id a67-v6so47265209wmf.3
 for <28096 <at> debbugs.gnu.org>; Wed, 30 May 2018 05:13:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=tcd-ie.20150623.gappssmtp.com; s=20150623;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=Sp97xPIgm7xfcZIP6R/9az/HBOFN2TwG3QLtcoz+Pr4=;
 b=k4IiNMsQDx5I2lD2IGwdXvd3HBmcIn/wF7OdpF1K7ZUeb3EeH4FcfClk/ea5Tu1ojm
 BOkDzznrVSFeyPVBRd5n4eTi1myzeJYqNpjx9VZuDzY/phQfe+kb3U9dFU8nGSlnYks1
 L62f3tkD2H8FrAMq9qfZsRCY92gM+qKS8htHQ/dV9s67pVfnM450eYU06lPjqwpLIkDL
 0n8zLTjdNWZwj94XRMamrvmXFfEvQfbwaXtgtA1+VFLoXVC0EsJXg8CLPAuHvlUX8UmZ
 7UH3ASVszJjxvW58XM5t6HR475PrVEhhQKq5NNI/3T/6cDHUEYTiu596yCPVFnfkIYPc
 xGBQ==
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=Sp97xPIgm7xfcZIP6R/9az/HBOFN2TwG3QLtcoz+Pr4=;
 b=nqTGNd5WtkCgSuep+/FVj9lDMkZs1eoM1fiDDFdN29Ct3QhjsLxEFV7ovqgu28jPee
 Ybnh2A+tBmkxBOMke6u0FpQW/zCWSWuNmuRahrB4VTj1wXqmm4c02BSjY7affrolNi25
 ukVgWVlTtyvQx/MkIL0OLKrAEKK4kVEuSW3k4Vy6dvCbn/jhdve0QOGGLQAkWOuA00Xy
 8gTBoQS2Q1P7G8J/DI6nuZq9PqDZ8tLdkkSV7xfOJiWUSNcMw2/5I2KVUZvnjVTH0iUx
 PXyXWbxvIIxgz1sTzUwEUdMqOZ6ajEXQwafvoB9STEi4yZBAGeIwPIAkOimXaANKa0yU
 OR7g==
X-Gm-Message-State: ALKqPwfBhlLOQdLO774lpx8a9yQ147fn67rxsyOnXVgcZ1tfXDi1Swgi
 uawcS+qC5leeZj9aUKYs2+chEQ==
X-Google-Smtp-Source: ADUXVKKHeAHs3wfR4xhHljC8GOLetFe/dfTNuo+ZXWbQFj7zgxu7rGrvIS6CtxEuwVBvxS0rhkn4Ag==
X-Received: by 2002:a1c:5403:: with SMTP id i3-v6mr1276318wmb.37.1527682385581; 
 Wed, 30 May 2018 05:13:05 -0700 (PDT)
Received: from localhost ([178.62.40.52])
 by smtp.gmail.com with ESMTPSA id u8-v6sm14944951wmc.40.2018.05.30.05.13.04
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Wed, 30 May 2018 05:13:04 -0700 (PDT)
From: "Basil L. Contovounesios" <contovob@HIDDEN>
To: Noam Postavsky <npostavs@HIDDEN>
Subject: Re: bug#28096: 25.2;
 c-a-p/shell/ielm: Broken directory completion for directories that
 contain spaces
References: <u5fuctm28d.fsf@HIDDEN> <871sfyrolu.fsf@HIDDEN>
 <bmd0xedmzd.fsf@HIDDEN> <87y3g1best.fsf@HIDDEN>
Date: Wed, 30 May 2018 13:13:02 +0100
In-Reply-To: <87y3g1best.fsf@HIDDEN> (Noam Postavsky's message of "Wed, 30
 May 2018 06:47:46 -0400")
Message-ID: <87y3g1qr3l.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: 28096
Cc: xristos <xristos@HIDDEN>, xristos <xristos@HIDDEN>,
 28096 <at> debbugs.gnu.org, Eric Skoglund <eric@HIDDEN>
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

Noam Postavsky <npostavs@HIDDEN> writes:

> One minor question, what does the "C-a-k" mean
> in your original report?

I think Xristos meant C-a C-k.

The only thing needed to make ielm file name completion work on my
system (see signature for its details) is to add ?\s to
comint-file-name-chars, e.g.:


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline; filename=ielm.diff

diff --git a/lisp/ielm.el b/lisp/ielm.el
index b4ad69e4c7..4bb6e752e8 100644
--- a/lisp/ielm.el
+++ b/lisp/ielm.el
@@ -546,6 +546,8 @@ inferior-emacs-lisp-mode
   (set (make-local-variable 'paragraph-start) comint-prompt-regexp)
   (setq comint-input-sender 'ielm-input-sender)
   (setq comint-process-echoes nil)
+  (unless (string-match-p " " comint-file-name-chars)
+    (setq comint-file-name-chars (concat " " comint-file-name-chars)))
   (set (make-local-variable 'completion-at-point-functions)
        '(comint-replace-by-expanded-history
          ielm-complete-filename elisp-completion-at-point))

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


As for shell, file name completion only seems to breaks down for me when
completing a relative file name argument to the cd command in
particular:

0. emacs -Q
1. M-x shell RET
2. cd /tmp/
   [shell doesn't seem to support dynamic cd arguments such as
    "$(mktemp -d)".]
3. mkdir dir\ one dir\ two RET
4. cd /tmp/dir TAB
   [Completes to "/tmp/dir\ ".]
5. TAB
   [Offers "dir\ one/" and "dir\ two/" as completion candidates.]
6. o TAB
   [Completes to "/tmp/dir\ one/".]

Replacing cd with ls (or pretty much any other string, let alone valid
command) in step 4 exhibits the same correct behaviour.  Doing so in
OP's recipe (which tries to complete relative file names), however, does
not seem to struggle in the same way as cd completion:

Steps 0-3 as before.
4. ls dir TAB
   [Completes to "dir\ ".]
5. TAB
   [Offers "dir\ one/" and "dir\ two/" as completion candidates.]
5. o TAB
   [Completes to "/tmp/dir\ one/".]

I'm not familiar with the workings of shell, but it seems like it's
trying to be smart about cd completion and falling a bit short.

-- 
Basil

In GNU Emacs 27.0.50 (build 4, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2018-05-27 built on thunk
Repository revision: 0f48d18fd2a30f29cc3592a835d2a2254c9b0afb
Windowing system distributor 'The X.Org Foundation', version 11.0.11906000
System Description: Debian GNU/Linux buster/sid

"${SHELL}" --version
GNU bash, version 4.4.19(1)-release (x86_64-pc-linux-gnu)

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#28096; Package emacs. Full text available.
Severity set to 'minor' from 'normal' Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug Marked as found in versions 26.1. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) confirmed. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 28096) by debbugs.gnu.org; 30 May 2018 10:47:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 30 06:47:57 2018
Received: from localhost ([127.0.0.1]:54721 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fNye5-0001rD-9Z
	for submit <at> debbugs.gnu.org; Wed, 30 May 2018 06:47:57 -0400
Received: from mail-io0-f171.google.com ([209.85.223.171]:37735)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>)
 id 1fNye2-0001qt-CY; Wed, 30 May 2018 06:47:54 -0400
Received: by mail-io0-f171.google.com with SMTP id e20-v6so21071167iof.4;
 Wed, 30 May 2018 03:47: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=NRt9E4aHlGdTL3JrsdYIrTxvclHIv1YzHvMQswC5EwM=;
 b=AlgnbPIGX8CnKx2YelBG3837Kh3CesOpnFOIu4iROVLCHakfwxRDxKJTBRJgyGqfRE
 sAP5L1UZQSLX2ODd1vepZtdtYojHR/OllXYPUnsrmUia3KtS2upIMyeipmb1QSut4cuf
 +8eh+om1UOHBm8iwYUtwLyybGpBeHZ3kRO2/ATYJmKW/fLdgafbKj7fgukFLOzNH48Bj
 sLh2TSG44BJKncz6uoVdnpny2FqTa6lw4t9x8NAYLApWKjoVEvZhqliWIAXeE1JChu9I
 3VP9nN4o+j9vFlzXB6aUNwS5ey3430/RBYAJGpaZn8PwNZ6Jkiv7Dj+FaU+8Aveteff4
 ltCQ==
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=NRt9E4aHlGdTL3JrsdYIrTxvclHIv1YzHvMQswC5EwM=;
 b=dZz+3ufW2VI00g6bW0P3KgjH7PhGL2ZeHxXFCqF9ci6JYxSdN52Llq22MLcAqXqlQ0
 0gxu++thLyTPoJKE+c9hEh1bueObfITqIYZQSU28141Vz5jIG0ibU7Fl+6iv0i5j1q+K
 Oc0Mj6tqilcv3Ow+62FKrdL5wlKVf7SgDqX+B+IEvKGBfDZtuPnPuyQVvcB3U4oTs2s/
 1W5NL2Ssa8MXtVuF4/yyyBHCwFH1n97PfQ3ek1b4OS/oZg69fRBRS8bZhx+2ACyZ8CY/
 sffPvSSNH9qW/zab3weyqDqxw+mSayHHYw2sK5AZD1WR+hFkwuaYG3MP+ZYZm2G/p+hR
 /XpQ==
X-Gm-Message-State: APt69E1qN4IweZrMLx0Kae5csemBMNSab2O9dIsvWtZBlcFH63dPRcHE
 WtZGimtkm98Hyr7lxJgtI6tsia+S
X-Google-Smtp-Source: ADUXVKIyHWRqAgtuCEmDLQHhcdHGAn2dSy1pKGaEryL/qBJqvCgPlYJt8K0mW8QA3KCYMQzWtA1JfA==
X-Received: by 2002:a6b:208a:: with SMTP id
 g132-v6mr1792309iog.216.1527677268618; 
 Wed, 30 May 2018 03:47:48 -0700 (PDT)
Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34])
 by smtp.googlemail.com with ESMTPSA id
 x189-v6sm287788ite.2.2018.05.30.03.47.47
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Wed, 30 May 2018 03:47:47 -0700 (PDT)
From: Noam Postavsky <npostavs@HIDDEN>
To: xristos <xristos@HIDDEN>
Subject: Re: bug#28096: 25.2;
 c-a-p/shell/ielm: Broken directory completion for directories that
 contain spaces
References: <u5fuctm28d.fsf@HIDDEN> <871sfyrolu.fsf@HIDDEN>
 <bmd0xedmzd.fsf@HIDDEN>
Date: Wed, 30 May 2018 06:47:46 -0400
In-Reply-To: <bmd0xedmzd.fsf@HIDDEN> (xristos's message of "Tue, 29 May 2018
 20:08:06 -0400")
Message-ID: <87y3g1best.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -1.7 (-)
X-Debbugs-Envelope-To: 28096
Cc: xristos <xristos@HIDDEN>, 28096 <at> debbugs.gnu.org,
 Eric Skoglund <eric@HIDDEN>
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: -2.7 (--)

tags 28096 + confirmed
found 28096 26.1
severity 28096 minor
quit

xristos <xristos@HIDDEN> writes:

> This is still an open issue for me on Emacs 26.1 (Linux and OSX).

Yup, I can reproduce it.  One minor question, what does the "C-a-k" mean
in your original report?





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

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


Received: (at 28096) by debbugs.gnu.org; 30 May 2018 07:55:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 30 03:55:02 2018
Received: from localhost ([127.0.0.1]:54623 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fNvwi-0005wW-LY
	for submit <at> debbugs.gnu.org; Wed, 30 May 2018 03:55:01 -0400
Received: from mail.suspicious.org ([104.131.63.74]:33962)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <xristos@HIDDEN>) id 1fNoew-0002m3-0X
 for 28096 <at> debbugs.gnu.org; Tue, 29 May 2018 20:08:10 -0400
Received: from samadhi.lan (unknown [204.11.85.76])
 (Authenticated sender: night)
 by mail.suspicious.org (Postfix) with ESMTPSA id ED4CD1400DD;
 Tue, 29 May 2018 20:08:08 -0400 (EDT)
From: xristos <xristos@HIDDEN>
To: Eric Skoglund <eric@HIDDEN>
Subject: Re: bug#28096: 25.2;
 c-a-p/shell/ielm: Broken directory completion for directories that
 contain spaces
References: <u5fuctm28d.fsf@HIDDEN> <871sfyrolu.fsf@HIDDEN>
Date: Tue, 29 May 2018 20:08:06 -0400
In-Reply-To: <871sfyrolu.fsf@HIDDEN> (Eric Skoglund's message of "Mon,
 02 Apr 2018 10:37:01 +0200")
Message-ID: <bmd0xedmzd.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 28096
X-Mailman-Approved-At: Wed, 30 May 2018 03:54:59 -0400
Cc: xristos <xristos@HIDDEN>, 28096 <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 (-)

This is still an open issue for me on Emacs 26.1 (Linux and OSX).

I asked a few people from #emacs to try and reproduce on 26.1,
they all reported that the issue is still there.

On Mon, 02 Apr 2018 10:37:01 +0200, 
Eric Skoglund <eric@HIDDEN> wrote:
> Seems like this is fixed, I was unable to reproduce this for both the
> master and emacs-26 branches.
>
> // Eric




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

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


Received: (at 28096) by debbugs.gnu.org; 2 Apr 2018 08:37:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 02 04:37:05 2018
Received: from localhost ([127.0.0.1]:34689 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1f2uxd-0005hH-PH
	for submit <at> debbugs.gnu.org; Mon, 02 Apr 2018 04:37:05 -0400
Received: from pagefault.se ([31.7.186.167]:37172)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eric@HIDDEN>) id 1f2uxb-0005h8-To
 for 28096 <at> debbugs.gnu.org; Mon, 02 Apr 2018 04:37:04 -0400
Received: by pagefault.se (Postfix, from userid 5555)
 id 3D01E9220105; Mon,  2 Apr 2018 08:37:02 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on pagefault.se
X-Spam-Level: 
X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00
 autolearn=ham version=3.3.2
Received: from pagefault.se
 (c-460be255.07-19-73746f67.cust.bredbandsbolaget.se [85.226.11.70])
 by pagefault.se (Postfix) with ESMTPSA id F17FD9220101;
 Mon,  2 Apr 2018 08:37:01 +0000 (UTC)
From: Eric Skoglund <eric@HIDDEN>
To: xristos <xristos@HIDDEN>
Subject: Re: bug#28096: 25.2;
 c-a-p/shell/ielm: Broken directory completion for directories that
 contain spaces
References: <u5fuctm28d.fsf@HIDDEN>
Date: Mon, 02 Apr 2018 10:37:01 +0200
In-Reply-To: <u5fuctm28d.fsf@HIDDEN> (xristos's message of "Tue, 15 Aug
 2017 08:42:26 -0400")
Message-ID: <871sfyrolu.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: 28096
Cc: , 28096@https, 28096 <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: -0.0 (/)


Seems like this is fixed, I was unable to reproduce this for both the
master and emacs-26 branches.

// Eric




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

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


Received: (at submit) by debbugs.gnu.org; 15 Aug 2017 12:48:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 15 08:48:53 2017
Received: from localhost ([127.0.0.1]:37810 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dhbHB-0005hj-6W
	for submit <at> debbugs.gnu.org; Tue, 15 Aug 2017 08:48:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33815)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <xristos@HIDDEN>) id 1dhbH9-0005hZ-19
 for submit <at> debbugs.gnu.org; Tue, 15 Aug 2017 08:48:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <xristos@HIDDEN>) id 1dhbH3-0001KK-2X
 for submit <at> debbugs.gnu.org; Tue, 15 Aug 2017 08:48:46 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:38126)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <xristos@HIDDEN>)
 id 1dhbH2-0001KB-VV
 for submit <at> debbugs.gnu.org; Tue, 15 Aug 2017 08:48:45 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:53019)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <xristos@HIDDEN>) id 1dhbH1-0007GY-Oo
 for bug-gnu-emacs@HIDDEN; Tue, 15 Aug 2017 08:48:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <xristos@HIDDEN>) id 1dhbGz-0001Hu-6N
 for bug-gnu-emacs@HIDDEN; Tue, 15 Aug 2017 08:48:43 -0400
Received: from mail.suspicious.org ([104.131.63.74]:48791)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <xristos@HIDDEN>) id 1dhbGz-0001FF-2n
 for bug-gnu-emacs@HIDDEN; Tue, 15 Aug 2017 08:48:41 -0400
Received: from samadhi.lan (unknown [72.28.146.186])
 (Authenticated sender: night)
 by mail.suspicious.org (Postfix) with ESMTPSA id CBC72161091
 for <bug-gnu-emacs@HIDDEN>; Tue, 15 Aug 2017 08:42:15 -0400 (EDT)
From: xristos <xristos@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 25.2;
 c-a-p/shell/ielm: Broken directory completion for directories that
 contain spaces
Date: Tue, 15 Aug 2017 08:42:26 -0400
Message-ID: <u5fuctm28d.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.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: -5.0 (-----)


emacs -Q
M-x shell
;; First create the directory structure for the test
cd /tmp/ RET
mkdir "Directory One" RET
mkdir "Directory Two" RET
;; Try to complete in shell
cd D<TAB>
;; Completes to Directory\
<TAB>
;; No match shown in *Messages* (unexpected, should list the two directories)
C-a-k
cd Directory\ O<TAB>
;; No match shown in *Messages* (unexpected, should complete Directory\ One)

;;; For ielm, we try completion inside a string

M-x ielm
"/tmp/D<TAB>
;; Completes to "/tmp/Directory
<TAB>
;; Nothing shown in *Messages*, no completion (unexpected, should list the two directories)
C-a-k
"/tmp/Directory O<TAB>
;; No match shown in *Messages*, no completion (unexpected, should complete
Directory One)


completion-at-point-functions in *ielm*:
(comint-replace-by-expanded-history ielm-complete-filename
elisp-completion-at-point)

completion-at-point-functions in *shell*:
(comint-completion-at-point t)


In GNU Emacs 25.2.1 (x86_64-apple-darwin15.6.0, NS appkit-1404.47 Version 10.11.6 (Build 15G1611))
 of 2017-08-07 built on elcapitan.internal.macports.net
Windowing system distributor 'Apple', version 10.3.1404
Configured using:
 'configure --prefix=/opt/local --without-ns --without-dbus
 --without-gconf --without-libotf --without-m17n-flt --without-gpm
 --without-gnutls --with-xml2 --with-modules --infodir
 /opt/local/share/info/emacs --with-ns CC=/usr/bin/clang 'CFLAGS=-pipe
 -Os -arch x86_64' 'LDFLAGS=-L/opt/local/lib
 -Wl,-headerpad_max_install_names -Wl,-no_pie -arch x86_64'
 CPPFLAGS=-I/opt/local/include'

Configured features:
NOTIFY ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES

Important settings:
  value of $LC_ALL: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: IELM

Minor modes in effect:
  shell-dirtrack-mode: t
  tooltip-mode: t
  global-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




Acknowledgement sent to xristos <xristos@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#28096; 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: Mon, 25 Nov 2019 12:00:02 UTC

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