Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!pilchuck!dataio!gtenmc!fst From: fst@gtenmc.UUCP (Fariborz "Skip" Tavakkolian) Newsgroups: comp.emacs Subject: Re: Problem with GNU Emacs. Message-ID: <304@gtenmc.UUCP> Date: 9 Dec 89 21:22:46 GMT References: <6327@lindy.Stanford.EDU> <698@acrux.mdavcr.UUCP> Reply-To: fst@gtenmc.UUCP (Fariborz Skip Tavakkolian) Distribution: usa Organization: GTE Telecon, Inc. Bothell, WA Lines: 63 In article <698@acrux.mdavcr.UUCP> rdr@acrux.UUCP (Randolph Roesler) writes: >In article Richard Stanton writes: >>Your problem is that somewhere in the connection between your >>terminal/PC whatever and the host computer, the C-S is being >>interpreted as a flow control character before it gets sent to >>EMACS. Typing C-Q is the counterpart XON command, which unfreezes >>things. > >>I don't know exactly your setup but on the systems I have had this >>problem on, I have to escape back to telnet etc (usually using a >>command like C-^, or C-^x) then switch off flowcontrol using a >>command like "set flowcontrolto=none" (TELNET) or >>"term flow none" (Stanford tip). This will solve your problem. > >This is a big problem with GnuEmacs, on my system, turning flow control >off screws up the terminal servers. It nice that the FSF provides >GnuEmacs to use masses, but I wish that Stallman was not so religous >about things like C-s should be "search", not "Stop" (xoff). > >You might have to redefine all C-s key patterns. > >Has anybody done this. (is use M-s for search, and skip the other >C-s bindings). > > >-- >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >It's not the size of your signature that Randy Roesler >counts - it's how you use it! MacDonald Dettwiler & Assc. >email ...!uunet!van-bc!mdavcr!rdr BC Canada 604-278-3411 Here is something that was described in one of the read-me files with the GNU Emacs that redefines ^S as ^\ and ^Q as ^^, so that any place you are to type ^S you'll type ^\ etc. ;; First make a translate table that does the identity translation. (set-input-mode nil t) (setq keyboard-translate-table (make-string 256 0)) (let ((i 0)) (while (< i 256) (aset keyboard-translate-table i i) (setq i (1+ i)))) ;; Translate ^S to ^\ and ^Q to ^^ (aset keyboard-translate-table ?\^S ?\^\\) (aset keyboard-translate-table ?\^\\ ?\^S) (aset keyboard-translate-table ?\^Q ?\^^) (aset keyboard-translate-table ?\^^ ?\^Q) On the subject of ^S/^Q for flow control, I must say that in this day-and-age there is no reason for terminals and computers not to use electronic flow control (CTS/RTS) for async communication. Hope this helps (not including my opinion) Skip -- ---------------------------------------------------------------------------- Fariborz "Skip" Tavakkolian -of- Automated Cellular Engineering Currently consulting -at- GTE Telecom, Inc. Bothell, Wa Mail: tiny1!fst@mcgp1 -or- fst@gtenmc