From 2ada368ae92ff7b39e3beef407351fdfd31ae87b Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Fri, 13 Sep 2013 00:10:30 -0700 Subject: [PATCH] * lisp/eshell/esh-ext.el (eshell-search-path): Declare. --- lisp/ChangeLog | 2 ++ lisp/eshell/esh-ext.el | 4 ++++ 2 files changed, 6 insertions(+) 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\\)" -- 2.11.4.GIT