From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: don@donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#966: marked as done (keybinding involving Ctrl and Shift and letter) Date: Wed, 17 Sep 2008 13:10:04 -0700 Message-ID: References: <87hc8eilhc.fsf@cyd.mit.edu> <6194437C-110E-411F-8CC0-E9FF529C5C6D@xahlee.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1221682204-15674-0" X-Trace: ger.gmane.org 1221683281 6707 80.91.229.12 (17 Sep 2008 20:28:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Sep 2008 20:28:01 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 17 22:28:54 2008 Return-path: Envelope-to: geb-bug-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 1Kg3dn-0003Mv-0J for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Sep 2008 22:28:47 +0200 Original-Received: from localhost ([127.0.0.1]:57692 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kg3cl-0005Yz-Oh for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Sep 2008 16:27:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kg3cg-0005YU-TK for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2008 16:27:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kg3cf-0005Xy-Rp for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2008 16:27:38 -0400 Original-Received: from [199.232.76.173] (port=58065 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kg3cf-0005Xu-NM for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2008 16:27:37 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45445) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kg3cf-0007gq-1D for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2008 16:27:37 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8HKRZ36020167; Wed, 17 Sep 2008 13:27:35 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8HKA4cl015688; Wed, 17 Sep 2008 13:10:04 -0700 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com X-Emacs-PR-Message: closed 966 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20591 Archived-At: This is a multi-part message in MIME format... ------------=_1221682204-15674-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Wed, 17 Sep 2008 16:08:31 -0400 with message-id <87hc8eilhc.fsf@cyd.mit.edu> and subject line keybinding involving Ctrl and Shift and letter has caused the Emacs bug report #966, regarding keybinding involving Ctrl and Shift and letter to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact don@donarmstrong.com immediately.) --=20 966: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D966 Emacs Bug Tracking System Contact don@donarmstrong.com with problems ------------=_1221682204-15674-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.3 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 12 Sep 2008 03:46:29 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8C3kO2i028747 for ; Thu, 11 Sep 2008 20:46:26 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kdzc0-00021D-Hf for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 23:46:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kdzby-000211-Dd for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 23:46:23 -0400 Received: from [199.232.76.173] (port=60545 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kdzby-00020y-AH for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 23:46:22 -0400 Received: from mout.perfora.net ([74.208.4.196]:57548) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kdzby-00009b-Il for bug-gnu-emacs@gnu.org; Thu, 11 Sep 2008 23:46:22 -0400 Received: from [192.168.1.4] (c-24-6-185-159.hsd1.ca.comcast.net [24.6.185.159]) by mrelay.perfora.net (node=mrus1) with ESMTP (Nemesis) id 0MKpCa-1Kdzbv0Nuu-0005ZY; Thu, 11 Sep 2008 23:46:21 -0400 Mime-Version: 1.0 (Apple Message framework v753.1) Content-Transfer-Encoding: quoted-printable Message-Id: <6194437C-110E-411F-8CC0-E9FF529C5C6D@xahlee.org> Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed To: bug-gnu-emacs@gnu.org From: xah lee Subject: keybinding involving Ctrl and Shift and letter Date: Thu, 11 Sep 2008 20:46:22 -0700 X-Mailer: Apple Mail (2.753.1) X-Provags-ID: V01U2FsdGVkX1+YCoyxS35O3FMfY3KysM5wD8X3QgsbNx8zqyd NajPo5E+iyIckUye5E7s/FpLQSlQtchVRU7TiQa2FKK6jbuAq8 p0fqZ+bFko0lMWz/LaSGw== X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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 =20= 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 =20 but not (kbd "M-S-n"). Xah =E2=88=91 http://xahlee.org/ =E2=98=84 In GNU Emacs 22.2.1 (powerpc-apple-darwin8.11.0, Carbon Version 1.6.0) of 2008-04-05 on g5.tokyo.stp.isas.jaxa.jp Windowing system distributor `Apple Inc.', version 10.4.11 configured using `configure '--prefix=3D/Applications/Emacs.app/=20 Contents/Resources' '--with-carbon' '--without-x' '--libexecdir=3D/=20 Volumes/Emacs/Emacs.app/Contents/MacOS/libexec' 'CFLAGS=3D-Os -arch =20 i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -DUSE_ATSUI -=20= DUSE_MAC_TSM'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil locale-coding-system: iso-8859-1 default-enable-multibyte-characters: t =E2=98=84 ------------=_1221682204-15674-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.8 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 966-done) by emacsbugs.donarmstrong.com; 17 Sep 2008 20:04:53 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8HK4nId013680 for <966-done@emacsbugs.donarmstrong.com>; Wed, 17 Sep 2008 13:04:51 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 06F8B57E32F; Wed, 17 Sep 2008 16:08:31 -0400 (EDT) From: Chong Yidong To: xah lee Cc: 966-done@emacsbugs.donarmstrong.com Subject: keybinding involving Ctrl and Shift and letter Date: Wed, 17 Sep 2008 16:08:31 -0400 Message-ID: <87hc8eilhc.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > 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. This is a legacy of ASCII. Taking a look at an ASCII chart, you'll see that ^A (control-a) through ^Z (control-z) map to ASCII codes 1 through 26, and these control keys are not case sensitive: control-a is equivalent to control-A. Emacs extends ASCII, which allows us to define things like C-] which are not present in ASCII. However, (kbd "C-N") and (kbd "C-n") still both evaluate to ^N. ------------=_1221682204-15674-0--