From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 02 06:59:51 2025 Received: (at submit) by debbugs.gnu.org; 2 Aug 2025 10:59:51 +0000 Received: from localhost ([127.0.0.1]:34598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ui9xv-0001rO-CK for submit@debbugs.gnu.org; Sat, 02 Aug 2025 06:59:51 -0400 Received: from lists.gnu.org ([2001:470:142::17]:55992) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ui9xt-0001qw-Kq for submit@debbugs.gnu.org; Sat, 02 Aug 2025 06:59:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ui9xm-00087D-D0 for bug-gnu-emacs@gnu.org; Sat, 02 Aug 2025 06:59:42 -0400 Received: from server.qxqx.de ([2a01:4f8:c012:9177::1] helo=mail.qxqx.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ui9xj-0002YS-Qw for bug-gnu-emacs@gnu.org; Sat, 02 Aug 2025 06:59:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=daniel-mendler.de; s=key; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=C9U+FWQS7nCgwbVF9uCBDW+9d7c9bbgX3mAHCaPaSfY=; b=A/R0QXiI/1Qpsf9Upt55HCjqAd NmRcue8s5ZAOF8/LN6Sz2uuILKdmBfaF4xVm2HpRnKQKSQJhWYBQoTZw9Fk1krr4ZSuJH0jt/HdUk kJQrfH7tr7u4neuFd5b6cuAnyO3KPh7oHn8LUw3Y9W7M+ZW44dTC463xfpfTCH4mZcqg=; From: Daniel Mendler To: bug-gnu-emacs@gnu.org Subject: 31.0.50; eshell does not complete filename arguments with tramp X-Debbugs-Cc: Jim Porter Date: Sat, 02 Aug 2025 12:59:19 +0200 Message-ID: <871ppuq9a0.fsf@daniel-mendler.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a01:4f8:c012:9177::1; envelope-from=mail@daniel-mendler.de; helo=mail.qxqx.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) After an unknown command there is a discrepancy how file names are completed depending on if the current directory is local or remote. In Eshell I enter some command unknown to Pcomplete and then I try to complete a filename: ~/local $ mycommand fileprefix --> Completion works /ssh:user@host:~/ $ mycommand fileprefix --> Completion does not work /su::/ $ mycommand fileprefix --> Completion does not work I can fix the problem with the following advice which disables the `pcomplete-remote-file-ignore' override: (advice-add 'eshell-complete-parse-arguments :after (lambda () (kill-local-variable 'pcomplete-remote-file-ignore))) Is this expected or is this a bug? What is the reasoning behind disabling file name completion? I would like to always have the ability to complete file names. In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.49, cairo version 1.18.4) of 2025-07-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12101016 System Description: Debian GNU/Linux 13 (trixie) Configured using: 'configure --prefix=$HOME/.local/share/emacs --without-compress-install --with-tree-sitter --with-native-compilation --with-dbus --without-selinux --without-threads --disable-gc-mark-trace --without-gsettings --without-gpm --with-cairo --with-cairo-xcb --with-xinput2 --with-x-toolkit=gtk3 --without-toolkit-scroll-bars 'CFLAGS=-O3 -mtune=native -march=native'' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 TIFF TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM XRANDR GTK3 ZLIB From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 02 14:46:44 2025 Received: (at 79151) by debbugs.gnu.org; 2 Aug 2025 18:46:44 +0000 Received: from localhost ([127.0.0.1]:37744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uiHFk-0002lM-Aw for submit@debbugs.gnu.org; Sat, 02 Aug 2025 14:46:44 -0400 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]:43210) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uiHFi-0002l7-Fz for 79151@debbugs.gnu.org; Sat, 02 Aug 2025 14:46:43 -0400 Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-76bf3dafaa5so303996b3a.0 for <79151@debbugs.gnu.org>; Sat, 02 Aug 2025 11:46:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1754160396; x=1754765196; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:cc:references:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=wUhjlq/J9EW2qK+W4sAO0fp84u/q903Dvw2PFf+V+ac=; b=FMKERuDwT863nAn3tTnnP6iWQSvfpRqJf0Es9oGVq8TAi579P1VsDpLbSqQVF5Sxhf HqitALhBIhyrvKmt8dduXrUNIc+6upTC42KjjKC9nTG9ZGOTilRpGLmgX1uHE7ZJ+fw8 l9grexnGk5oXnbbgd1SUKFfLzdLgPggVHY3O/OBXuqBTJTLv2bH+K6yAuZFFUbjSIM8N qHs/MRMapL27rTWvi8EcgqIJu0EvjGJxsySnRkef5lriZebEb7Zrd8cWNNYPY15Tg3xT Y3O8myAFoIUjfVZqx703Pd6Q/cwPaYYKKe8NdCNUENsvoAClT+Bz7hLlmMgRW8pufRz8 78wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754160396; x=1754765196; h=content-transfer-encoding:in-reply-to:from:cc:references:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wUhjlq/J9EW2qK+W4sAO0fp84u/q903Dvw2PFf+V+ac=; b=ip36XxmwPBAAW2aXcYjG/Nn9qju1YipL5WwAcoSTk52ZeYubOWkCWTz6+2IK+eMmlG 6hJe/L+0+neFHmdst8vUF5NUA2Fd5F3VIi07y1Kh3SvIjwzsEgcr5kEXxtNAQ1v+K+c8 GXnlUSzbHI32FRGQMT1Y8Gw86ELnVXSFN1PqB5S/nrP6nAicFtPL6aVaYllrvRnQcFP+ KelPr0Z+pYuGibQoZ+wVu+biKnfG7yA4YAESb9hQqCTNDNu/7fxUXb/r2Z+VZI2fTDGy zRkXE4oS8hiSCehQFLrPvlw006fxD96A+rmuzL/8xpiJPhACBwOIFZ9cHQ2wLvqrZeK2 WJGA== X-Forwarded-Encrypted: i=1; AJvYcCXDemE0P4q6qTcZW62ldgf9rwGaAuy/BRXBTcWPcbbwZrWYsN1EIzjIy2Osama16PnN75V+Iw==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yz0N/0D3KarIkjBiFROfFX7FyklIMpQi6di1g/FlcgWmj5Uw6Up ypgpJAa98Mu/CR2lER8sGLOGqGVLIa1R71NUkHlb376Q53UyUPtj/m5J X-Gm-Gg: ASbGncsKoTUtU6iRPJPg1dzUfO5hK2qiXNpag8np4GdvPMUG+OXVe6NiWJcSlxUo673 TbXQKkjZBdbqUOBF9Rdg0Fsvr2jyGG1qeEJiFsN4Q3M5/0ioPJYVRLLItNdCbOA4T8vKbKHYBGt jftQ2B6tfptdV5WMT7yGOwwsT1wTPEmok8aOET9cpadLhmlshmADcV/k4xASf35HaKkRnCXK45q 43wVj7fvSMA/l2JisPY4uyLJOkszqALslf1EfLDx+oqe7V6o620QxwK7qVCS5voZz8XanuQTMfn NonXcbhPIhlVBDToFD3rp7m3P/GaU0CXIwVI6Z/03sUK0qdF6OuXWWY0O+08h0oe2+6fDCFSImg QdyajrGjI24+JJaoU0SWBqkZ14bK8IpYqk9rqedsZZS/RMEWTQAJABjC9EkX+yD+4EzYLpzW40l YTOA== X-Google-Smtp-Source: AGHT+IHg7KgqwRfh9JfBjXhUwcMCwhz7xR2PcgjLeQNTObW6nhKRS4lBTzAb4nXTutzZ+RV6IgXkZg== X-Received: by 2002:a05:6a21:99a7:b0:23d:5bc0:2436 with SMTP id adf61e73a8af0-23df919ceacmr5734572637.20.1754160396169; Sat, 02 Aug 2025 11:46:36 -0700 (PDT) Received: from [192.168.1.2] (syn-076-168-144-128.res.spectrum.com. [76.168.144.128]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-76bcce8de28sm6769924b3a.39.2025.08.02.11.46.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 Aug 2025 11:46:35 -0700 (PDT) Message-ID: <9a0b51e5-b9e4-e1a6-ad16-8d83a0a2bf3a@gmail.com> Date: Sat, 2 Aug 2025 11:46:34 -0700 MIME-Version: 1.0 Subject: Re: bug#79151: 31.0.50; eshell does not complete filename arguments with tramp Content-Language: en-US To: Daniel Mendler , 79151@debbugs.gnu.org References: <871ppuq9a0.fsf@daniel-mendler.de> From: Jim Porter In-Reply-To: <871ppuq9a0.fsf@daniel-mendler.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 79151 Cc: Michael Albinus X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) CCing Michael, since I don't know much about the interaction between Pcomplete and Tramp here. On 8/2/2025 3:59 AM, Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > After an unknown command there is a discrepancy how file names are > completed depending on if the current directory is local or remote. > > In Eshell I enter some command unknown to Pcomplete and then I try to > complete a filename: > > ~/local $ mycommand fileprefix --> Completion works > /ssh:user@host:~/ $ mycommand fileprefix --> Completion does not work > /su::/ $ mycommand fileprefix --> Completion does not work > > I can fix the problem with the following advice which disables the > `pcomplete-remote-file-ignore' override: > > (advice-add 'eshell-complete-parse-arguments > :after (lambda () (kill-local-variable 'pcomplete-remote-file-ignore))) > > Is this expected or is this a bug? What is the reasoning behind > disabling file name completion? I would like to always have the ability > to complete file names. From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 02 15:16:00 2025 Received: (at 79151) by debbugs.gnu.org; 2 Aug 2025 19:16:00 +0000 Received: from localhost ([127.0.0.1]:37822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uiHi3-0004Q5-Vp for submit@debbugs.gnu.org; Sat, 02 Aug 2025 15:16:00 -0400 Received: from server.qxqx.de ([2a01:4f8:c012:9177::1]:37209 helo=mail.qxqx.de) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uiHhz-0004Pb-UB for 79151@debbugs.gnu.org; Sat, 02 Aug 2025 15:15:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=daniel-mendler.de; s=key; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=oBy9eC+3/cxTLls9d1NIk+N86nsuULnvizo0kA9idrc=; b=cTwOtf5pv59nMJzcRIfRibCT5Y i/LCj/npRoBdtIRAVA7eF1TDOdsnJv7PrX4IvfEff5DZIhIoI8sTeRRhjAg362O6p0JmepbM2gzk/ FOIFWB0fmR483JGklrf0AwiZk3zEHmgpTE4vmpSfpn7DY2wBTiOG8dPBCiGFff0mxTDw=; From: Daniel Mendler To: Jim Porter Subject: Re: bug#79151: 31.0.50; eshell does not complete filename arguments with tramp In-Reply-To: <9a0b51e5-b9e4-e1a6-ad16-8d83a0a2bf3a@gmail.com> References: <871ppuq9a0.fsf@daniel-mendler.de> <9a0b51e5-b9e4-e1a6-ad16-8d83a0a2bf3a@gmail.com> Date: Sat, 02 Aug 2025 21:15:46 +0200 Message-ID: <878qk18rh9.fsf@daniel-mendler.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79151 Cc: 79151@debbugs.gnu.org, Michael Albinus X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Jim Porter writes: > CCing Michael, since I don't know much about the interaction between Pcomplete > and Tramp here. Thanks. The problem was introduced by commit 26ca3e84e167f975afb4e9e9a838935bfe4a19a7. I don't understand the reasoning given in the comment: ;; Determine, whether remote file names shall be completed. They ;; shouldn't for external commands, or when in a pipe. Respect ;; also `eshell-cmpl-remote-file-ignore', which could be set by ;; the user. I often want to complete file names in when I am executing a command in a remote directory, also for external commands, and maybe also as part of a pipe. > On 8/2/2025 3:59 AM, Daniel Mendler via Bug reports for GNU Emacs, the Swiss > army knife of text editors wrote: >> After an unknown command there is a discrepancy how file names are >> completed depending on if the current directory is local or remote. >> In Eshell I enter some command unknown to Pcomplete and then I try to >> complete a filename: >> ~/local $ mycommand fileprefix --> Completion works >> /ssh:user@host:~/ $ mycommand fileprefix --> Completion does not work >> /su::/ $ mycommand fileprefix --> Completion does not work >> I can fix the problem with the following advice which disables the >> `pcomplete-remote-file-ignore' override: >> (advice-add 'eshell-complete-parse-arguments >> :after (lambda () (kill-local-variable 'pcomplete-remote-file-ignore))) >> Is this expected or is this a bug? What is the reasoning behind >> disabling file name completion? I would like to always have the ability >> to complete file names. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 04 03:52:27 2025 Received: (at 79151) by debbugs.gnu.org; 4 Aug 2025 07:52:27 +0000 Received: from localhost ([127.0.0.1]:48911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uipzf-0001j8-Fw for submit@debbugs.gnu.org; Mon, 04 Aug 2025 03:52:27 -0400 Received: from mout.gmx.net ([212.227.15.18]:33321) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uipzb-0001io-4b for 79151@debbugs.gnu.org; Mon, 04 Aug 2025 03:52:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1754293936; x=1754898736; i=michael.albinus@gmx.de; bh=1C9a04GJIbzu+MCJxtgneuCDwU6zZ1A6GH6e4q148+w=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=B3f4sg11MqT3XiUknrnlkCHhx45AWvVy0xYQAUooarrxwnRy/DHOJjFHe8qv0BRy 4AwVCVchAtOeZniaQRSiYgp4Sd+XB2xz6rAAxp+nEJwt+L7TF8F02MbVfmeeZJyM0 mrLGzkrov4UMWVW3LrqJCrrRQnA24LxrbTPmwa/7afZX7jbv2gChWwwhTStIfYNMg WjtylEmY00T0tDopnjxlc+zlV40waCt2uTftDJOdp4VZUg0AicMI0Q9gWUQLmyQbf ZeCG9/Zzkmoktr6aEzeH5PbuleTDTR2RBYb/PXU4U4kimCpLMQJGHkRHtJVyGj1aj TxJxxzBPHQJuK/WX9Q== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.37.61]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MgesQ-1u8hMC1Nka-00jBAI; Mon, 04 Aug 2025 09:52:16 +0200 From: Michael Albinus To: Daniel Mendler Subject: Re: bug#79151: 31.0.50; eshell does not complete filename arguments with tramp In-Reply-To: <878qk18rh9.fsf@daniel-mendler.de> References: <871ppuq9a0.fsf@daniel-mendler.de> <9a0b51e5-b9e4-e1a6-ad16-8d83a0a2bf3a@gmail.com> <878qk18rh9.fsf@daniel-mendler.de> Date: Mon, 04 Aug 2025 09:52:15 +0200 Message-ID: <87v7n3ed74.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:uecT1awoOBbF2iDi9H6IB2zPlfbTBjDJraVH+HWzSYJeZZtxwjq +7+xaYLJ0CcBuYjqJPhSz+em8U//iF78HcH6e/Lakbvdq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Kw0KN2aLLLc38HmWSlsUFV3HD/23f/53ikXDIP3UQ7RPIcTSuYW74/f2lB78mIcOElT 9SV9lKX5xOrPQI2R17XY2m7eI+I/CCMyD0AfJ/wialZqvr5X+VZ0z6sZO+k4DM7zZ3xRIGG0Q FRGCSqQUSPyvNPrrQOwBpKmiFL2GkjGdVpevjXy+gSawjKuKZ/opgY3f5g/ObI/3ZGQ0987He PLJaO2dVFunIx5ed2FxW01QwTFMmt1wJ4PBm50Z/kTigDXnh9Uymb6L1HC7EDI8gCagLX3RS9 RgD5mg9YrtYC9Bf2u0LrDtyJX7RHGgEME5tiRl5yd+UzfPNNQatGS/T0PtzS7miHQvIgtJ8MF V7QRjZdYlkhJ3LSOByl8T55Rep/qvhT9di1yWQCnD7y0sDiL87G2OAaZsqVdgXdSzHszVzrgy fvMEf10xxzlqDscx7zMeeIg/RO2k63+DElgsvsuBVUGIa+wjS9Hc8VDFzWT2Oyqo5bqO2vXo1 s9LL0mvSeg71jKPJeUb9KPHIh7b0/msaf7sec89PDg1nQEzB8XpAJwZClkxK9b9MtEcKVYKfp 9g== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79151 Cc: 79151@debbugs.gnu.org, Jim Porter X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Daniel Mendler writes: Hi Daniel & Jim, > ;; Determine, whether remote file names shall be completed. They > ;; shouldn't for external commands, or when in a pipe. Respect > ;; also `eshell-cmpl-remote-file-ignore', which could be set by > ;; the user. > > I often want to complete file names in when I am executing a command in > a remote directory, also for external commands, and maybe also as part > of a pipe. I also don't remember the reason, why remote file name completion was discarded for external command's arguments and pipes. Performance? If this is what users want, we should get rid of this restriction. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 04 05:38:07 2025 Received: (at 79151) by debbugs.gnu.org; 4 Aug 2025 09:38:07 +0000 Received: from localhost ([127.0.0.1]:49305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uirdu-0007aO-Jv for submit@debbugs.gnu.org; Mon, 04 Aug 2025 05:38:06 -0400 Received: from server.qxqx.de ([2a01:4f8:c012:9177::1]:58197 helo=mail.qxqx.de) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uirdr-0007Zj-6c for 79151@debbugs.gnu.org; Mon, 04 Aug 2025 05:38:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=daniel-mendler.de; s=key; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=NRv6sFZ6xv8lT9WdWAOsysfesSncpD4IgttAaeLTkWQ=; b=v1ePYeAXbU3FTzJdi19BpNLiGe J9x3To5zNAGd3tKij0zPsZmZf7WwzqetWbHq0c+O+fxJdaxUvzopVUFx3wgvej7eZYPT6DjDrwEo1 /bmt5Va71bVrNBysoNL+YWNLRjIRuMvB4Etvj+pALXgib2Ja+nFP4zdqTjpc93nDZuOg=; From: Daniel Mendler To: Michael Albinus Subject: Re: bug#79151: 31.0.50; eshell does not complete filename arguments with tramp In-Reply-To: <87v7n3ed74.fsf@gmx.de> References: <871ppuq9a0.fsf@daniel-mendler.de> <9a0b51e5-b9e4-e1a6-ad16-8d83a0a2bf3a@gmail.com> <878qk18rh9.fsf@daniel-mendler.de> <87v7n3ed74.fsf@gmx.de> Date: Mon, 04 Aug 2025 11:37:53 +0200 Message-ID: <87tt2na0lq.fsf@daniel-mendler.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79151 Cc: 79151@debbugs.gnu.org, Jim Porter X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Michael Albinus writes: > Daniel Mendler writes: > > Hi Daniel & Jim, > >> ;; Determine, whether remote file names shall be completed. They >> ;; shouldn't for external commands, or when in a pipe. Respect >> ;; also `eshell-cmpl-remote-file-ignore', which could be set by >> ;; the user. >> >> I often want to complete file names in when I am executing a command in >> a remote directory, also for external commands, and maybe also as part >> of a pipe. > > I also don't remember the reason, why remote file name completion was > discarded for external command's arguments and pipes. Performance? > > If this is what users want, we should get rid of this restriction. As I understand bug#65356 the problem was that file completion sets in in unwanted cases. Back then you pushed the 'pcomplete-remote-file-ignore' workaround with this comment: Let's just go with the change to add 'pcomplete-remote-file-ignore' for now. I'll have to think more about how Eshell can selectively ignore remote files correctly in all cases; there are a bunch of areas where Eshell could be smarter about completion already, and I have the feeling they'll conflict with each other if we don't plan this out carefully... But unfortunately this breaks useful behavior in many more cases which I care about more than occasional false completions. For me one of the selling points of Eshell is that I can seamlessly browse around on remote hosts via cd. But then file name completion refuses to work. > Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 04 05:44:16 2025 Received: (at 79151) by debbugs.gnu.org; 4 Aug 2025 09:44:16 +0000 Received: from localhost ([127.0.0.1]:49316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uirjs-0007sq-2B for submit@debbugs.gnu.org; Mon, 04 Aug 2025 05:44:16 -0400 Received: from mout.gmx.net ([212.227.17.21]:56459) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uirjp-0007sb-54 for 79151@debbugs.gnu.org; Mon, 04 Aug 2025 05:44:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1754300630; x=1754905430; i=michael.albinus@gmx.de; bh=lBB8JTVbBcHCEkXw16246Y7zzBpx+vRwBo1TH8Qa0Uk=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=NnXPzuHXO2QPufvt54cGhB2/gqX95SoIaplJqYF/93DwUn6/j+LT0gMGIoOVn2fS l1EZQvaNqK6S3Ncw4Gzdj+s1zeCtDAU0kxn7pfurcbyImaYZQMWUMkzYQtNlywTW0 QAZU/rDsG6VFqFLhC/efxF+jKbI8daZjsJIp0HDCprMFg4xqu0bEuS/j4qI50vPlx wwyFCEfHDeyMRgHNwwMqOf/2lPjtiDtDwWGrlMXoi0DUey+9BkPV4c0NZYQ067h0U /0+FZFh2ggR6wGmOOvK4a93uilzSGiIVir/I0qIMsTtANLeLcr//F+8qWsbB/dCRN QrVUxdRjW3/P/EtnCg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.37.61]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mkpap-1uMVLt2GdD-00n3wf; Mon, 04 Aug 2025 11:43:50 +0200 From: Michael Albinus To: Daniel Mendler Subject: Re: bug#79151: 31.0.50; eshell does not complete filename arguments with tramp In-Reply-To: <87tt2na0lq.fsf@daniel-mendler.de> References: <871ppuq9a0.fsf@daniel-mendler.de> <9a0b51e5-b9e4-e1a6-ad16-8d83a0a2bf3a@gmail.com> <878qk18rh9.fsf@daniel-mendler.de> <87v7n3ed74.fsf@gmx.de> <87tt2na0lq.fsf@daniel-mendler.de> Date: Mon, 04 Aug 2025 11:43:50 +0200 Message-ID: <87h5yne815.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:vxhae7KDmgzjcIAzWbK+TDFvzvuHhu3H4xZik11LzviRv1O3Pr2 vI4d+EwZk6Cff1a9L7qCz/GnRqQha5jsCqc5GpPkYkHBzptlytQ8iivcwD755Hx2P+QkHLT uUd+ir4DDC9HQDfdRCSGqaBpVrOVlja4RPGMYka7s83Lcngbs7qXq8VS7U4rSt+G+rMBbBT jNjCtcKT29f07iYS4NBVA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:S9Ab1xl10dw=;3Pq/popjLZn/ItSkcejaOO5ubTl NGLEdNvtL3A/+XdBNLmBVo258bxOyy37baS7MuUBojvfkuPpIkRsbxLaAsUZUXzQb6FnB2reo kgbgVJ88dmlCmJkBYJpbXHnm32X1ESvWO4PBFwDjGNCEH5sqRoe6mM7gPEHMGr8gm+uWS0md/ jpsiGEJVCLrJxlZut7wtyuMjZxNyQ54379QWbZnwNypbPJ2rlXgmDykqdtxHun0LsNbsxeDgM Vt9WSMLqSY//kloyREP546SaWm4kJSNrolDYbyL4etLER3L73pMeKJV8Xfvtq5sPNbCKTqn9U SpQrysv+ZvAVwBmi/iRNrPSW1APsUla1pe4nl9MlR5nWziLn/B940ecfvgHRfM1y1rJouFYUL zdXM8PD5g3PXkWsfj6s6binbgOzPd5wd0/UXN/24eX18YI5xB2eIfVDwdUIq/DiwaOp+Ub7KA y+rf5dLCxvUZxVIvdsNX2rzFWJWAH1rF5V8yHSiOLk6hrnvFMP866HJPkChRDgJ3WDBJ6wVMb 1tqWJq0T7t2J7OXBmTjWZHbk8gm9KsV+42vnb9HjrwOIidMMmcLhagCAl4661LqupGfnmBqbD xDlOWmvzs7ypYOHsBwjmaaW2Q76hic2J2a7p5NNfx4Z2TzVfaBAO7/3RMWAV9W3J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baepyC4HE9Zu7pg3iPhTAJMFWimaxNdVfYdcn BwuE0VnvJrgPIlG+FrfYGMhqsHUAuSHUaxFt5fSaRCNKweOPnenFNLmRRlf3bSXHVAuP86spI z/n+64RQ6+EgcFIS9DKWx3rD/Cx8B6+zXFBnhoHTcShUpNDwajLv2vnS3snnTaAaAlDdQB+2w 71KV/X7cAAIjYtr72vQdBcoM1MhIDhlk/C+vinz0ntzszPqoQKeWJ3nfctPJ+ZwrjLT84uY23 T4iYyVhu53X6rNcpgfwpV61f5IDS7b+kCwOaqRnRc9iPitMlShqlHQTcfmYTRjhMwD62heMC0 sSYkxjNtwN/Bt7HD3jHKlgw0dUrYSu89UuZfopG64w8JIhYGecT/zf4EkZqb9dHvOIY4IVGbC lm1mdlhnPhAzgyATaGIKWFTgnmNtqf+7I1rdZHoFDq9HtNOdS/zxXQyqfbU1yqu9cz3miZmwr SJwJvGL2TOgz9shkRy0YLKBNqDpjYB6H4oWnESbMTkCUBhYGdAM0v3+Gqv9aFjInUiG+h2YVC ogm2ywkRUq3PrzEtA+5uSflVFnuVGO+s8/NJR/axLFa47smlZj8FROvF8QRs52H4/OFngsm28 jLJpGAfOO/Ez3EiXnDL4+DK0byIc4dvMSPF1w9XyZ1jdcpifCGe8TC92gEjuHqEk16T09dIcj JTH7aTlIssHUhGjZ4or+wfgENDq+1X0uAV393cmy49bo47ezjoMjDNiZL65yzHWz1Ex5pSeT2 7Q== Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79151 Cc: 79151@debbugs.gnu.org, Jim Porter X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Daniel Mendler writes: Hi Daniel, >> I also don't remember the reason, why remote file name completion was >> discarded for external command's arguments and pipes. Performance? >> >> If this is what users want, we should get rid of this restriction. > > As I understand bug#65356 the problem was that file completion sets in > in unwanted cases. Back then you pushed the 'pcomplete-remote-file-ignor= e' > workaround with this comment: pcomplete-remote-file-ignore is important in the shell-mode case. We don't want 'cd /sudo::/' commands there :-) > Let's just go with the change to add 'pcomplete-remote-file-ignore' = for=20 > now. I'll have to think more about how Eshell can selectively ignore= =20 > remote files correctly in all cases; there are a bunch of areas wher= e=20 > Eshell could be smarter about completion already, and I have the fee= ling=20 > they'll conflict with each other if we don't plan this out carefully= ... IIRC, this comment was from Jim. I have no personal preference, how Eshell allows or discards remote file name completion. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 04 05:56:15 2025 Received: (at 79151) by debbugs.gnu.org; 4 Aug 2025 09:56:15 +0000 Received: from localhost ([127.0.0.1]:49339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uirvS-00006Z-Uo for submit@debbugs.gnu.org; Mon, 04 Aug 2025 05:56:15 -0400 Received: from server.qxqx.de ([2a01:4f8:c012:9177::1]:43111 helo=mail.qxqx.de) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uirvM-00005u-R5 for 79151@debbugs.gnu.org; Mon, 04 Aug 2025 05:56:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=daniel-mendler.de; s=key; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=tlVpCXKCjLi5IPGr4Jl0ms28y+BTRMnbB8giFqg/3yo=; b=O216E/34bcpKcLXO9cl2rH+1wa nMQwPGlPh/Nar0983FAWZXMA6RBbXy+45gUmosAuIsjZKG0PYY1R3JQwDvggMD3xYH4Q2w2HZOEmE Y9fC2AJ/NqIik/cGC1ENGQqE8NRgGDeiWmAa5YgKj7e7SH0eAGNheFjooqnYqAgboKno=; From: Daniel Mendler To: Michael Albinus Subject: Re: bug#79151: 31.0.50; eshell does not complete filename arguments with tramp In-Reply-To: <87h5yne815.fsf@gmx.de> References: <871ppuq9a0.fsf@daniel-mendler.de> <9a0b51e5-b9e4-e1a6-ad16-8d83a0a2bf3a@gmail.com> <878qk18rh9.fsf@daniel-mendler.de> <87v7n3ed74.fsf@gmx.de> <87tt2na0lq.fsf@daniel-mendler.de> <87h5yne815.fsf@gmx.de> Date: Mon, 04 Aug 2025 11:55:59 +0200 Message-ID: <87jz3j2yxc.fsf@daniel-mendler.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 79151 Cc: 79151@debbugs.gnu.org, Jim Porter X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Michael Albinus writes: > Daniel Mendler writes: > > Hi Daniel, > >>> I also don't remember the reason, why remote file name completion was >>> discarded for external command's arguments and pipes. Performance? >>> >>> If this is what users want, we should get rid of this restriction. >> >> As I understand bug#65356 the problem was that file completion sets in >> in unwanted cases. Back then you pushed the 'pcomplete-remote-file-ignore' >> workaround with this comment: > > pcomplete-remote-file-ignore is important in the shell-mode case. We > don't want 'cd /sudo::/' commands there :-) Yes, in shell-mode the variable pcomplete-remote-file-ignore is set to t, such that remote completion is disabled completely, which is probably the right thing to do. >> Let's just go with the change to add 'pcomplete-remote-file-ignore' for >> now. I'll have to think more about how Eshell can selectively ignore >> remote files correctly in all cases; there are a bunch of areas where >> Eshell could be smarter about completion already, and I have the feeling >> they'll conflict with each other if we don't plan this out carefully... > > IIRC, this comment was from Jim. I have no personal preference, how > Eshell allows or discards remote file name completion. > > Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 07 14:21:45 2025 Received: (at 79151) by debbugs.gnu.org; 7 Aug 2025 18:21:45 +0000 Received: from localhost ([127.0.0.1]:35882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uk5FJ-0005cF-FL for submit@debbugs.gnu.org; Thu, 07 Aug 2025 14:21:45 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:45114) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uk5FH-0005bu-25 for 79151@debbugs.gnu.org; Thu, 07 Aug 2025 14:21:43 -0400 Received: by mail-pj1-x102a.google.com with SMTP id 98e67ed59e1d1-321461ab4efso1253252a91.2 for <79151@debbugs.gnu.org>; Thu, 07 Aug 2025 11:21:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1754590897; x=1755195697; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=qlPyLLYP/m5GDHlyw928UNyfD/xKupNXDVMiXPMrBao=; b=nlbY9yCBeHGDFk1S24KuNlbCHjMroyGg6l+dz3uoTmzD9zoDGG3IPbSPfgDbdKPqsR l5eRlp2NEtfBRKf0bTgD2EjVBo3d3aGObUzvbP1EBA8dypFRRNndw4X58/ciyYVAsZhf g3HNtUfuEDs5N1Fsb1TZ2dJolgh+KFv/uZI8YGIOgsA9oE8oDgtiVJDuCFD8EGL+NXON RGRxshNgnd/WhpPCAfUWLUTkduHjuR99hP2fgQOuX8POjJ3pf8pwjnv/00iFAs9RljD5 2Fv1aEY+ZkmyGzhoq009pTlqtiHIMLZHSnUE4LXHKbsWcuF7cjLk6x3uwws8PRa7MQPW XklA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754590897; x=1755195697; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qlPyLLYP/m5GDHlyw928UNyfD/xKupNXDVMiXPMrBao=; b=YD+8XKbLBegMYGHZklBJ8kP1I6aj5x17KAc3l4917ANfB8HUp1IudeNTI7fQjf+keM dMsfDnh4MrQHCWLoAolpjZOG6r0DezffvTqD6cPgZDVeGzfC91lpizuoLGNioD4IdAMU /acAH7YcKXd8Vg0q98luSJJBpkX+uzKqLJohmjXjsU/DpLF7IQr4j+KNM3Apa+FzST6a PKLjzjC3koRCfaJR+qnx8vPjgVrep0QOGgykUw1j2IQTP/MumSpWNYIpuA0/ywRBIlbG nrb+6ksC5NqMw9djFFPqyHu1d4t1wv3pKTeYb3iAg4XkZTmyDISBA0zW49EdAfKtxtcS E5Mg== X-Gm-Message-State: AOJu0YxiVZtHj6NV08kV1plsNAu6LVE9SrngrY5O1zYU1gS3U9tF9FHs uHablNfj7BVA3tB0WSQG3WBHzyVC+vMWw+0RaxgNCugOTOXy1emEkeRv X-Gm-Gg: ASbGnctLefb3SAVVaxYKHn3pjEDFCh6W1Ca0VsDck4vkPNPCIhU56DRXzA8O4l/XsD7 Z0n6q1fNZGIYzCoTNfIkQf/NsKrsofuK3oyLQPP0CqHyLRvXcjb4R2JuBDDbqN9GheV8RqiYsJV 43/Ye47jntjG+6cmNYIJOTYubHxNRO6zdtiAwYE9th/0pBbe30mvfPFQmvRcWdYOSd0Z7MaJVc0 k4bZIL+fwxWSTVfQwplAX7Baj+6LFGPp2KHZSbat3gKYhTvutA+t/DdZ3uDm4o4GD+QWMjDGhQo mfGzqWwb1aJ5rCeRp2oHEYWYkV85Nlromp8nOHC574PAV/HsvgqDUsUSpHSIuystjgPNTJeMRLv 8oTWcF+dYT2DXdrcAvGGpPKBEsCC1DCk9LWtZSmJX+PYyqursWw/l0qr/wnsilLzZM5pf4Xs+mu M4Gw== X-Google-Smtp-Source: AGHT+IEJT3aKHzppsM0P7EsPBjDxUMaDU80ji/GIG8lFPnVtxotBQpmWZcNC8xHyXCtuJDFTcrwwbQ== X-Received: by 2002:a17:90b:498d:b0:31f:20a:b54c with SMTP id 98e67ed59e1d1-321838a8fe3mr127418a91.0.1754590896830; Thu, 07 Aug 2025 11:21:36 -0700 (PDT) Received: from [192.168.1.2] (syn-076-168-144-128.res.spectrum.com. [76.168.144.128]) by smtp.googlemail.com with ESMTPSA id 98e67ed59e1d1-321612950c7sm6219920a91.31.2025.08.07.11.21.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Aug 2025 11:21:36 -0700 (PDT) Message-ID: <7d209b51-4940-c4ed-151f-06011963069e@gmail.com> Date: Thu, 7 Aug 2025 11:21:35 -0700 MIME-Version: 1.0 Subject: Re: bug#79151: 31.0.50; eshell does not complete filename arguments with tramp Content-Language: en-US To: Daniel Mendler , Michael Albinus References: <871ppuq9a0.fsf@daniel-mendler.de> <9a0b51e5-b9e4-e1a6-ad16-8d83a0a2bf3a@gmail.com> <878qk18rh9.fsf@daniel-mendler.de> <87v7n3ed74.fsf@gmx.de> <87tt2na0lq.fsf@daniel-mendler.de> From: Jim Porter In-Reply-To: <87tt2na0lq.fsf@daniel-mendler.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 79151 Cc: 79151@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 8/4/2025 2:37 AM, Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > As I understand bug#65356 the problem was that file completion sets in > in unwanted cases. Back then you pushed the 'pcomplete-remote-file-ignore' > workaround with this comment: > > Let's just go with the change to add 'pcomplete-remote-file-ignore' for > now. I'll have to think more about how Eshell can selectively ignore > remote files correctly in all cases; there are a bunch of areas where > Eshell could be smarter about completion already, and I have the feeling > they'll conflict with each other if we don't plan this out carefully... > > But unfortunately this breaks useful behavior in many more cases which I > care about more than occasional false completions. For me one of the > selling points of Eshell is that I can seamlessly browse around on > remote hosts via cd. But then file name completion refuses to work. I think the issue there was that we were trying to avoid passing Tramp absolute file names to external commands (which don't understand Tramp syntax). This area is frankly a bit convoluted, since these two commands produce completely different results: $ cd /ssh:somehost:~ $ cat /home/user/somefile.txt $ *cat /home/user/somefile.txt The first "cat" runs 'eshell/cat', which prints the contents of the file on the local host, but the second runs "/usr/bin/cat" on somehost, printing the contents of the file on that remote host. Fixing that issue would make it easier to define proper semantics for how remote file name completion works. I have a patch for this, though I abandoned it since it wasn't a very good way to do things, and haven't gotten far on a better implementation (though I have some notes somewhere about what that implementation would look like). That said, maybe we could come up with a stopgap solution for completion in the meantime...