GNU bug report logs - #10607
Handle all the escapes used by ls -b

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Thu, 26 Jan 2012 06:50:01 UTC

Severity: minor

Tags: confirmed

Full log


Message #12 received at 10607 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Charles El Hourani <charlie.eh <at> gmail.com>
Cc: 10607 <at> debbugs.gnu.org
Subject: Re: bug#10607: bug-10607
Date: Wed, 05 Apr 2023 07:45:57 +0300
> From: Charles El Hourani <charlie.eh <at> 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 <at> gmail.com>
> 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.




This bug report was last modified 2 years and 68 days ago.

Previous Next


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