From:	CRDGW2::CRDGW2::MRGATE::"SMTP::AI.MIT.EDU::GNULISTS"  3-MAR-1992 11:07:25.97
To:	ARISIA::EVERHART
CC:	
Subj:	Re: Problems saving files and exiting

From:	gnulists@ai.mit.edu@SMTP@CRDGW2
To:	Everhart@Arisia@MRGATE

Received:  by crdgw1.ge.com (5.57/GE 1.123)
	 id AA20363; Tue, 3 Mar 92 10:50:17 EST
Received: by life.ai.mit.edu (4.1/AI-4.10) id AA09903; Tue, 3 Mar 92 03:32:14 EST
Return-Path: <gnulists@ai.mit.edu>
Received: from pop-tarts (pop-tarts.ai.mit.edu) by life.ai.mit.edu (4.1/AI-4.10) id AA09894; Tue, 3 Mar 92 03:31:47 EST
Received: by pop-tarts (4.1/AI-4.10) id AA16143; Tue, 3 Mar 92 03:28:53 EST
Resent-Date: 2 Mar 92 03:23:00 GMT
Resent-Message-Id: <9203030828.AA16143@pop-tarts>
Received: from relay2.UU.NET by life.ai.mit.edu (4.1/AI-4.10) id AA08668; Tue, 3 Mar 92 02:09:06 EST
Received: from rodan.UU.NET by relay2.UU.NET with SMTP 
	(5.61/UUNET-internet-primary) id AA01434; Tue, 3 Mar 92 02:09:02 -0500
Received: from relay2.UU.NET by rodan.UU.NET with SMTP 
	(5.61/UUNET-mail-drop) id AA12868; Tue, 3 Mar 92 02:09:00 -0500
Received: from gort.ec.usf.edu by relay2.UU.NET with SMTP 
	(5.61/UUNET-internet-primary) id AA01410; Tue, 3 Mar 92 02:08:57 -0500
Received: from sunburn.ec.usf.edu by gort.ec.usf.edu (4.1/25-eef)
	id AA14830; Tue, 3 Mar 92 02:06:32 EST
Received:  by sunburn.ec.usf.edu (4.1/25-eef)
	id AA20752; Tue, 3 Mar 92 02:05:55 EST
Original-To: gnu-emacs-announce@uunet.uu.net
Path: sunburn!screamer!mthvax.cs.miami.edu!wupost!think.com!snorkelwacker.mit.edu!thunder.mcrcim.mcgill.edu!poly-vlsi!wotan.vlsi.polymtl.ca!baby
From: baby@siegfried.vlsi.polymtl.ca (Philippe Grant)
Sender: gnulists@ai.mit.edu
Newsgroups: comp.emacs,gnu.emacs.announce,gnu.emacs.gnews,alt.religion.emacs
Subject: Re: Problems saving files and exiting
Message-Id: <BABY.92Mar1222300@turing.siegfried.vlsi.polymtl.ca>
Date: 2 Mar 92 03:23:00 GMT
References: <1992Feb23.105339.16223@nas.nasa.gov>
Organization: Ecole Polytechnique de Montreal, Canada
In-Reply-To: hampe@wilbur.nas.nasa.gov's message of 23 Feb 92 10:53:39 GMT
To: help-gnu-emacs@prep.ai.mit.edu
Resent-From: help-gnu-emacs-request@prep.ai.mit.edu

In article <1992Feb23.105339.16223@nas.nasa.gov> hampe@wilbur.nas.nasa.gov (Andrew F. Hampe) writes:


>   It appears that the traditional ^X^S rather than
>   saving the edited file, simple suspends the process,
>   requiring a ^Q be sent.

>   Is there some graceful means of REBINDING it all
>   so that some simpler sequence, that is less likely
>   to suspend the current shell, can be put together.


Here's the solution we've adopted - remap all C-s
and C-q to C-\ and C-].  Just include the following
lines into your users' ~/.emacs file.



(progn
  (setq keyboard-translate-table (make-string 128 1))
  (let ((i 0))
    (while (< i 128)
      (aset keyboard-translate-table i i)
      (setq i (1+ i)))))

; Cause C-s/C-q to be used for flow control.
; To get C-s, type C-\ (control-backslash)
; To get C-q, type C-] (control-right-bracket)
; These work by translating C-\ to C-S before Emacs looks at them, so they 
; work even from inside I-search mode

(aset keyboard-translate-table ?\C-\\ ?\C-S)
(aset keyboard-translate-table ?\C-\] ?\C-Q)



Enjoy!
--
Philippe Grant                     | baby@info.polymtl.ca
Etudiant, Genie Informatique       | If it ain't broke,
Ecole Polytechnique de Montreal    | DON'T FIX IT!!!

