From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Newsgroups: gmane.emacs.help Subject: Re: keybinding with shift key syntax. C-S-n vs C-N Date: Tue, 16 Sep 2008 12:35:01 -0700 (PDT) Organization: http://groups.google.com Message-ID: <8ad1d6ac-9b4e-492c-82fe-79b630a2b116@b30g2000prf.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1221594104 9056 80.91.229.12 (16 Sep 2008 19:41:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2008 19:41:44 +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 Sep 16 21:42:39 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KfgRZ-0007VS-MB for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 21:42:38 +0200 Original-Received: from localhost ([127.0.0.1]:49819 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfgQY-0004Zv-8x for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 15:41:34 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news-out.readnews.com!news-xxxfer.readnews.com!postnews.google.com!b30g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 47 Original-NNTP-Posting-Host: 24.6.185.159 Original-X-Trace: posting.google.com 1221593702 17723 127.0.0.1 (16 Sep 2008 19:35:02 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 16 Sep 2008 19:35:02 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b30g2000prf.googlegroups.com; posting-host=24.6.185.159; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:162366 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57708 Archived-At: On Sep 15, 12:44 pm, Oleksandr Gavenko wrote: > I try all write. Same behavior > (GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600) of 2007-06-02 on RELEASE). > > (global-set-key (kbd "M-S-n") 'f1) do not define key binding, but > (global-set-key (kbd "M-n") 'f2) do for both M-n and M-N. I might have miscommunicated. I try again: I want to define a keybinding with the Shift down. e.g. Ctrl+Shift+n. In emacs, it appears there are 2 notations that can be used. 1. (kbd "C-S-n") 2. (kbd "C-N") however, this does not seems to work property. Xah =E2=88=91 http://xahlee.org/ =E2=98=84 --------------------- This seems to be a bug. i'm trying to set keybindings for both Ctrl+n and Ctrl+Shift+n, by: (global-set-key (kbd "C-N") 'f1) (global-set-key (kbd "C-n") 'f2) however, that doesn't work. Emacs will take both Ctrl+Shift+n and Ctrl+Shift+n to be whichever is evaluated last. In this case, f2. But the following works: (global-set-key (kbd "C-S-n") 'f1) (global-set-key (kbd "C-n") 'f2) This seems to contradict with Meta's ways. That is (kbd "M-N") works but not (kbd "M-S-n"). I filed a bug but no response. Can anyone reproduce this? Xah =E2=88=91 http://xahlee.org/ =E2=98=84