From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rob Giardina Newsgroups: gmane.emacs.devel Subject: Re: read-char doesn't use input-decode-map Date: Wed, 30 Dec 2009 19:56:14 +0000 (UTC) Message-ID: References: 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 1262203018 9929 80.91.229.12 (30 Dec 2009 19:56:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Dec 2009 19:56:58 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 30 20:56:51 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 1NQ4f4-0004iA-Ma for ged-emacs-devel@m.gmane.org; Wed, 30 Dec 2009 20:56:50 +0100 Original-Received: from localhost ([127.0.0.1]:37501 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQ4f5-00029c-5u for ged-emacs-devel@m.gmane.org; Wed, 30 Dec 2009 14:56:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NQ4f0-00029A-Jb for emacs-devel@gnu.org; Wed, 30 Dec 2009 14:56:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NQ4ew-00028K-44 for emacs-devel@gnu.org; Wed, 30 Dec 2009 14:56:46 -0500 Original-Received: from [199.232.76.173] (port=60887 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQ4ev-00028A-VA for emacs-devel@gnu.org; Wed, 30 Dec 2009 14:56:41 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:56893) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NQ4ev-0007Y4-FL for emacs-devel@gnu.org; Wed, 30 Dec 2009 14:56:41 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NQ4er-0004cn-Kc for emacs-devel@gnu.org; Wed, 30 Dec 2009 20:56:37 +0100 Original-Received: from 216.88.35.15 ([216.88.35.15]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Dec 2009 20:56:37 +0100 Original-Received: from rgiar by 216.88.35.15 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Dec 2009 20:56:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 216.88.35.15 (Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_1; en-US) AppleWebKit/532.8 (KHTML, like Gecko) Chrome/4.0.285.0 Safari/532.8) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:119070 Archived-At: Stefan Monnier IRO.UMontreal.CA> writes: > > I've noticed that read-char doesn't use input-decode-map. > > Indeed. And changing that can introduce bugs elsewhere. > That's why Emacs-23.2 introduced read-key which obeys input-decode-map > and friends (to the extent possible). Wow, read-key is pretty wild. I didn't realize you could do that with idle timers. Perhaps that's vanilla if you're used to emacs' event handling :) This apparently means that code like I attached has no way to reliably translate all of a certain key into another key, at least for existing code that uses read-char. For example, y-or-n-p. -Rob