mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-12 14:30:42 -08:00
Eshell dependencies: Fix recent regressions
* lisp/dired.el (dired-insert-directory): Tweak bug#27817's ugly hack. * lisp/eshell/em-ls.el: Refine 'require's. * lisp/eshell/esh-opt.el: Require esh-util on behalf of its clients.
This commit is contained in:
parent
526ffbad14
commit
e3bd33fb1c
3 changed files with 8 additions and 3 deletions
|
|
@ -1269,8 +1269,8 @@ If HDR is non-nil, insert a header line with the directory name."
|
|||
;; as indicated by `ls-lisp-use-insert-directory-program'.
|
||||
(not (and (featurep 'ls-lisp)
|
||||
(null ls-lisp-use-insert-directory-program)))
|
||||
(not (and (featurep 'eshell)
|
||||
(bound-and-true-p eshell-ls-use-in-dired)))
|
||||
;; FIXME: Big ugly hack for Eshell's eshell-ls-use-in-dired.
|
||||
(not (bound-and-true-p eshell-ls-use-in-dired))
|
||||
(or (file-remote-p dir)
|
||||
(if (eq dired-use-ls-dired 'unspecified)
|
||||
;; Check whether "ls --dired" gives exit code 0, and
|
||||
|
|
|
|||
|
|
@ -29,7 +29,8 @@
|
|||
(require 'cl-lib)
|
||||
(require 'esh-util)
|
||||
(require 'esh-opt)
|
||||
(eval-when-compile (require 'eshell))
|
||||
(require 'esh-proc)
|
||||
(require 'esh-cmd)
|
||||
|
||||
;;;###autoload
|
||||
(progn
|
||||
|
|
|
|||
|
|
@ -33,6 +33,10 @@
|
|||
|
||||
;;; User Functions:
|
||||
|
||||
;; Macro expansion of eshell-eval-using-options refers to eshell-stringify-list
|
||||
;; defined in esh-util.
|
||||
(require 'esh-util)
|
||||
|
||||
(defmacro eshell-eval-using-options (name macro-args options &rest body-forms)
|
||||
"Process NAME's MACRO-ARGS using a set of command line OPTIONS.
|
||||
After doing so, stores settings in local symbols as declared by OPTIONS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue