all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Bind CTRL-S (CTRL-shift-S) separately from CTRL-s?
Date: Sun, 22 May 2011 22:51:14 -0300	[thread overview]
Message-ID: <jwvvcx289yu.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: a7086382-8743-41b2-86bc-74ec3b65429b@h9g2000yqk.googlegroups.com

> (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


  reply	other threads:[~2011-05-23  1:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-22 19:10 Bind CTRL-S (CTRL-shift-S) separately from CTRL-s? keepplugging
2011-05-23  1:51 ` Stefan Monnier [this message]
2011-05-24  1:36   ` Plugger
2011-05-24 16:51 ` Deniz Dogan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvvcx289yu.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.