From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: Emacs help from terminal Date: Thu, 16 Jun 2022 08:34:35 +0300 Message-ID: References: <877d5jgxa8.fsf@dataswamp.org> <87o7yv1fbs.fsf@web.de> <87pmjaxm40.fsf@web.de> <87a6ae8bnw.fsf@dataswamp.org> <871qvqypvy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25309"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/+ () (2022-05-21) Cc: Samuel Banya , Emanuel Berg To: Robert Pluim Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 16 07:36:17 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o1iAy-0006Pp-CI for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 16 Jun 2022 07:36:16 +0200 Original-Received: from localhost ([::1]:59780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1iAw-0007q6-Tg for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 16 Jun 2022 01:36:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1i9k-0007o5-4F for help-gnu-emacs@gnu.org; Thu, 16 Jun 2022 01:35:00 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:52425) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1i9i-0003lW-1f for help-gnu-emacs@gnu.org; Thu, 16 Jun 2022 01:34:59 -0400 Original-Received: from localhost ([::ffff:154.227.140.160]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000087C62.0000000062AAC0FF.00007198; Wed, 15 Jun 2022 22:34:54 -0700 Mail-Followup-To: Robert Pluim , Samuel Banya , Emanuel Berg Content-Disposition: inline In-Reply-To: <871qvqypvy.fsf@gmail.com> Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:137874 Archived-At: * Robert Pluim [2022-06-15 17:17]: > >>>>> On Wed, 15 Jun 2022 10:06:23 -0400, "Samuel Banya" 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/