1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-05 22:20:24 -08:00
emacs/doc/misc
Jim Porter 498d31e9f0 Support Eshell iterative evaluation in the background
This really just generalizes Eshell's previous support for iterative
evaluation of a single current command to a list of multiple commands,
of which at most one can be in the foreground (bug#66066).

* lisp/eshell/esh-cmd.el (eshell-last-async-procs)
(eshell-current-command): Make obsolete in favor of...
(eshell-foreground-command): ... this
(eshell-background-commands): New variable.
(eshell-interactive-process-p): Make obsolete.
(eshell-head-process, eshell-tail-process): Use
'eshell-foreground-command'.
(eshell-cmd-initialize): Initialize new variables.
(eshell-add-command, eshell-remove-command)
(eshell-commands-for-process): New functions.
(eshell-parse-command): Make 'eshell-do-subjob' the outermost call.
(eshell-do-subjob): Call 'eshell-resume-eval' to split this command
off from its parent forms.
(eshell-eval-command): Use 'eshell-add-command'.
(eshell-resume-command): Use 'eshell-commands-for-process'.
(eshell-resume-eval): Take a COMMAND argument.  Return
':eshell-background' form for deferred background commands.
(eshell-do-eval): Remove check for 'eshell-current-subjob-p'.  This is
handled differently now.

* lisp/eshell/eshell.el (eshell-command): Wait for all processes to
exit when running synchronously.

* lisp/eshell/esh-mode.el (eshell-intercept-commands)
(eshell-watch-for-password-prompt):
* lisp/eshell/em-cmpl.el (eshell-complete-parse-arguments):
* lisp/eshell/em-smart.el (eshell-smart-display-move): Use
'eshell-foreground-command'.

* test/lisp/eshell/esh-cmd-tests.el
(esh-cmd-test/background/simple-command)
(esh-cmd-test/background/subcommand): New tests.
(esh-cmd-test/throw): Use 'eshell-foreground-command'.

* test/lisp/eshell/eshell-tests.el (eshell-test/queue-input): Use
'eshell-foreground-command'.

* test/lisp/eshell/em-script-tests.el
(em-script-test/source-script/background): Make the test script more
complex.

* test/lisp/eshell/eshell-tests.el
(eshell-test/eshell-command/pipeline-wait): New test.

* doc/misc/eshell.texi (Bugs and ideas): Remove implemented feature.
2023-10-02 20:49:41 -07:00
..
auth.texi Replace duplicate text from epa.texi by a reference 2023-07-13 10:51:50 +03:00
autotype.texi Correct many instances of ``allows to'' 2023-09-10 09:33:50 +08:00
bovine.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
calc.texi * doc/misc/calc.texi (Musical Notes): Fix build with Texinfo 4.13. 2023-08-09 09:48:33 +08:00
cc-mode.texi Fontify C, C++, Objective C identifiers containing $ 2023-06-28 18:29:39 +00:00
ChangeLog.1 ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
cl.texi Fix the documentation of 'cl-flet' 2023-08-19 11:50:09 +03:00
dbus.texi Fix setting $DBUS_SESSION_BUS_ADDRESS after Emacs has started 2023-06-12 12:45:38 +02:00
dired-x.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
doclicense.texi
ebrowse.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ede.texi Fix some Texinfo markup in manuals 2023-06-13 15:29:06 +01:00
ediff.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
edt.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
efaq-w32.texi Doc fixes for obsolete functions and variables 2023-09-02 15:37:08 +02:00
efaq.texi ; Mention 64-bit first in FAQ on large files 2023-09-28 21:44:10 +02:00
eglot.texi ; Fix typos 2023-09-24 09:04:43 +02:00
eieio.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
emacs-gnutls.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
emacs-mime.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
epa.texi Add basic usage information and fix references 2023-07-13 10:51:10 +03:00
erc.texi ; Fix example in display-buffer section of ERC manual 2023-09-17 16:06:49 -07:00
ert.texi Add skip-when macro to ert-deftest 2023-09-04 18:25:18 +02:00
eshell.texi Support Eshell iterative evaluation in the background 2023-10-02 20:49:41 -07:00
eudc.texi Fix some Texinfo markup in manuals 2023-06-13 15:29:06 +01:00
eww.texi ; Fix documentation of last change 2023-08-20 11:48:03 +03:00
flymake.texi Make obsolete flymake proc less prominent in manual 2023-09-17 15:36:35 +02:00
forms.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
gnus-faq.texi Delete redundant question from Gnus FAQ 2023-02-18 13:35:37 +01:00
gnus.texi Merge from origin/emacs-29 2023-09-09 04:32:45 -04:00
gpl.texi
htmlfontify.texi ; Fix last change: remove unused @anchor. 2023-01-15 11:52:46 +02:00
idlwave.texi Correct many instances of ``allows to'' 2023-09-10 09:33:50 +08:00
ido.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
info.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
mairix-el.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
Makefile.in ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
message.texi Allow X-Message-SMTP-Method to include more MTAs 2023-05-06 09:05:28 +08:00
mh-e.texi Delete references to gnuserv 2023-09-02 02:47:46 +02:00
modus-themes.org Update modus-themes to their version 4.3.0 2023-09-19 16:03:11 +03:00
newsticker.texi Run newsticker's ticker only periodically (bug#59856) 2023-01-16 09:20:11 +01:00
nxml-mode.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
octave-mode.texi Delete references to gnuserv 2023-09-02 02:47:46 +02:00
org-setup.org ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
org.org ; Grammar fixes ("allow to" et al) 2023-09-17 16:49:21 +02:00
pcl-cvs.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
pgg.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
rcirc.texi Merge from origin/emacs-29 2023-01-01 05:47:47 -05:00
reftex.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
remember.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sasl.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sc.texi Merge from origin/emacs-29 2023-01-01 05:47:47 -05:00
sem-user.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
semantic.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ses.texi Correct many instances of ``allows to'' 2023-09-10 09:33:50 +08:00
sieve.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
smtpmail.texi ; Improve SMTPmail documentation about OAuth2 2023-08-24 21:06:26 +03:00
speedbar.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
srecode.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
texinfo.tex Update from Gnulib by running admin/merge-gnulib 2023-08-12 12:57:35 -07:00
todo-mode.texi Fix and improve setting priority of todo-mode items (bug#64433) 2023-07-03 14:19:41 +02:00
tramp.texi ; Grammar fixes ("allow to" et al) 2023-09-17 16:49:21 +02:00
trampver.texi Sync with Tramp 2.6.2-pre 2023-08-05 18:07:58 +02:00
transient.texi ; Reintroduce menus beneath chapters in the Transient manual 2023-09-03 09:12:32 +08:00
url.texi Make url-gateway-broken-resolution obsolete 2023-09-02 02:37:03 +02:00
use-package.texi Merge from origin/emacs-29 2023-06-17 05:02:55 -04:00
vhdl-mode.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
vip.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
viper.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
vtable.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
widget.texi A revision to the Widget manual 2023-09-02 14:25:04 +03:00
wisent.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
woman.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00