From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#8680: nsterm.m does not distinguish key on the key pad Date: Sun, 04 Nov 2012 11:34:44 +0800 Message-ID: <87ip9mniqz.fsf@gnu.org> References: <625A3C9C-ACF2-42A0-B4E8-8ABDDA060131@pacbell.net> <93A6F1F6-C459-48BB-B9FB-956653A09D51@pacbell.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1352000108 2364 80.91.229.3 (4 Nov 2012 03:35:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Nov 2012 03:35:08 +0000 (UTC) Cc: 8680@debbugs.gnu.org To: Michael Marchionna Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 04 04:35:17 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TUqzV-0006NR-4X for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Nov 2012 04:35:17 +0100 Original-Received: from localhost ([::1]:57650 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUqzM-0007df-Fm for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Nov 2012 23:35:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUqzJ-0007cF-To for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2012 23:35:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TUqzI-0008NX-Lt for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2012 23:35:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUqzI-0008NC-Hs for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2012 23:35:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TUr29-0006ac-Mf for bug-gnu-emacs@gnu.org; Sat, 03 Nov 2012 23:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Nov 2012 03:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8680 X-GNU-PR-Package: emacs,ns X-GNU-PR-Keywords: patch Original-Received: via spool by 8680-submit@debbugs.gnu.org id=B8680.135200026925313 (code B ref 8680); Sun, 04 Nov 2012 03:38:01 +0000 Original-Received: (at 8680) by debbugs.gnu.org; 4 Nov 2012 03:37:49 +0000 Original-Received: from localhost ([127.0.0.1]:47891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TUr1x-0006aD-FL for submit@debbugs.gnu.org; Sat, 03 Nov 2012 23:37:49 -0400 Original-Received: from mail-pa0-f44.google.com ([209.85.220.44]:47161) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TUr1v-0006a6-0J for 8680@debbugs.gnu.org; Sat, 03 Nov 2012 23:37:48 -0400 Original-Received: by mail-pa0-f44.google.com with SMTP id fb11so3216730pad.3 for <8680@debbugs.gnu.org>; Sat, 03 Nov 2012 20:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=6gRQb3j8RPrx6pAdZQT9FjKGafFJgTgOVKSzxJTej+A=; b=PHfg5WXreMjY4hP2JYWe3RQ7kNkniRwGBJTgi0nxrXRmN9W96i1QBPu6nE9T1uStZ2 lNm7qHSA7MyWgsrmQDXjwjaDO9aqpjVxUDVqY3wqrNR+uSlnaXB4UyLesAQVljPzhnOD MfE62509Pr/+481E4jjK5Fk318MdnGWqrvCbavHNjvjYiHF79NeUoi9HHrxcfxcAuLIz gTKdx+E10rPL3QA22aKAniNo2Ui3J9xfmXCo/iMRvYlWjyKDHOV8mcuXzNpN+x5WqtWf MBodMsXoCA/FKiy2h1v8lWuqoxg7Lhkle8iZpjVpqCPEbs/mJjjW0FfUqJXW5cHr8GQM TW/Q== Original-Received: by 10.68.216.2 with SMTP id om2mr19177931pbc.88.1352000088934; Sat, 03 Nov 2012 20:34:48 -0700 (PDT) Original-Received: from ulysses (cm198.gamma83.maxonline.com.sg. [202.156.83.198]) by mx.google.com with ESMTPS id m8sm8303913pax.38.2012.11.03.20.34.46 (version=SSLv3 cipher=OTHER); Sat, 03 Nov 2012 20:34:47 -0700 (PDT) In-Reply-To: <93A6F1F6-C459-48BB-B9FB-956653A09D51@pacbell.net> (Michael Marchionna's message of "Tue, 17 May 2011 10:34:01 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:66420 Archived-At: Michael Marchionna writes: > In addition to the clear/NumLock key not being mapped the rest of the > keypad keys do not seem to be translated as well, and hence can not be > distinguished from keys on the main keyboard. What follows is a patch > that remaps the keypad keys. at least on a aluminum apple keyboard, to > the appropriate X11 virtual key codes. Note the Clear/NumLock key is > hardcoded to XK_Clear. There should probably be a way to make it > possible to configure it so that it translates to XK_Num_Lock. I've committed your patch to the trunk. Sorry for the long delay.