From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Best way to intercept terminal escape sequences? Date: Sat, 28 Aug 2010 01:50:40 +0200 Message-ID: References: <4C768F08.1000503@ece.cmu.edu> <4C778535.9020206@ece.cmu.edu> <87tymg8hq3.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1282953138 15219 80.91.229.12 (27 Aug 2010 23:52:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 Aug 2010 23:52:18 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 28 01:52:17 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 1Op8iS-0008FL-JA for ged-emacs-devel@m.gmane.org; Sat, 28 Aug 2010 01:52:12 +0200 Original-Received: from localhost ([127.0.0.1]:53566 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Op8iQ-0004Dm-FU for ged-emacs-devel@m.gmane.org; Fri, 27 Aug 2010 19:52:10 -0400 Original-Received: from [140.186.70.92] (port=48733 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Op8iH-0004DP-CW for emacs-devel@gnu.org; Fri, 27 Aug 2010 19:52:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Op8iC-0002Zp-KB for emacs-devel@gnu.org; Fri, 27 Aug 2010 19:52:01 -0400 Original-Received: from smtp22.services.sfr.fr ([93.17.128.13]:6587) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Op8i7-0002ZN-IE; Fri, 27 Aug 2010 19:51:51 -0400 Original-Received: from filter.sfr.fr (localhost [127.0.0.1]) by msfrf2216.sfr.fr (SMTP Server) with ESMTP id B63B27000088; Sat, 28 Aug 2010 01:51:49 +0200 (CEST) Original-Received: from fmsmemgm.homelinux.net (97.92.71-86.rev.gaoland.net [86.71.92.97]) by msfrf2216.sfr.fr (SMTP Server) with ESMTP id EEEE57000081; Sat, 28 Aug 2010 01:50:40 +0200 (CEST) X-SFR-UUID: 20100827235040978.EEEE57000081@msfrf2216.sfr.fr Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 7C8A5AE3C6; Sat, 28 Aug 2010 01:50:40 +0200 (CEST) In-Reply-To: <87tymg8hq3.fsf@lola.goethe.zz> (David Kastrup's message of "Fri, 27 Aug 2010 12:36:52 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.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:129324 Archived-At: > You should set it to raw-text, do your mouse code preprocessing, and > afterwards decode the remainder using the intended coding system. I'm not sure when this decoding takes place nowadays (it used to be performed in key-translation-map, which was too late), but if it's done very early as I suspect, changing keyboard-coding-system might not have any effect because the translation might have taken place already. Stefan