* eshell/esh-util.el (ange-cache): Move declaration earlier.
authorGlenn Morris <rgm@gnu.org>
Fri, 13 Sep 2013 07:12:44 +0000 (00:12 -0700)
committerGlenn Morris <rgm@gnu.org>
Fri, 13 Sep 2013 07:12:44 +0000 (00:12 -0700)
lisp/ChangeLog
lisp/eshell/esh-util.el

index 53153b2..014b487 100644 (file)
@@ -1,5 +1,7 @@
 2013-09-13  Glenn Morris  <rgm@gnu.org>
 
+       * eshell/esh-util.el (ange-cache): Move declaration earlier.
+
        * eshell/esh-ext.el (eshell-search-path): Declare.
 
        * eshell/em-prompt.el (eshell/pwd): Autoload it.
index cac46ea..5fa591a 100644 (file)
@@ -562,6 +562,8 @@ Unless optional argument INPLACE is non-nil, return a new string."
          (substring string 0 sublen)
        string)))
 
+(defvar ange-cache)
+
 (and (featurep 'xemacs)
      (not (fboundp 'directory-files-and-attributes))
      (defun directory-files-and-attributes (directory &optional full match nosort id-format)
@@ -579,8 +581,6 @@ If NOSORT is non-nil, the list is not sorted--its order is unpredictable.
          (cons file (eshell-file-attributes (expand-file-name file directory)))))
        (directory-files directory full match nosort)))))
 
-(defvar ange-cache)
-
 (defun eshell-directory-files-and-attributes (dir &optional full match nosort id-format)
   "Make sure to use the handler for `directory-file-and-attributes'."
   (let* ((dir (expand-file-name dir)))