From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Plugger Newsgroups: gmane.emacs.help Subject: Re: Bind CTRL-S (CTRL-shift-S) separately from CTRL-s? Date: Mon, 23 May 2011 18:36:45 -0700 (PDT) Organization: http://groups.google.com Message-ID: <1f0e2fd0-189b-42af-aa1d-a9195619cf9d@c1g2000yqe.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1306269575 24576 80.91.229.12 (24 May 2011 20:39:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 May 2011 20:39:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 24 22:39:30 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QOyO1-00018B-50 for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 22:39:29 +0200 Original-Received: from localhost ([::1]:45459 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOyO0-0007zC-Jy for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 16:39:28 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!c1g2000yqe.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: 68.189.241.165 Original-X-Trace: posting.google.com 1306201005 9667 127.0.0.1 (24 May 2011 01:36:45 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 24 May 2011 01:36:45 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c1g2000yqe.googlegroups.com; posting-host=68.189.241.165; posting-account=5HbENQkAAABuj03KxZ0yTr0OvbgI92ff User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 Firefox/4.0,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:186898 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81219 Archived-At: Thanks! Your suggestion works for me. I don't remember doing anything special to get keys past the WM and into emacs, except for this: (setq w32-pass-lwindow-to-system nil w32-pass-rwindow-to-system nil w32-pass-apps-to-system nil ) ... but that has nothing to do with CTRL-S. I don't see how, but could it be a keyboard issue? I'm using the keyboard from my PS2 (IBM Personal System 2). Regards, Bob On May 22, 9:51=A0pm, Stefan Monnier wrote: > > (global-set-key "\C-S" 'blabbafunc) > > (global-set-key "\C-S-s" 'blabbafunc) > > You're missing a backslash in front of the second modifier. > I recommend you avoid the string syntax, so if you try > > =A0 =A0(global-set-key [?\C-S-s] 'blabbafunc) > > you'll get a useful error message whereas > > =A0 =A0(global-set-key [?\C-\S-s] 'blabbafunc) > > will be accepted. =A0For some reason it doesn't work for me (the key > seems never to reach Emacs, so it's presumably caught by the WM or > something), but it works for ?\C-\S-d, so the syntax is right. > > =A0 =A0 =A0 =A0 Stefan