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 18:08:10 +0300 Message-ID: References: <877d5jgxa8.fsf@dataswamp.org> <87o7yv1fbs.fsf@web.de> <87pmjaxm40.fsf@web.de> <87a6ae8bnw.fsf@dataswamp.org> <871qvqypvy.fsf@gmail.com> <87zgidozil.fsf@dataswamp.org> 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="36632"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/+ () (2022-05-21) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 16 19:12:48 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 1o1t31-0009Fd-Bt for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 16 Jun 2022 19:12:47 +0200 Original-Received: from localhost ([::1]:41006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1t30-0005d6-7W for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 16 Jun 2022 13:12:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1svc-0005ik-Fh for help-gnu-emacs@gnu.org; Thu, 16 Jun 2022 13:05:08 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:38417) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1sva-0003Tq-1G for help-gnu-emacs@gnu.org; Thu, 16 Jun 2022 13:05:07 -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 0000000000087CD4.0000000062AB62BE.00003955; Thu, 16 Jun 2022 10:05:01 -0700 Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <87zgidozil.fsf@dataswamp.org> 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:137887 Archived-At: * Emanuel Berg [2022-06-16 10:12]: > Jean Louis wrote: > > > 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. > > But I don't see why one would want to do that. It's not how > anything works these days, or for quite some time actually ... That somehow gives me impression that in this case of shell job suspension, you start thinking from your habits and assume that every computer user does the same. And I have given you quite a real example, that is what I am doing. I have continous running Emacs processes processing PostgreSQL database based information and doing marketing for me. It generates queues of messages in the system. What is my SMS or Internet bundle is exhausted due to neglect? Maybe I do not want to terminate the process, I wish to put it on hold, pay for the SMS bundle or Internet and then continue with the process, that way I avoid some otherwise not yet programmed but programmatically avoidable events. That is a real world example. I have such Emacs process running right now. Back in time it was running all day long and it was invoked by cron. Sometimes I suspend process from M-x proced, but again, that one is separate from the used Emacs and it is in GUI. In console I may suspend process because I want it to pause, until I finish something else. Same question could be made like why do you suspend watching a movie or listening to music. > > 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. > > But no one is really doing that manually _at all_ anymore is > what I'm saying. Because you think from your own habits in this case. Just because you did not find use of it, does not mean other users have no use of it. https://duckduckgo.com/?q=job+control+unix&t=h_&ia=web I have 4-5 remote servers to manage on my own, when accessing such I use shell job control. Sometimes clients pay me to enter their remote server, so I use SSH but do not have option to install any better tools and sometimes job control is used. Don't mix halting or pausing of a process with screen or tmux, as they are just a viewer to process. They are not related to pausing a process. Screen for example changes little bit how C-z is invoked, so user has to do C-a z or C-a C-z in screen to halt a process. You may use screen and still want to pause the process, I do not see how is screen or tmux related to halting. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/