From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Best way to intercept terminal escape sequences? Date: Tue, 07 Sep 2010 09:32:41 +0900 Message-ID: References: <20100827142724.E1DD712F@hazard.ece.cmu.edu> <4C77CF3C.6050406@ece.cmu.edu> <834oegm5c3.fsf@gnu.org> <4C78C0AF.5040502@ece.cmu.edu> <4C7D8C45.8060500@ece.cmu.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1283819583 17098 80.91.229.12 (7 Sep 2010 00:33:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Sep 2010 00:33:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 07 02:33:01 2010 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.69) (envelope-from ) id 1Osm7O-0000S1-N1 for ged-emacs-devel@m.gmane.org; Tue, 07 Sep 2010 02:32:59 +0200 Original-Received: from localhost ([127.0.0.1]:47464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Osm7O-0004MV-1V for ged-emacs-devel@m.gmane.org; Mon, 06 Sep 2010 20:32:58 -0400 Original-Received: from [140.186.70.92] (port=50782 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Osm7E-0004Kg-34 for emacs-devel@gnu.org; Mon, 06 Sep 2010 20:32:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Osm7C-0006OO-Iu for emacs-devel@gnu.org; Mon, 06 Sep 2010 20:32:47 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:47489) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Osm7B-0006OF-W4 for emacs-devel@gnu.org; Mon, 06 Sep 2010 20:32:46 -0400 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id o870WgK2009620; Tue, 7 Sep 2010 09:32:42 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id o870WgJD013964; Tue, 7 Sep 2010 09:32:42 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id o870WfEh002172; Tue, 7 Sep 2010 09:32:41 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.71) (envelope-from ) id 1Osm77-0001gg-M3; Tue, 07 Sep 2010 09:32:41 +0900 In-Reply-To: (message from Stefan Monnier on Mon, 06 Sep 2010 14:39:14 +0200) X-detected-operating-system: by eggs.gnu.org: Solaris 9 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:129733 Archived-At: Sorry, I have not read this thread. In article , Stefan Monnier writes: >>> As mentioned, read-event did not do obey keyboard-coding-system in >>> earlier Emacsen, so any affected package is more likely to be fixed than >>> broken by making a change that reverts to this previous behavior. > > Handa, could you take a look at the feasibility of moving the > > decode_keyboard_code to a later stage such that read-event still returns > > raw bytes for ttys? > ping? "... read-event still returns raw bytes" means that you can't get, for instance, A-ogonek event by read-event (or read-char) even if you type A-ogonek from a terminal. I don't remember well but one reason of moving keyboard-coding-system handling from keymap to the current place was to make read-event on tty work as the same way as that on graphic terminal. So, I think we should not change it. Is it difficult to make new functions, say tty-getc and tty-ungetc, to handle responsding escape sequences sent from terminal? --- Kenichi Handa handa@m17n.org