From: Glenn Morris Date: Fri, 13 Sep 2013 07:10:30 +0000 (-0700) Subject: * lisp/eshell/esh-ext.el (eshell-search-path): Declare. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1647 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2ada368ae92ff7b39e3beef407351fdfd31ae87b;p=emacs.git * lisp/eshell/esh-ext.el (eshell-search-path): Declare. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 74f791837e2..53153b22f4a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2013-09-13 Glenn Morris + * eshell/esh-ext.el (eshell-search-path): Declare. + * eshell/em-prompt.el (eshell/pwd): Autoload it. Otherwise an error occurs if eshell-dirs module not loaded. diff --git a/lisp/eshell/esh-ext.el b/lisp/eshell/esh-ext.el index 8b312a2c25c..e2cca35a267 100644 --- a/lisp/eshell/esh-ext.el +++ b/lisp/eshell/esh-ext.el @@ -92,6 +92,10 @@ since nothing else but Eshell will be able to understand (setq list (cdr list))) file))) +;; This file provides itself then eval-when-compile loads files that require it. +;; This causes spurious "might not be defined at runtime" warnings. +(declare-function eshell-search-path "esh-ext" (name)) + (defcustom eshell-windows-shell-file (if (eshell-under-windows-p) (if (string-match "\\(cmdproxy\\|sh\\)\\.\\(com\\|exe\\)"