bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#7546: 23.2; [dired] leading spaces in directory names


From: Ken Brown
Subject: bug#7546: 23.2; [dired] leading spaces in directory names
Date: Fri, 03 Dec 2010 22:29:38 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6

On 12/3/2010 6:16 PM, Glenn Morris wrote:
Ken Brown wrote:

Wouldn't it make more sense to initialize dired-use-ls-dired based on
system-type?

To me, it makes most sense to test what options ls actually supports:

(with-temp-buffer
  (call-process "ls" nil t nil "--help")
  (and (re-search-backward "--dired" nil t) t))

Looks good to me.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]