aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Wiegley2005-11-01 07:07:05 +0000
committerJohn Wiegley2005-11-01 07:07:05 +0000
commit73f99a662dcefaf4687b37d17a501f24569e573c (patch)
tree94f41706fa05280e4a54ba5c0bf30d7c6322ab81
parent669dc0a115c603f247e6724ff83e435919f7e3c6 (diff)
downloademacs-73f99a662dcefaf4687b37d17a501f24569e573c.tar.gz
emacs-73f99a662dcefaf4687b37d17a501f24569e573c.zip
(eshell-do-ls): Added no-op support for --dired flag, to prevent
Eshell from using the system ls when `eshell-ls-insert-directory' is in used. (eshell-ls-insert-directory): Disable font-lock in directory buffer so that Eshell's own fontification is seen. This broke recently due to changes in font-lock, so this goes back to version 21 behavior.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/eshell/em-ls.el10
2 files changed, 15 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6745905d5de..771eabab74e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,13 @@
12005-11-01 John Wiegley <johnw@newartisans.com> 12005-11-01 John Wiegley <johnw@newartisans.com>
2 2
3 * net/eudcb-mab.el (eudc-mab-query-internal): Added backend
4 support for OS/X's AddressBook, by calling out to the open source
5 program "contacts" (installable through Fink).
6
7 * net/eudc.el (eudc-expand-inline): If the
8 `eudc-multiple-match-handling-method' is set to `all', delete the
9 query string before inserting the query result.
10
3 * eshell/em-ls.el (eshell-do-ls): Added no-op support for --dired 11 * eshell/em-ls.el (eshell-do-ls): Added no-op support for --dired
4 flag, to prevent Eshell from using the system ls when 12 flag, to prevent Eshell from using the system ls when
5 `eshell-ls-insert-directory' is in used. 13 `eshell-ls-insert-directory' is in used.
diff --git a/lisp/eshell/em-ls.el b/lisp/eshell/em-ls.el
index a42544bf985..24b61aa492f 100644
--- a/lisp/eshell/em-ls.el
+++ b/lisp/eshell/em-ls.el
@@ -279,7 +279,8 @@ instead."
279 (if (stringp switches) 279 (if (stringp switches)
280 (setq switches (split-string switches))) 280 (setq switches (split-string switches)))
281 (let (eshell-current-handles 281 (let (eshell-current-handles
282 eshell-current-subjob-p) 282 eshell-current-subjob-p
283 font-lock-mode)
283 ;; use the fancy highlighting in `eshell-ls' rather than font-lock 284 ;; use the fancy highlighting in `eshell-ls' rather than font-lock
284 (when (and eshell-ls-use-colors 285 (when (and eshell-ls-use-colors
285 (featurep 'font-lock)) 286 (featurep 'font-lock))
@@ -320,7 +321,8 @@ instead."
320 (defvar show-recursive) 321 (defvar show-recursive)
321 (defvar show-size) 322 (defvar show-size)
322 (defvar sort-method) 323 (defvar sort-method)
323 (defvar ange-cache)) 324 (defvar ange-cache)
325 (defvar dired-flag))
324 326
325(defun eshell-do-ls (&rest args) 327(defun eshell-do-ls (&rest args)
326 "Implementation of \"ls\" in Lisp, passing ARGS." 328 "Implementation of \"ls\" in Lisp, passing ARGS."
@@ -333,7 +335,7 @@ instead."
333 `((?a "all" nil show-all 335 `((?a "all" nil show-all
334 "show all files in directory") 336 "show all files in directory")
335 (?c nil by-ctime sort-method 337 (?c nil by-ctime sort-method
336 "sort by modification time") 338 "sort by last status change time")
337 (?d "directory" nil dir-literal 339 (?d "directory" nil dir-literal
338 "list directory entries instead of contents") 340 "list directory entries instead of contents")
339 (?k "kilobytes" 1024 block-size 341 (?k "kilobytes" 1024 block-size
@@ -372,6 +374,8 @@ instead."
372 "sort alphabetically by entry extension") 374 "sort alphabetically by entry extension")
373 (?1 nil single-column listing-style 375 (?1 nil single-column listing-style
374 "list one file per line") 376 "list one file per line")
377 (nil "dired" nil dired-flag
378 "Here for compatibility with GNU ls.")
375 (nil "help" nil nil 379 (nil "help" nil nil
376 "show this usage display") 380 "show this usage display")
377 :external "ls" 381 :external "ls"