From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: merlyn@stonehenge.com (Randal L. Schwartz) Newsgroups: gmane.emacs.devel Subject: dired-use-ls-dired docstring still not quite right Date: Tue, 26 Jul 2011 15:45:00 -0700 Organization: Stonehenge Consulting Services; Portland, Oregon, USA Message-ID: <86aac0vez7.fsf@red.stonehenge.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1311720334 10442 80.91.229.12 (26 Jul 2011 22:45:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Jul 2011 22:45:34 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 27 00:45:26 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QlqNO-0005fv-LX for ged-emacs-devel@m.gmane.org; Wed, 27 Jul 2011 00:45:22 +0200 Original-Received: from localhost ([::1]:53461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlqNO-0006b3-88 for ged-emacs-devel@m.gmane.org; Tue, 26 Jul 2011 18:45:22 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlqNL-0006ap-FZ for emacs-devel@gnu.org; Tue, 26 Jul 2011 18:45:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlqNK-0000cj-1e for emacs-devel@gnu.org; Tue, 26 Jul 2011 18:45:19 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:42618) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlqNJ-0000ce-RR for emacs-devel@gnu.org; Tue, 26 Jul 2011 18:45:18 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QlqNI-0005dl-BC for emacs-devel@gnu.org; Wed, 27 Jul 2011 00:45:16 +0200 Original-Received: from red.stonehenge.com ([208.79.95.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Jul 2011 00:45:16 +0200 Original-Received: from merlyn by red.stonehenge.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Jul 2011 00:45:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: red.stonehenge.com x-mayan-date: Long count = 12.19.18.10.6; tzolkin = 10 Cimi; haab = 14 Xul User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) Cancel-Lock: sha1:radpxAIVSNtnWcTtBStowfScC8Y= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:142329 Archived-At: The docstring for dired-use-ls-direcd includes: Note that if you set this option to nil, either through choice or because your "ls" program does not support "--dired", Dired will fail to parse some "unusual" file names, e.g. those with leading spaces. You might want to install ls from GNU Coreutils, which does support this option. Alternatively, you might want to use Emacs's own emulation of "ls", by using: (setq ls-lisp-use-insert-directory-program nil) (require 'ls-lisp) This is used by default on MS Windows, which does not have an "ls" program. Note that `ls-lisp' does not support as many options as GNU ls, though. For more details, see Info node `(emacs)ls in Lisp'. I don't wish to force the loading of ls-lisp in my .emacs (it's already slow enough), so there should be a hook in dired to load it when needed. Can I get the authors of dired to consider that when dired-use-ls-dired is already nil, to go ahead and load ls-lisp so that it works properly? Or is there something I can add in .emacs that says "load ls-lisp when dired is needed" directly? Actually, it should probably be loaded whenever anyone wants to call ls and try to pass it --dired. Can that be done instead? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion