changeset 102227:f750e6eefe19

(eshell-parse-ange-ls): Define `name' before potential use.
author Glenn Morris <rgm@gnu.org>
date Tue, 24 Feb 2009 03:30:46 +0000
parents d8af6ef02f83
children f51bb75d96dc
files lisp/eshell/esh-util.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/eshell/esh-util.el	Tue Feb 24 02:51:32 2009 +0000
+++ b/lisp/eshell/esh-util.el	Tue Feb 24 03:30:46 2009 +0000
@@ -270,6 +270,7 @@
       (setq text (replace-match " " t t text)))
     text))
 
+;; FIXME this is just dolist.
 (defmacro eshell-for (for-var for-list &rest forms)
   "Iterate through a list"
   `(let ((list-iter ,for-list))
@@ -649,6 +650,7 @@
 	       (user (match-string 3))
 	       (group (match-string 4))
 	       (size (string-to-number (match-string 5)))
+	       (name (ange-ftp-parse-filename))
 	       (mtime
 		(if (fboundp 'parse-time-string)
 		    (let ((moment (parse-time-string
@@ -661,7 +663,6 @@
 			(setcar (nthcdr 2 moment) 0))
 		      (apply 'encode-time moment))
 		  (ange-ftp-file-modtime (expand-file-name name dir))))
-	       (name (ange-ftp-parse-filename))
 	       symlink)
 	  (if (string-match "\\(.+\\) -> \\(.+\\)" name)
 	      (setq symlink (match-string 2 name)