From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David De La Harpe Golden Newsgroups: gmane.emacs.devel Subject: Re: How to recognize keyboard insertion? Date: Sun, 01 Nov 2009 20:19:23 +0000 Message-ID: <4AEDED4B.1040708@harpegolden.net> References: <83vdhvd096.fsf@gnu.org> <4AEC6CC5.3010009@harpegolden.net> <83skczcwes.fsf@gnu.org> <4AEC75C3.900@harpegolden.net> <83r5sjctup.fsf@gnu.org> <4AEC8F4A.8070205@harpegolden.net> <83my37coyw.fsf@gnu.org> <4AECA148.4090809@harpegolden.net> <83ljircl6s.fsf@gnu.org> <4AECB0E0.3020702@harpegolden.net> <83k4yadi4f.fsf@gnu.org> <4AED1B9C.5070106@harpegolden.net> <83aaz6c8zf.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1257106789 29853 80.91.229.12 (1 Nov 2009 20:19:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Nov 2009 20:19:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 01 21:19:42 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N4gto-00083I-UX for ged-emacs-devel@m.gmane.org; Sun, 01 Nov 2009 21:19:41 +0100 Original-Received: from localhost ([127.0.0.1]:43000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4gtn-0002Or-S0 for ged-emacs-devel@m.gmane.org; Sun, 01 Nov 2009 15:19:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N4gti-0002Mx-9T for emacs-devel@gnu.org; Sun, 01 Nov 2009 15:19:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N4gtd-0002Ln-PN for emacs-devel@gnu.org; Sun, 01 Nov 2009 15:19:33 -0500 Original-Received: from [199.232.76.173] (port=34826 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4gtd-0002Lk-ML for emacs-devel@gnu.org; Sun, 01 Nov 2009 15:19:29 -0500 Original-Received: from harpegolden.net ([65.99.215.13]:36444) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N4gtZ-0001eW-Vk; Sun, 01 Nov 2009 15:19:26 -0500 Original-Received: from [87.198.54.207] (87-198-54-207.ptr.magnet.ie [87.198.54.207]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTP id 386148205; Sun, 1 Nov 2009 20:19:25 +0000 (GMT) User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701) In-Reply-To: <83aaz6c8zf.fsf@gnu.org> X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:116564 Archived-At: Eli Zaretskii wrote: >> Date: Sun, 01 Nov 2009 05:24:44 +0000 >> From: David De La Harpe Golden >> CC: emacs-devel@gnu.org >> >> If OTOH you wanted to find out whether the code a keypress returns und= er=20 >> the current os layout actually corresponds to the glyph printed on the= =20 >> keyboard, you can't really >=20 > Isn't there some API to get the key's symbol, rather than the > character it produced? There are only properties of the logical os keyboard layout available,=20 not the physical keyboard. If I set my os keyboard layout to "US",=20 there's presently no way for the computer to interrogate my keyboard to=20 find out I really have "=A3" printed above 3 not "#" despite my os=20 keyboard layout setting. It'll just have to take my word for it that=20 I've got a US keyboard. Keyboards just don't say "I am physically=20 british layout" down the wire to the computer. They easily could and=20 probably should, but don't.