From: John Paul Wallington Date: Wed, 14 May 2003 16:20:51 +0000 (+0000) Subject: (insert-directory): Remove --dired switch when X-Git-Tag: ttn-vms-21-2-B4~10162 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d4939c66c230d2c9ab89c9f6f20bef678595508c;p=emacs.git (insert-directory): Remove --dired switch when `ls-lisp-use-insert-directory-program' is nil. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 37bdc38be65..dd1270ab51b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2003-05-14 John Paul Wallington + + * ls-lisp.el (insert-directory): Remove --dired switch when + `ls-lisp-use-insert-directory-program' is nil. + 2003-05-13 Stefan Monnier * textmodes/ispell.el (xemacsp): Remove. Use (featurep 'xemacs). diff --git a/lisp/ls-lisp.el b/lisp/ls-lisp.el index 54c76a9d725..b6621b08566 100644 --- a/lisp/ls-lisp.el +++ b/lisp/ls-lisp.el @@ -216,6 +216,9 @@ that work are: A a c i r S s t u U X g G B C R and F partly." (if handler (funcall handler 'insert-directory file switches wildcard full-directory-p) + ;; Remove --dired switch + (if (string-match "--dired " switches) + (setq switches (replace-match "" nil nil switches))) ;; Convert SWITCHES to a list of characters. (setq switches (delete ?- (append switches nil))) (if wildcard