Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!sri-spam!ames!oliveb!intelca!mipos3!pinkas From: pinkas@mipos3.UUCP (Israel Pinkas) Newsgroups: comp.emacs Subject: Re: Making ctrl-S send some funny escape sequence Message-ID: <288@mipos3.UUCP> Date: Wed, 3-Dec-86 11:29:25 EST Article-I.D.: mipos3.288 Posted: Wed Dec 3 11:29:25 1986 Date-Received: Wed, 3-Dec-86 23:35:57 EST References: <8612021419.AA17163@ucbvax.Berkeley.EDU> Reply-To: pinkas@mipos3.UUCP (Israel Pinkas) Organization: Intel, Santa Clara, CA Lines: 33 In article <8612021419.AA17163@ucbvax.Berkeley.EDU> cosell@PROPHET.BBN.COM (Bernie Cosell) writes: >I tried this and it doesn't quite work. The magic control chars in >incremental search mode (which is the point of this, isn't it, to get >your favorite search when you type ctrl-S) are defined to be *char*. >Thus, when I type ctrl-S, ctrl-S it doesn't re-search. If anyone >knows of a way to fix the incremental search guys to take >sequences or something instead of "just chars", please let me know. This is a portion of my .emacs file: (global-set-key "\C-^" 'isearch-forward) (global-set-key "\C-\\" 'quoted-insert) (global-set-key "\C-x\C-\\" 'toggle-read-only) (global-set-key "\C-x\C-^" 'save-buffer) (setq search-quote-char 28) (setq search-repeat-char 30) (global-unset-key "\C-q") (global-unset-key "\C-s") This sets search to be C-^ (C-` or C-6 on many terminals). It also moves the quote character to C-\. (I also move C-X C-S and C-X C-Q.) The next lines modify the smae characters inside the search. The last lines unset C-S and C-Q so that when the terminal send them, they are ignored. (Well, almost. Emacs still seems to see them and screen refreshes are buggy.) -Israel -- ---------------------------------------------------------------------- UUCP: {amdcad,decwrl,hplabs,oliveb,pur-ee,qantel}!intelca!mipos3!pinkas ARPA: pinkas%mipos3.intel.com@relay.cs.net CSNET: pinkas%mipos3.intel.com