Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!samsung!usc!ucsd!hub!6600tom From: 6600tom@ucsbuxa.ucsb.edu (Tom Weinstein) Newsgroups: comp.emacs Subject: Re: Problem with GNU Emacs. Message-ID: <3268@hub.UUCP> Date: 8 Dec 89 08:33:23 GMT References: <6327@lindy.Stanford.EDU> <698@acrux.mdavcr.UUCP> Sender: news@hub.UUCP Reply-To: 6600tom@ucsbuxa.ucsb.edu Distribution: usa Organization: Kingdom of Oz, Department of Wizardry Lines: 48 In-reply-to: rdr@mdavcr.UUCP's message of 8 Dec 89 04:00:27 GMT In article <698@acrux.mdavcr.UUCP> rdr@mdavcr.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. > > 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). The "standard" way to do this is to use the keyboard-translate-table. This is an array of characters that emacs uses to translate the characters it receives into other character before it interprets them. This is what I have in my .emacs file: (progn (setq keyboard-translate-table (make-string 128 0)) (let ((i 0)) (while (< i 128) (aset keyboard-translate-table i i) (setq i (1+ i)))) (aset keyboard-translate-table ?\^^ ?\^q) (aset keyboard-translate-table ?\^\\ ?\^s) (aset keyboard-translate-table ?\^? ?\^h) (aset keyboard-translate-table ?\^h ?\^?))) This maps C-\ to C-s, and C-^ to C-q. So, whenever you want to type C-s, you use C-\ instead. It also switches C-h and DEL, which is useful if you are using a terminal that uses C-h for backspace instead of DEL. If you have problems with your terminal sending C-s and C-q for flow control, and emacs interpreting these as isearch-forward and quoted-insert, use the command (set-input-mode nil t) in your .emacs file. This will tell emacs to use CBREAK mode, and use C-s/C-q for flow control. > -- > It's not the size of your signature that Randy Roesler -- You have to look with better | Tom Weinstein ...ucbvax!hub!ucsbuxa!6600tom eyes than that! -- The Abyss | 6600tom@ucsbuxa.bitnet 6600tom@ucsbuxa.ucsb.edu