From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Bind CTRL-S (CTRL-shift-S) separately from CTRL-s? Date: Sun, 22 May 2011 22:51:14 -0300 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1306269509 24164 80.91.229.12 (24 May 2011 20:38:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 May 2011 20:38:29 +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:38:26 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 1QOyMz-0000R6-EX for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 22:38:25 +0200 Original-Received: from localhost ([::1]:42069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOyMy-00067P-Uz for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 16:38:25 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Injection-Info: mx04.eternal-september.org; posting-host="XiIAvY72ZUxKiQYrt+73Dw"; logging-data="29461"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX197Lp8rvTdIu1Lk8w49vkZs" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:sBWRLZS1O7h8FQVCIpGsDGMRb+w= sha1:1pIHxriJHu4gKm45c/pWVi/XlJ4= Original-Xref: usenet.stanford.edu gnu.emacs.help:186887 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:81215 Archived-At: > (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 (global-set-key [?\C-S-s] 'blabbafunc) you'll get a useful error message whereas (global-set-key [?\C-\S-s] 'blabbafunc) will be accepted. For 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. Stefan