From: Jean Louis <bugs@gnu.support>
To: Robert Pluim <rpluim@gmail.com>
Cc: Samuel Banya <sbanya@fastmail.com>,
Emanuel Berg <help-gnu-emacs@gnu.org>
Subject: Re: Emacs help from terminal
Date: Thu, 16 Jun 2022 08:34:35 +0300 [thread overview]
Message-ID: <YqrA67Ukir6TyUQV@protected.localdomain> (raw)
In-Reply-To: <871qvqypvy.fsf@gmail.com>
* Robert Pluim <rpluim@gmail.com> [2022-06-15 17:17]:
> >>>>> On Wed, 15 Jun 2022 10:06:23 -0400, "Samuel Banya" <sbanya@fastmail.com> said:
>
> Samuel> Wow, that's awesome, I never knew this about 'C-z' and 'fg' keybinding
> Samuel> commands to be able to suspend Emacs.
>
> Samuel> That's super cool, thanks for this, putting this in my notes as I
> Samuel> usually use GUI Emacs but this would be cool on headless terminal
> Samuel> boxes.
>
> Just wait until you realize you can run a shell inside emacs, so you
> never need to suspend it :-)
There are different needs and possible reasons for suspending a
process and bringing it back to background.
When process is suspended, it is paused. Emacs does nothing in
background, it has stopped. Its execution has stopped. If there are
processes in Emacs they have been paused.
This is totally different to invoking a program from within Emacs or
from shell within Emacs. I also do not see how suspending process is
related to invoking shell in Emacs.
You maybe think that the only use of suspending Emacs is to run some
other command in shell. Certainly one can do that. But suspending
stops the Emacs process, it does not let it run. There may be quite
different reasons for stopping a process.
Example on my side is that Emacs handles continuous running database
processes, and I need to suspend Emacs as to observe logs, while
process is suspended. Then I may need to resume the process. Such
processes must be separate as Emacs due to its threads handling blocks
any activities while running such processes. I may need to halt them
during the review of what process is doing. And I do not want a
process to terminate. I want to be able to continue with it later in
time.
Another issue in your consideration of invoking program from within
shell of Emacs, is that if you invoke process from Emacs shell, when
Emacs is stopped, that other process is also killed as child process
from Emacs.
That is quite different than having separate process from within the
shell that is not dependant on Emacs.
And one may have multiple Emacs processes stopped or resumed, and
running in the shell in the same time, not being dependant on each
other.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
next prev parent reply other threads:[~2022-06-16 5:34 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-13 22:43 Emacs help from terminal carlmarcos--- via Users list for the GNU Emacs text editor
2022-06-14 4:51 ` tomas
2022-06-14 10:11 ` Emanuel Berg
2022-06-14 13:38 ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-06-14 13:56 ` Samuel Banya
2022-06-14 14:03 ` Emanuel Berg
2022-06-14 13:57 ` tomas
2022-06-14 14:05 ` Emanuel Berg
2022-06-14 14:00 ` Emanuel Berg
2022-06-14 14:13 ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-06-14 14:37 ` Michael Heerdegen
2022-06-14 21:52 ` Jean Louis
2022-06-14 22:47 ` Emanuel Berg
2022-06-15 5:29 ` Jean Louis
2022-06-15 8:52 ` Emanuel Berg
2022-06-15 17:00 ` Tomas Hlavaty
2022-06-15 17:16 ` Emanuel Berg
2022-06-15 19:55 ` Emanuel Berg
2022-06-15 23:40 ` Tomas Hlavaty
2022-06-15 23:52 ` Emanuel Berg
2022-06-16 5:52 ` Tomas Hlavaty
2022-06-16 7:12 ` Emanuel Berg
2022-06-15 10:22 ` Michael Heerdegen
2022-06-15 10:26 ` Emanuel Berg
2022-06-15 14:06 ` Samuel Banya
2022-06-15 14:15 ` Robert Pluim
2022-06-15 15:16 ` Emanuel Berg
2022-06-15 15:52 ` Samuel Banya
2022-06-15 15:59 ` Emanuel Berg
2022-06-16 7:48 ` Robert Pluim
2022-06-16 14:45 ` Samuel Banya
2022-06-16 5:34 ` Jean Louis [this message]
2022-06-16 7:09 ` Emanuel Berg
2022-06-16 15:08 ` Jean Louis
2022-06-16 17:31 ` Emanuel Berg
2022-06-16 17:36 ` Jean Louis
2022-06-17 18:36 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YqrA67Ukir6TyUQV@protected.localdomain \
--to=bugs@gnu.support \
--cc=help-gnu-emacs@gnu.org \
--cc=rpluim@gmail.com \
--cc=sbanya@fastmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).