diff options
| author | John Wiegley | 2001-10-17 02:00:00 +0000 |
|---|---|---|
| committer | John Wiegley | 2001-10-17 02:00:00 +0000 |
| commit | ef94bd99e4c9df9002133538e68667ef73edfa66 (patch) | |
| tree | 163375c38c3ea0062f367d816e28d6e75c2c2d8a | |
| parent | af15ae259ace4fb06ae57e195509ba2035719277 (diff) | |
| download | emacs-ef94bd99e4c9df9002133538e68667ef73edfa66.tar.gz emacs-ef94bd99e4c9df9002133538e68667ef73edfa66.zip | |
(eshell-ls-dired-initial-args): Added an extra customization variable,
to differentiate ls-in-dired from regular uses of ls.
| -rw-r--r-- | lisp/eshell/em-ls.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/eshell/em-ls.el b/lisp/eshell/em-ls.el index 199c176b801..00b426bac4c 100644 --- a/lisp/eshell/em-ls.el +++ b/lisp/eshell/em-ls.el | |||
| @@ -63,6 +63,12 @@ This is useful for enabling human-readable format (-h), for example." | |||
| 63 | :type '(repeat :tag "Arguments" string) | 63 | :type '(repeat :tag "Arguments" string) |
| 64 | :group 'eshell-ls) | 64 | :group 'eshell-ls) |
| 65 | 65 | ||
| 66 | (defcustom eshell-ls-dired-initial-args nil | ||
| 67 | "*If non-nil, args is included before any call to `ls' in dired. | ||
| 68 | This is useful for enabling human-readable format (-h), for example." | ||
| 69 | :type '(repeat :tag "Arguments" string) | ||
| 70 | :group 'eshell-ls) | ||
| 71 | |||
| 66 | (defcustom eshell-ls-use-in-dired nil | 72 | (defcustom eshell-ls-use-in-dired nil |
| 67 | "*If non-nil, use `eshell-ls' to read directories in dired." | 73 | "*If non-nil, use `eshell-ls' to read directories in dired." |
| 68 | :set (lambda (symbol value) | 74 | :set (lambda (symbol value) |
| @@ -263,7 +269,7 @@ instead." | |||
| 263 | (let ((insert-func 'insert) | 269 | (let ((insert-func 'insert) |
| 264 | (error-func 'insert) | 270 | (error-func 'insert) |
| 265 | (flush-func 'ignore) | 271 | (flush-func 'ignore) |
| 266 | eshell-ls-initial-args) | 272 | eshell-ls-dired-initial-args) |
| 267 | (eshell-do-ls (append switches (list file)))))))) | 273 | (eshell-do-ls (append switches (list file)))))))) |
| 268 | 274 | ||
| 269 | (defsubst eshell/ls (&rest args) | 275 | (defsubst eshell/ls (&rest args) |