From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.help Subject: Re: Bind CTRL-S (CTRL-shift-S) separately from CTRL-s? Date: Tue, 24 May 2011 18:51:06 +0200 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1306269616 24882 80.91.229.12 (24 May 2011 20:40:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 May 2011 20:40:16 +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:40:12 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 1QOyOd-0001Xp-4m for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 22:40:07 +0200 Original-Received: from localhost ([::1]:47345 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOyOc-0000Yc-N9 for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 16:40:06 -0400 Original-Path: usenet.stanford.edu!news-transit.tcx.org.uk!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: mDQpoYu9PWy9sb0I4SXRYg.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 X-Notice: Filtered by postfilter v. 0.8.2 Original-Xref: usenet.stanford.edu gnu.emacs.help:186900 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:81222 Archived-At: On 2011-05-22 21:10, keepplugging wrote: > Using Windows XP. Emacs 23.2.1 (i386-mingw-nt5.1.2600) of > 2010-05-08 on G41R2F1 > > How do I bind CTRL-S (CTRL-shift-S) to a function without affecting > CTRL-s? > > I've tried > (global-set-key "\C-S" 'blabbafunc) > (global-set-key "\C-S-s" 'blabbafunc) > (global-set-key "S-\C-s" 'blabbafunc) > (define-key key-translation-map "\C-S" 'blabbafunc) > (define-key key-translation-map "S-\C-s" 'blabbafunc) > > None of that is right. > > Regards, Bob (global-set-key (kbd "C-S-s") 'blabla) ought to work. /Deniz