mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-22 07:09:54 +00:00
40ffacb34b
This makes sure that we treat Eshell sub-forms (whether Lisp or command forms) as values when appropriate, or as regular invocations. This requires a bit more explicit work, but helps to resolve some of the surprising differences between Lisp and command forms in complex Eshell statements. * lisp/eshell/esh-cmd.el (eshell-subcommand-arg-values): Make obsolete. (eshell-parse-lisp-argument): Don't add 'eshell-command-to-value' here. (eshell-rewrite-sexp-command): Don't check for 'eshell-command-to-value here'; instead check for 'eshell-lisp-command'. (eshell-structure-basic-command): Check for 'eshell-lisp-command'. (eshell-term-as-value): New function... (eshell-rewrite-named-command, eshell-rewrite-for-command): ... call it. * lisp/eshell/esh-arg.el (eshell-parse-special-reference): * lisp/eshell/esh-io.el (eshell-strip-redirections): * lisp/eshell/esh-var.el (eshell-prepare-indices): Call 'eshell-term-as-value'. * test/lisp/eshell/esh-arg-tests.el (esh-arg-test/special-reference/command-form): * test/lisp/eshell/esh-cmd-tests.el (esh-cmd-test/for-loop-lisp-body) (esh-cmd-test/while-loop-lisp-body) (esh-cmd-test/if-else-statement-lisp-body): New tests. * test/lisp/eshell/esh-var-tests.el (esh-var-test/interp-var-indices-subcommand): Add another command to test. * doc/misc/eshell.texi (Control Flow): Update documentation. |
||
---|---|---|
.. | ||
auth.texi | ||
autotype.texi | ||
bovine.texi | ||
calc.texi | ||
cc-mode.texi | ||
ChangeLog.1 | ||
cl.texi | ||
dbus.texi | ||
dired-x.texi | ||
doclicense.texi | ||
ebrowse.texi | ||
ede.texi | ||
ediff.texi | ||
edt.texi | ||
efaq-w32.texi | ||
efaq.texi | ||
eglot.texi | ||
eieio.texi | ||
emacs-gnutls.texi | ||
emacs-mime.texi | ||
epa.texi | ||
erc.texi | ||
ert.texi | ||
eshell.texi | ||
eudc.texi | ||
eww.texi | ||
flymake.texi | ||
forms.texi | ||
gnus-faq.texi | ||
gnus.texi | ||
gpl.texi | ||
htmlfontify.texi | ||
idlwave.texi | ||
ido.texi | ||
info.texi | ||
mairix-el.texi | ||
Makefile.in | ||
message.texi | ||
mh-e.texi | ||
modus-themes.org | ||
newsticker.texi | ||
nxml-mode.texi | ||
octave-mode.texi | ||
org-setup.org | ||
org.org | ||
pcl-cvs.texi | ||
pgg.texi | ||
rcirc.texi | ||
reftex.texi | ||
remember.texi | ||
sasl.texi | ||
sc.texi | ||
sem-user.texi | ||
semantic.texi | ||
ses.texi | ||
sieve.texi | ||
smtpmail.texi | ||
speedbar.texi | ||
srecode.texi | ||
texinfo.tex | ||
todo-mode.texi | ||
tramp.texi | ||
trampver.texi | ||
transient.texi | ||
url.texi | ||
use-package.texi | ||
vhdl-mode.texi | ||
viper.texi | ||
vtable.texi | ||
widget.texi | ||
wisent.texi | ||
woman.texi |