🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87753

Re: HELP: Patch for CTRL-Z bug in 19.25

#87753
From: Nedim Fresko
Date: Tue, 30 Aug 1994 00:09
83 lines
3067 bytes
>>>>> ">" == Nedim Fresko <fresko@lisa.cs.purdue.edu> writes:
In article <33jclp$fqd@mozo.cc.purdue.edu> fresko@lisa.cs.purdue.edu (Nedim Fresko) writes:

    >> Hi there,
    >> I remember having seen a patch in one of the emacs newsgroups to fix
    >> the CTRL-Z bug in version 19.25 of emacs. I'd be grateful if someone pointed
    >> the location of that, so that I can apply it. It is kind of annoying;
    >> and as I understand it, there is no official v19.26 to fix the problem.

    >> Thanks in advance,

    >> Nedim Fresko
    >> fresko@cs.purdue.edu

Well, I've received lots of replies, and I'm posting the original
fix sent by R Stallman, forwarded to me by a few people.

Thanks a lot for the response.
Nedim.
----------------------------------- The fix ---------------------------------
From: rms@gnu.ai.mit.edu (Richard Stallman)
Newsgroups: gnu.emacs.help
Subject: C-z kills Emacs?
Date: 2 Jun 1994 15:59:36 -0400
Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu
Lines: 53
Sender: daemon@cis.ohio-state.edu
Distribution: world
Message-ID: <9406021958.AA05830@mole.gnu.ai.mit.edu>

There are reports that C-z is killing Emacs instead of suspending.
Does this change fix the problem?

*** emacs.c	1994/05/28 04:46:38	1.86
--- emacs.c	1994/06/02 19:57:04
***************
*** 409,429 ****
  
    clearerr (stdin);
  
-   if (! noninteractive1)
-     {
- #ifdef BSD_PGRPS
-       if (initialized)
- 	{
- 	  inherited_pgroup = EMACS_GETPGRP (0);
- 	  setpgrp (0, getpid ());
- 	}
- #else
- #if defined (USG5) && defined (INTERRUPT_INPUT)
-       setpgrp ();
- #endif
- #endif
-     }
- 
  #ifdef APOLLO
  #ifndef APOLLO_SR10
    /* If USE_DOMAIN_ACLS environment variable exists,
--- 409,414 ----
***************
*** 505,510 ****
--- 490,510 ----
      {
        skip_args += 1;
        noninteractive = 1;
+     }
+ 
+   if (! noninteractive)
+     {
+ #ifdef BSD_PGRPS
+       if (initialized)
+ 	{
+ 	  inherited_pgroup = EMACS_GETPGRP (0);
+ 	  setpgrp (0, getpid ());
+ 	}
+ #else
+ #if defined (USG5) && defined (INTERRUPT_INPUT)
+       setpgrp ();
+ #endif
+ #endif
      }
  
  #ifdef POSIX_SIGNALS
Technical Details
Message-ID: <FRESKO.94Aug29190803@lisa.cs.purdue.edu>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!cs.purdue.edu!fresko
References: <33jclp$fqd@mozo.cc.purdue.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,95b97244369f014e,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-08-29 17:12:54 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!cs.purdue.edu!fresko
From: fresko@cs.purdue.edu (Nedim Fresko)
Newsgroups: gnu.emacs.bug
Subject: Re: HELP: Patch for CTRL-Z bug in 19.25
Date: 29 Aug 1994 20:09:24 -0400
Organization: Purdue University Department of Computer Sciences
Lines: 85
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <FRESKO.94Aug29190803@lisa.cs.purdue.edu>
References: <33jclp$fqd@mozo.cc.purdue.edu>