diff options
| author | Glenn Morris | 2011-03-04 19:53:41 -0800 |
|---|---|---|
| committer | Glenn Morris | 2011-03-04 19:53:41 -0800 |
| commit | a9eeff78d5bdcb9e03055376705e8f31fe145b79 (patch) | |
| tree | d1324a268a41de5545d6d4f16fc89ab223e341e3 /lisp/eshell/esh-cmd.el | |
| parent | 85a55d3871ce4efbde1666bd48b4fca1c638ee99 (diff) | |
| download | emacs-a9eeff78d5bdcb9e03055376705e8f31fe145b79.tar.gz emacs-a9eeff78d5bdcb9e03055376705e8f31fe145b79.zip | |
Make eshell-for obsolete (replaced by dolist)
* eshell/esh-util.el (eshell-for): Make it obsolete.
* eshell/em-alias.el (eshell/alias, eshell-alias-completions):
* eshell/em-dirs.el (eshell-save-some-last-dir):
* eshell/em-hist.el (eshell-save-some-history, eshell-hist-parse-modifier):
* eshell/em-ls.el (eshell-ls-dir, eshell-ls-files, eshell-ls-entries):
* eshell/em-unix.el (eshell/cat, eshell/du, eshell/su):
* eshell/esh-cmd.el (eshell-invoke-directly, eshell-do-eval, eshell/which):
* eshell/esh-ext.el (eshell-find-interpreter):
* eshell/esh-mode.el (eshell-mode):
* eshell/esh-module.el (eshell-unload-extension-modules):
* eshell/esh-proc.el (eshell-process-interact):
* eshell/esh-test.el (eshell-test):
* eshell/esh-util.el (eshell-flatten-list, eshell-winnow-list):
* eshell/esh-var.el (eshell/env, eshell-environment-variables)
(eshell-variables-list):
* eshell/eshell.el (eshell-unload-all-modules):
Replace eshell-for with dolist.
Diffstat (limited to 'lisp/eshell/esh-cmd.el')
| -rw-r--r-- | lisp/eshell/esh-cmd.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/eshell/esh-cmd.el b/lisp/eshell/esh-cmd.el index 0567beb9a53..0a00300d19c 100644 --- a/lisp/eshell/esh-cmd.el +++ b/lisp/eshell/esh-cmd.el | |||
| @@ -987,7 +987,7 @@ at the moment are: | |||
| 987 | (not (member name eshell-complex-commands)) | 987 | (not (member name eshell-complex-commands)) |
| 988 | (catch 'simple | 988 | (catch 'simple |
| 989 | (progn | 989 | (progn |
| 990 | (eshell-for pred eshell-complex-commands | 990 | (dolist (pred eshell-complex-commands) |
| 991 | (if (and (functionp pred) | 991 | (if (and (functionp pred) |
| 992 | (funcall pred name)) | 992 | (funcall pred name)) |
| 993 | (throw 'simple nil))) | 993 | (throw 'simple nil))) |
| @@ -1165,7 +1165,7 @@ be finished later after the completion of an asynchronous subprocess." | |||
| 1165 | (if (and (eq (car form) 'let) | 1165 | (if (and (eq (car form) 'let) |
| 1166 | (not (eq (car (cadr args)) 'eshell-do-eval))) | 1166 | (not (eq (car (cadr args)) 'eshell-do-eval))) |
| 1167 | (eshell-manipulate "evaluating let args" | 1167 | (eshell-manipulate "evaluating let args" |
| 1168 | (eshell-for letarg (car args) | 1168 | (dolist (letarg (car args)) |
| 1169 | (if (and (listp letarg) | 1169 | (if (and (listp letarg) |
| 1170 | (not (eq (cadr letarg) 'quote))) | 1170 | (not (eq (cadr letarg) 'quote))) |
| 1171 | (setcdr letarg | 1171 | (setcdr letarg |
| @@ -1241,7 +1241,7 @@ be finished later after the completion of an asynchronous subprocess." | |||
| 1241 | 1241 | ||
| 1242 | (defun eshell/which (command &rest names) | 1242 | (defun eshell/which (command &rest names) |
| 1243 | "Identify the COMMAND, and where it is located." | 1243 | "Identify the COMMAND, and where it is located." |
| 1244 | (eshell-for name (cons command names) | 1244 | (dolist (name (cons command names)) |
| 1245 | (let (program alias direct) | 1245 | (let (program alias direct) |
| 1246 | (if (eq (aref name 0) eshell-explicit-command-char) | 1246 | (if (eq (aref name 0) eshell-explicit-command-char) |
| 1247 | (setq name (substring name 1) | 1247 | (setq name (substring name 1) |