From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#4751: 23.1; `read-char' inserts accented chars when you use `M-' modifier Date: Sun, 18 Oct 2009 14:44:45 -0700 Message-ID: <5FBBD1BB0E704C769D622880A6ED636B@us.oracle.com> Reply-To: Drew Adams , 4751@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1255903656 13330 80.91.229.12 (18 Oct 2009 22:07:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Oct 2009 22:07:36 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 19 00:07:26 2009 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 1MzduP-0003jK-9y for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Oct 2009 00:07:25 +0200 Original-Received: from localhost ([127.0.0.1]:53352 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzduO-0000Ox-RN for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Oct 2009 18:07:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MzduI-0000Js-DI for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 18:07:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MzduE-0000Cj-Ny for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 18:07:18 -0400 Original-Received: from [199.232.76.173] (port=38485 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzduE-0000Cc-JB for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 18:07:14 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35138) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MzduE-0005Cg-0u for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 18:07:14 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9IM7CwC000775; Sun, 18 Oct 2009 15:07:12 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9ILo5xw029871; Sun, 18 Oct 2009 14:50:05 -0700 Resent-Date: Sun, 18 Oct 2009 14:50:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sun, 18 Oct 2009 21:50:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4751 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125590241629677 (code B ref -1); Sun, 18 Oct 2009 21:50:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 18 Oct 2009 21:46:56 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9ILks8q029674 for ; Sun, 18 Oct 2009 14:46:55 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MzdaY-0000Z5-5q for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 17:46:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MzdaT-0000T2-BA for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 17:46:53 -0400 Original-Received: from [199.232.76.173] (port=33052 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzdaS-0000Sz-PQ for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 17:46:49 -0400 Original-Received: from rcsinet11.oracle.com ([148.87.113.123]:38402 helo=rgminet11.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MzdaS-0002eL-DI for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 17:46:48 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rgminet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n9ILm6F7003335 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 18 Oct 2009 21:48:07 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n9IJ0pmv008915 for ; Sun, 18 Oct 2009 21:47:49 GMT Original-Received: from abhmt005.oracle.com by acsmt356.oracle.com with ESMTP id 20468326971255902289; Sun, 18 Oct 2009 14:44:49 -0700 Original-Received: from dradamslap1 (/24.5.184.158) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 18 Oct 2009 14:44:49 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcpQPDVwWC/dkx7uSFqvYvpN76dgRw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090205.4ADB8CC3.0106:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 18 Oct 2009 18:07:18 -0400 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:32074 Archived-At: This is probably a feature, not a bug. But I don't really see it explained, and it confuses me, at least. emacs -Q M-: (read-char "aaa: ") Hit `M-a'. That returns an `a' char with acute accent - 225 (#o341, #xe1). Similarly, for other `Meta' key sequences. `read-char-exclusive' does the same thing. The doc string does say: "If the character has modifiers, they are resolved and reflected to the character code if possible (e.g. C-SPC -> 0)." That's a bit cryptic ("reflected to the char code"?), but I guess it means this has something to do with character encodings? How do I control that in Elisp - how, for instance, do I make `read-char' treat `M-a' as a non-character event? (I assume that most people don't use `M-a' if they want to insert an `a' with acute accent.) Maybe the doc (e.g. manual) could explain this. Also, for the arg descriptions the Elisp manual refers to the `read-event' doc (same node) for an explanation. But that doc says: If INHERIT-INPUT-METHOD is non-`nil', then the current input method (if any) is employed to make it possible to enter a non-ASCII character. Otherwise, input method handling is disabled for reading this event. I don't think that accented chars are ASCII chars. So is this doc incorrect? It makes it sound as if you cannot enter a non-ASCII character, but `M-a' seems to do just that (and it does so whether the INHERIT-INPUT-METHOD arg is nil or t). Anyway, call me confused. HTH, to clarify the doc for me and others who might be similarly confused. In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-29 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4)'