Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cwjcc!gatech!purdue!bu-cs!husc6!ngo From: ngo@tammy.harvard.edu (Tom Ngo) Newsgroups: comp.emacs Subject: Re: Need Help with GNU Emacs, VT131, and VMS (!) Message-ID: Date: 13 Mar 89 10:19:46 GMT References: <3425@silver.bacs.indiana.edu> Sender: news@husc6.harvard.edu Distribution: comp.emacs, comp.os.vms Organization: Harvard Chemistry Dept., Harvard University Lines: 39 In-reply-to: templon@silver.bacs.indiana.edu's message of 11 Mar 89 11:58:37 GMT In article <3425@silver.bacs.indiana.edu> templon@silver.bacs.indiana.edu (jeffrey templon) writes: > ... I get this horrible mess in the minibuffer: > Failing I-search:^S^S^S^Q- You comment later in your note that you suspect a flow-control problem. You are absolutely correct. Your terminal and host send ^S and ^Q characters to each other to say "Hold on! You're talking too fast!" and "OK, go ahead now." FIX: Include the lines below in your .emacs file. You do not have to change your ^S and ^Q key bindings. It is more compact to set the keyboard-translate table to the correct string without using a loop to construct it, but this method is far easier to read and modify. ;;; Solve flow-control problem by binding ^\ as ^S and ^/ as ^Q (set-input-mode nil t) ; do describe-function for more info ;; Set keyboard-translate-table to do no translations (setq keyboard-translate-table (make-string 128 0)) (let ((i 0)) (while (< i 128) (aset keyboard-translate-table i i) (setq i (1+ i)))) ;; Whenever a ^\ is received, have emacs see a ^S (aset keyboard-translate-table ?\^\\ ?\^s) ;; Whenever a ^^ is received, have emacs see a ^Q (aset keyboard-translate-table ?\^^ ?\^q) ;; Whenever a ^S or ^Q is received, have emacs see nothing (aset keyboard-translate-table ?\^s 0) (aset keyboard-translate-table ?\^q 0) -- --Tom Ngo e-mail: ngo@endor.harvard.edu US mail: 12 Oxford St Box 201 Cambridge, MA 02138 Phone: (617) 495-1768 (office)