From unknown Fri Jun 13 09:57:14 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#10607 <10607@debbugs.gnu.org> To: bug#10607 <10607@debbugs.gnu.org> Subject: Status: Handle all the escapes used by ls -b Reply-To: bug#10607 <10607@debbugs.gnu.org> Date: Fri, 13 Jun 2025 16:57:14 +0000 retitle 10607 Handle all the escapes used by ls -b reassign 10607 emacs submitter 10607 Glenn Morris severity 10607 minor tag 10607 confirmed thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 26 01:49:34 2012 Received: (at quiet) by debbugs.gnu.org; 26 Jan 2012 06:49:34 +0000 Received: from localhost ([127.0.0.1]:44877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RqJ9H-0007Fp-NZ for submit@debbugs.gnu.org; Thu, 26 Jan 2012 01:49:33 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:33096 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RqJ9G-0007Fi-4o for quiet@debbugs.gnu.org; Thu, 26 Jan 2012 01:49:30 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RqJ8l-0001o9-KS; Thu, 26 Jan 2012 01:48:59 -0500 From: Glenn Morris To: quiet@debbugs.gnu.org Subject: Handle all the escapes used by ls -b X-Spook: Medco Fedayeen Geraldton military Sundevil Israel X-Ran: kQz02Ce(:4c6GaYp.m.pCe^:Fd_OpE-oYC\(G*Z~q+_Xjz43JUi(J7T&{vi.MMuP6Hc1_4 X-Hue: green X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 26 Jan 2012 01:48:59 -0500 Message-ID: <6o62fzm010.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: quiet X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Package: emacs Severity: minor Emacs only partially handles (setq dired-listing-switches "-alb") at the moment. Ideally, should add handling for all possible file-name characters (eg  = \a, etc). dired-goto-file needs this, possibly other places. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 20 12:41:34 2021 Received: (at 10607) by debbugs.gnu.org; 20 Jan 2021 17:41:34 +0000 Received: from localhost ([127.0.0.1]:56235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2HU6-0007Gu-6h for submit@debbugs.gnu.org; Wed, 20 Jan 2021 12:41:34 -0500 Received: from quimby.gnus.org ([95.216.78.240]:47504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2HU3-0007Gc-To for 10607@debbugs.gnu.org; Wed, 20 Jan 2021 12:41:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References: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=Z1hg/xZtjHMGzjBx8i/bFxTP7J14rMpMHyhSwdU2Qrw=; b=hNpdKEq+ENjDmLwch6pebbYUE7 8fj4iIDlhP4XjrNIRi8hZ1HmemqyXxZTZxN8owxlbXpG/a8AWjkP7Bl20WgCQ1PmhNF2GLJq6lYPp LWRYeqdssLBIUI/2Qi2/2XuEsgijzSpr1ikjrBIaTUzK0caNeCUvoXmbiJuIgky8graE=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l2HTs-0001zz-Pu; Wed, 20 Jan 2021 18:41:25 +0100 From: Lars Ingebrigtsen To: Glenn Morris Subject: Re: bug#10607: Handle all the escapes used by ls -b References: <6o62fzm010.fsf@fencepost.gnu.org> X-Now-Playing: Joe Jackson's _Live 1980-86 (2)_: "Memphis" Date: Wed, 20 Jan 2021 18:41:19 +0100 In-Reply-To: <6o62fzm010.fsf@fencepost.gnu.org> (Glenn Morris's message of "Thu, 26 Jan 2012 01:48:59 -0500") Message-ID: <87pn1zmrpc.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Glenn Morris writes: > Emacs only partially handles (setq dired-listing-switches "-alb") at the > moment. Ideally, should add handling for all possible file-name > characters (eg  = \a, etc). dired-goto-file needs this, [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 10607 Cc: 10607@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 (-) Glenn Morris writes: > Emacs only partially handles (setq dired-listing-switches "-alb") at the > moment. Ideally, should add handling for all possible file-name > characters (eg  = \a, etc). dired-goto-file needs this, possibly other > places. This problem is still present in Emacs 28. Case to reproduce: (progn (setq dired-listing-switches "-alb") (shell-command "touch /tmp/a\ab") (dired "/tmp/") (dired-goto-file "/tmp/a\ab")) This will not go to the a^Gb file. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 20 12:41:37 2021 Received: (at control) by debbugs.gnu.org; 20 Jan 2021 17:41:37 +0000 Received: from localhost ([127.0.0.1]:56238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2HU9-0007H9-Fb for submit@debbugs.gnu.org; Wed, 20 Jan 2021 12:41:37 -0500 Received: from quimby.gnus.org ([95.216.78.240]:47518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2HU8-0007Gj-75 for control@debbugs.gnu.org; Wed, 20 Jan 2021 12:41:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type: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=Gmtxq6hS46O7eUqJA2mMYPCfi8aDpJaSle1/B8GfXm8=; b=KLTyER1lTdfTOIGMxQ+/x9HWSR AhEjlTa5xy5REwpjzHibPiAbQ6VfhQsILNnu42D6TKHEdBZ0YXJww5AbrM06AIwKfG4lTvIS166Jh 8NZKJelcbBbWjkVPCj25U5aFyJ5kJkaVf8o0AbUdvS0GZvmUFVpQrfuQzp5sC6dT2l2Q=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l2HU0-000206-MC for control@debbugs.gnu.org; Wed, 20 Jan 2021 18:41:30 +0100 Date: Wed, 20 Jan 2021 18:41:27 +0100 Message-Id: <87o8hjmrp4.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #10607 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 10607 + confirmed quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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 (-) tags 10607 + confirmed quit From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 04 16:51:30 2023 Received: (at 10607) by debbugs.gnu.org; 4 Apr 2023 20:51:30 +0000 Received: from localhost ([127.0.0.1]:50373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjncn-00087k-UN for submit@debbugs.gnu.org; Tue, 04 Apr 2023 16:51:30 -0400 Received: from mail-ed1-f52.google.com ([209.85.208.52]:35809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjlm4-0004SF-Ge for 10607@debbugs.gnu.org; Tue, 04 Apr 2023 14:52:57 -0400 Received: by mail-ed1-f52.google.com with SMTP id y4so134643028edo.2 for <10607@debbugs.gnu.org>; Tue, 04 Apr 2023 11:52:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680634370; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=w9Io4XOXe+x/tZ+REiF5cRZhLDF34NgPLTh2lcbNukc=; b=Uwee7KnTdwxSCJaCNLHOyakuAt35cXrsmwUIZjJe/KB3H9epJErSL40UHeQJfrX8By xHbJSdMOm5sfKlIyHLQY6CQqH7+sSo8d7WNgBOr7M8mUtg5Hj70UivquLW+mPJi/P90Y XtcUddcp8k2jIpqEf6KDzv84b/mFeqy7mPT5iPAZrWPXiv//Y0wy7muYlgeN0jOtZROS tLQnJrM6FAkLCJRS6MCV8HhEMJxqgaXA4BQw7pcsDjbXycxOVit4yBuOJxv0DduGxttF gpbXoazQz9wjN3Gz7yA2C69XB0+nTFMy065pk0PYH0f6GwQ0y5eE8VTYuGuS0YDFKzKp xy6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680634370; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=w9Io4XOXe+x/tZ+REiF5cRZhLDF34NgPLTh2lcbNukc=; b=wUlOgnm3wpTd5rcHTWAl9mvahcSVqrP6h0qDAMMjb+os53ZIy2JcHmxUJtIRk7cYXx BPX2OerT+7nvq1zDEsMrfVu9EkCE6ILchI/23RVnMiIGS5pQbtZp5UXaIF8rA4niYUFZ rzIOQk+0xBT/FeCBwHa+RKVPTyzK8md/XCyynMjeE3KoMkh8r3DQN/J/j+SqKt7p4fsy VxyiE70QRZPhQxpcfjfSJa8XKsmDuKSBBYERvjiHOGMXTVjV9swQVHtMJLiJ2Wg8QnLJ XrUi2Kr/3XZLXGSQNAftHQiqyIna/hcyh5LtNQCWHV5njBzWnyoOeW18Z3arc9wTUOrA frHg== X-Gm-Message-State: AAQBX9c1m7BMLSsZsPUYx1SxKnby8VvpgfGVhBSxeCJZeyakP743EpEW RNEhaCnvmkaTovoLFsAjj3mDTF9xT/D8EyMzuwLK2rKV X-Google-Smtp-Source: AKy350YdBh2nhJisQaDBEUGmf9KVMtU57ea7Msj+zjRuSru03WMdrLTCGwXqAmIaW4ML/RbMwOsnhaFiSUOvwi8yvxA= X-Received: by 2002:a17:906:73d8:b0:939:a51a:dc30 with SMTP id n24-20020a17090673d800b00939a51adc30mr248325ejl.2.1680634370170; Tue, 04 Apr 2023 11:52:50 -0700 (PDT) MIME-Version: 1.0 From: Charles El Hourani Date: Tue, 4 Apr 2023 21:52:39 +0300 Message-ID: Subject: bug-10607 To: 10607@debbugs.gnu.org Content-Type: multipart/mixed; boundary="000000000000a1dacd05f8872e84" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 10607 X-Mailman-Approved-At: Tue, 04 Apr 2023 16:51:28 -0400 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 (-) --000000000000a1dacd05f8872e84 Content-Type: multipart/alternative; boundary="000000000000a1dac905f8872e82" --000000000000a1dac905f8872e82 Content-Type: text/plain; charset="UTF-8" Here is a way to solve the issue by calling `ls` directly, without re-implementing the "-b" functionality of ls in elisp. --000000000000a1dac905f8872e82 Content-Type: text/html; charset="UTF-8"
Here is a way to solve the issue by calling `ls` directly, without re-implementing the "-b" functionality of ls in elisp.
--000000000000a1dac905f8872e82-- --000000000000a1dacd05f8872e84 Content-Type: text/x-patch; charset="ISO-8859-1"; name="0001-Fix-dired-goto-file-when-b-is-provided-to-ls-bug-106.patch" Content-Disposition: attachment; filename="0001-Fix-dired-goto-file-when-b-is-provided-to-ls-bug-106.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lg2lykqs0 RnJvbSAyMjk2MmZmZDg0MzcwYWMwN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LWdv dG8tZmlsZSBwcmVmaXhlZC1maWxlbmFtZSkKKyAgICAgICAgICAod2hlbiAobm90IChmZWF0dXJl cCAnbHMtbGlzcCkpCisgICAgICAgICAgICAoc2hvdWxkIChlcXVhbCAoZGlyZWQtZmlsZS1uYW1l LWF0LXBvaW50KQorICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJlZml4ZWQtZmlsZW5hbWUp KSkKKyAgICAgICAgICAoZGlyZWQtZ290by1maWxlIHJlZ3VsYXItZmlsZW5hbWUpCisgICAgICAg ICAgKHNob3VsZCAoZXF1YWwgKGRpcmVkLWZpbGUtbmFtZS1hdC1wb2ludCkKKyAgICAgICAgICAg ICAgICAgICAgICAgICByZWd1bGFyLWZpbGVuYW1lKSkpCisgICAgICAoZG9saXN0IChidWYgYnVm ZmVycykKKyAgICAgICAgKHdoZW4gKGJ1ZmZlci1saXZlLXAgYnVmKSAoa2lsbC1idWZmZXIgYnVm KSkpCisgICAgICAoZGVsZXRlLWZpbGUgcHJlZml4ZWQtZmlsZW5hbWUpCisgICAgICAoZGVsZXRl LWZpbGUgcmVndWxhci1maWxlbmFtZSkpKSkKKwogKGVydC1kZWZ0ZXN0IGRpcmVkLXRlc3QtYnVn MjI2OTQgKCkKICAgIlRlc3QgZm9yIGh0dHBzOi8vZGViYnVncy5nbnUub3JnLzIyNjk0IC4iCiAg IChsZXQqICgoZGlyICAgICAgIChleHBhbmQtZmlsZS1uYW1lICJidWcyMjY5NCIgZGVmYXVsdC1k aXJlY3RvcnkpKQotLSAKMi4zNC4xCgo= --000000000000a1dacd05f8872e84-- From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 05 00:45:42 2023 Received: (at 10607) by debbugs.gnu.org; 5 Apr 2023 04:45:42 +0000 Received: from localhost ([127.0.0.1]:50620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjv1h-00051n-Nu for submit@debbugs.gnu.org; Wed, 05 Apr 2023 00:45:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjv1g-00051Z-1m for 10607@debbugs.gnu.org; Wed, 05 Apr 2023 00:45:41 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pjv1a-0004Br-JY; Wed, 05 Apr 2023 00:45:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=39cV781s6DXmfTxkyaIL1fbb98E/CCYnl9koTXwJmQ4=; b=XRNs0ObuNmVN zdxuweTCWSSCfVKlI4VCO5IIhd3UlLz7HwCpPtUkNfefheCOo0vusY1Er9dEuo7TbAW40hQtZYS9U 4nUzbpZh3Iqbh5M+8PoPLfURN8Fv7WRZLnhh+BeQZWOMz+PfeLaXd7vRz0jxkl470JIz2ExETT6xp FvNmxfTQEAUDmiotGskm5VjCzHt1iFtJLVwth7X9o2q6MnkkVciPZ+TQ73k0Ht9pKA7TybetRPx45 rxZ5tesglFKKmzi91hXVk5CcT55ednc0B8MO7r0ROOQeMTPzdF9RJ31wja+U+Ci/cE2EnjPAdkR/U GPTh/VkqauQVqUkBHGZtlQ==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pjv1Y-0000hW-BP; Wed, 05 Apr 2023 00:45:34 -0400 Date: Wed, 05 Apr 2023 07:45:57 +0300 Message-Id: <837curszqy.fsf@gnu.org> From: Eli Zaretskii To: Charles El Hourani In-Reply-To: (message from Charles El Hourani on Tue, 4 Apr 2023 21:52:39 +0300) Subject: Re: bug#10607: bug-10607 References: <6o62fzm010.fsf@fencepost.gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 10607 Cc: 10607@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: -3.3 (---) > From: Charles El Hourani > Date: Tue, 4 Apr 2023 21:52:39 +0300 > > Here is a way to solve the issue by calling `ls` directly, without re-implementing the "-b" functionality of ls in > elisp. > > From 22962ffd84370ac05017ed05cca88286d010aa0e Mon Sep 17 00:00:00 2001 > From: Charlie El Hourani > Date: Tue, 4 Apr 2023 21:26:07 +0300 > Subject: [PATCH] Fix dired goto file when -b is provided to ls (bug#10607) > > This fixes the goto file in dired mode for: > - files containing a control character > - and when dired uses ls with the "-b" flag > > The goto file function calls 'ls' to give it the escaped name. Thanks, but is it really a good idea to invoke a program each time we move in Dired? dired-goto-file is a function that is used very frequently. In any case, calling literally "ls" is not TRT, IMO, since the user could have modified the value of insert-directory-program. From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 06 12:46:08 2023 Received: (at 10607) by debbugs.gnu.org; 6 Apr 2023 16:46:08 +0000 Received: from localhost ([127.0.0.1]:54902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkSkR-0002HS-RY for submit@debbugs.gnu.org; Thu, 06 Apr 2023 12:46:08 -0400 Received: from mail-ej1-f53.google.com ([209.85.218.53]:36511) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkSkO-0002GX-5J for 10607@debbugs.gnu.org; Thu, 06 Apr 2023 12:46:06 -0400 Received: by mail-ej1-f53.google.com with SMTP id jw24so2873045ejc.3 for <10607@debbugs.gnu.org>; Thu, 06 Apr 2023 09:46:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680799558; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=QiAl6Ch0KOiIEh1Fy2DsgpaNlC76KFCqH8xdLQ3jL9U=; b=K7aIGl0EwoLox1CqDriphUD2EZlm1dV8HxgVE/WrGC1mADj3pCCc2ENNra7hqUfdAX 38x9U2sbn7/gKz0PWoXOTW65F/DtzJh0hevNSLJy2dGO6dZSUGQ9pUexgKosIqgeXF4T lSdyhL+ezT/uDsRb8VqIBY8CgXBtzG9h2gyvpTLF2wLr0NiXs5vsY6GpfacucbU+31Np nQPt1oabETR+csEOLadsphb4ssvXOlGu6HWgpFLf/+QcsdR7rUCsapkBYcaXZG2MOU3h x/Ma8B/tAxpAKlN5d62ic/8m0reWbektIpu3GS2rQWGukMCBjPPPuwTn3r3PEmYv6jMJ d+ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680799558; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QiAl6Ch0KOiIEh1Fy2DsgpaNlC76KFCqH8xdLQ3jL9U=; b=ijatRExjS6220uS7U3JEImps9LKmU0QtmpaIcCEmYPFWlVswbXtBpKyIbH/QVmOUFh LCmVMdJFSbVQFjZgxXoI5i/oWcgQMhgo4ZjocBhK8h42m6g906PfnFyx15dyBaYlNwpC 2wdZz9LrxVGu26rT/giOrO1aa0vOkAhPy+qJnRad8K7AP0t69U5EefALPyB1EpVwRUaF tKr482K707Dr7L3uAELL+ZwmhBCE9x8VZkJAbCclcWbgx21bxa2bM5kF/opO9NiGnGIE c5APnqcXrUrSLEgeDuAGIXkN+0g9PpSy9ArKw4qI10lf2BDeF9CwnukPPV/uXozB3vpc +wWA== X-Gm-Message-State: AAQBX9fYJMvA+lyyHXxTY/djbAB0HRJzo7ADLg5krLMLb1mk5JgN/o5X 1KI3/AFhA1PN5FcvSyjW7rmFdhDLT21D0qALaBTvkMSGSCaGZA== X-Google-Smtp-Source: AKy350Z00yktIIF0fdm77wFmUvWVAm9hpwqvKJG6jyZOzONT6iYwzt/0frdRpdNDLaSs2dGre/eEHaa+vniMgV2Vs6c= X-Received: by 2002:a17:906:80cf:b0:92f:fc27:8ea0 with SMTP id a15-20020a17090680cf00b0092ffc278ea0mr3639599ejx.9.1680799557924; Thu, 06 Apr 2023 09:45:57 -0700 (PDT) MIME-Version: 1.0 References: <6o62fzm010.fsf@fencepost.gnu.org> <837curszqy.fsf@gnu.org> In-Reply-To: <837curszqy.fsf@gnu.org> From: Charles El Hourani Date: Thu, 6 Apr 2023 12:45:46 -0400 Message-ID: Subject: Re: bug#10607: bug-10607 To: 10607@debbugs.gnu.org Content-Type: multipart/alternative; boundary="00000000000096b95505f8ada422" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 10607 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 (-) --00000000000096b95505f8ada422 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Practically, the concern I see in this additional `ls` call here is a slowdown when dired is used for remote locations. It is an added delay to the delay already incurred with read-file-name when called interactively. On that note, dired-goto-file could just use the files already inserted in the buffer to provide options to the user to pick from. That could obviate the need to convert the read-file-name choice to what dired originally got from the insert-directory-program. Listing the missing control characters is another option, but placing this conversion in dired is making it more complex when the insert-directory-program like "ls" is already handling it. We could call here insert-directory-program instead of "ls", unless the escape option is not supported in this program. I don't know how we can find that out. On Wed, Apr 5, 2023 at 12:45=E2=80=AFAM Eli Zaretskii wrote: > > From: Charles El Hourani > > Date: Tue, 4 Apr 2023 21:52:39 +0300 > > > > Here is a way to solve the issue by calling `ls` directly, without > re-implementing the "-b" functionality of ls in > > elisp. > > > > From 22962ffd84370ac05017ed05cca88286d010aa0e Mon Sep 17 00:00:00 2001 > > From: Charlie El Hourani > > Date: Tue, 4 Apr 2023 21:26:07 +0300 > > Subject: [PATCH] Fix dired goto file when -b is provided to ls > (bug#10607) > > > > This fixes the goto file in dired mode for: > > - files containing a control character > > - and when dired uses ls with the "-b" flag > > > > The goto file function calls 'ls' to give it the escaped name. > > Thanks, but is it really a good idea to invoke a program each time we > move in Dired? dired-goto-file is a function that is used very > frequently. > > In any case, calling literally "ls" is not TRT, IMO, since the user > could have modified the value of insert-directory-program. > --00000000000096b95505f8ada422 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Practically, the concern I see in this additional `ls` cal= l here is a slowdown when dired is used for remote locations. It is an adde= d delay to the delay already incurred with read-file-name when called inter= actively.

On that note, dired-goto-file could just use the files alr= eady inserted in the buffer to provide options to the user to pick from. Th= at could obviate the need to convert the read-file-name choice to what dire= d originally got from the insert-directory-program.

Listing the miss= ing control characters is another option, but placing this conversion in di= red is making it more complex when the insert-directory-program like "= ls" is already handling it.

We could call here insert-directory= -program instead of "ls", unless the escape option is not support= ed in this program. I don't know how we can find that out.
On Wed, A= pr 5, 2023 at 12:45=E2=80=AFAM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Charles El Hourani <charlie.eh@gmail.com>
> Date: Tue, 4 Apr 2023 21:52:39 +0300
>
> Here is a way to solve the issue by calling `ls` directly, without re-= implementing the "-b" functionality of ls in
> elisp.
>
> From 22962ffd84370ac05017ed05cca88286d010aa0e Mon Sep 17 00:00:00 2001=
> From: Charlie El Hourani <charlie.eh@gmail.com>
> Date: Tue, 4 Apr 2023 21:26:07 +0300
> Subject: [PATCH] Fix dired goto file when -b is provided to ls (bug#10= 607)
>
> This fixes the goto file in dired mode for:
> - files containing a control character
> - and when dired uses ls with the "-b" flag
>
> The goto file function calls 'ls' to give it the escaped name.=

Thanks, but is it really a good idea to invoke a program each time we
move in Dired?=C2=A0 dired-goto-file is a function that is used very
frequently.

In any case, calling literally "ls" is not TRT, IMO, since the us= er
could have modified the value of insert-directory-program.
--00000000000096b95505f8ada422--