Newsgroups: comp.emacs Path: utzoo!utgpu!watserv1!watmath!att!cbnewsu!cbnewse!danj1 From: Dan_Jacobson@ATT.COM Subject: Re: emacs keymapping Reply-To: danj1@ihlpa.att.com Organization: AT&T-BL, Naperville IL, USA Date: Thu, 1 Nov 90 22:30:37 GMT Message-ID: In-Reply-To: kabacoff@novavax.UUCP's message of 1 Nov 90 19:36:20 GMT References: <2065@novavax.UUCP> Sender: danj1@cbnewse.att.com (Dan Jacobson) Lines: 44 >>>>> On 1 Nov 90 19:36:20 GMT, kabacoff@novavax.UUCP (Robert I. Kabacoff Ph.D.) said: Robert> I need an alternate key sequence for control-S and control-Q. Well, here... and also see the file lisp/term/bobcat.el ... From: Dan_Jacobson@ATT.COM Subject: Control-S Control-Q (X-on/X-off flow control protocol) problems Date: 10/1990 On many system/network/terminal combinations there is difficulty passing the characters Control-S and Control-Q, as they are used by the computer/terminal to tell one side to start/stop sending characters to prevent buffer overflow. Early on I decided to always use Control-] for Control-S, and Control-\ for Control-Q (set in my ".emacs" file), (i.e. I hit a Control-] and GNU Emacs interprets it at a low level internally as a Control-S, I don't hit Control-S on my keyboard anymore... same with the Control-\ Control-Q pair) here's how: (setq term-setup-hook (function (lambda () ;always use C-] for C-s, and C-\ for C-q for uniformity, even though ;some terminals and baud rates do not have a "flow control" problem (set-input-mode nil t) (let ((the-table (make-string 128 0)) (i 0)) (while (< i 128) (aset the-table i i) (setq i (1+ i))) (aset the-table ?\C-\\ ?\C-q) (aset the-table ?\C-\] ?\C-s) (setq keyboard-translate-table the-table)) (message "Using C-] for C-s, and C-\\ for C-q") ))) Though I liked control-] as a remap choice because it is usually in the same spot on most keyboards, I am having second thoughts, as it is often the "telnet" program's default enter-command-mode character (telnet is one remote login method). And as of this writing, telnet doesn't read a ".telnetrc" file to allow changes at start-up time... -- Dan_Jacobson@ATT.COM Naperville IL USA +1 708-979-6364