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: not good proposal: "C-z " reserved for users Date: Tue, 9 Feb 2021 09:41:29 +0300 Message-ID: References: <1973673328.2493716.1612740554692.ref@mail.yahoo.com> <1973673328.2493716.1612740554692@mail.yahoo.com> <83tuqnkzff.fsf@gnu.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="29265"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Cc: help-gnu-emacs@gnu.org To: Francis Belliveau Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 09 07:45:28 2021 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 1l9Mm8-0007Vm-5K for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 09 Feb 2021 07:45:28 +0100 Original-Received: from localhost ([::1]:40166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9Mm7-0006Em-3g for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 09 Feb 2021 01:45:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9Mlf-0006CV-8C for help-gnu-emacs@gnu.org; Tue, 09 Feb 2021 01:44:59 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:56899) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9Mld-0002yv-6O for help-gnu-emacs@gnu.org; Tue, 09 Feb 2021 01:44:58 -0500 Original-Received: from localhost ([::ffff:41.202.241.3]) (AUTH: PLAIN securesender, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000001E07B.0000000060222F66.00007393; Mon, 08 Feb 2021 23:44:53 -0700 Mail-Followup-To: Francis Belliveau , help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: 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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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:127681 Archived-At: * Francis Belliveau [2021-02-08 23:36]: > It would be nice for standard distro to not include a c-z binding, since it already exists on a key-sequence binding. > > I have remapped c-z to my own key-map, but when I must use emacs without my personal bindings, continually get messed up by accidental "suspend". > > It is certainly a dangerous function to have mapped to such an easy key to hit, and my fingers are trained to hit that key a lot for other reasons. > I can see where it was once very useful, but much less so in this > day of GUI's. Emacs is used on console by millions of people. Console itself defines C-z as suspend of the job, so C-z is always expecte to suspend the job for many programs, not only Emacs. Changing it personally may seem convenient at first sight but is not good solution for global users. For example if I write: $ ls -lR / it may give me long listing of files, and I may want to suspend it, so C-z works during ls just in the same manner as with Emacs. Then I may write: $ jobs $ jobs [1]- Stopped emacs -nw -Q [2]+ Stopped ls -F -lR So I have 2 unfinished jobs on console. I can now decide to continue with the job #1 or job #2. Those are common job control commands: https://en.wikipedia.org/wiki/Job_control_%28Unix%29#Commands > A job running in the foreground can be stopped by typing the suspend > character (Ctrl-Z). This sends the "terminal stop" signal (SIGTSTP) > to the process group. By default, SIGTSTP causes processes receiving > it to stop, and control is returned to the shell. However, a process > can register a signal handler for or ignore SIGTSTP. A process can > also be paused with the "stop" signal (SIGSTOP), which cannot be > caught or ignored. So changing the C-z to something else is contrary to defaults that are on many POSIX and similar system. I believe that C-z does same thing in many various shells, not only in Bash. Job control is important part of computer operation, that is why C-z shall remain untouched, just how it is now. Jean