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: Bug with tmux/screen and special characters Date: Tue, 27 May 2014 08:47:36 -0400 Message-ID: References: <20140527043924.GA22115@debian> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1401194884 27140 80.91.229.3 (27 May 2014 12:48:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 May 2014 12:48:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: Danil Orlov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 27 14:47:56 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WpGnM-0003k2-BR for ged-emacs-devel@m.gmane.org; Tue, 27 May 2014 14:47:56 +0200 Original-Received: from localhost ([::1]:34149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpGnL-00089B-PU for ged-emacs-devel@m.gmane.org; Tue, 27 May 2014 08:47:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpGnB-00084x-Hi for emacs-devel@gnu.org; Tue, 27 May 2014 08:47:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WpGn3-0005UH-Uh for emacs-devel@gnu.org; Tue, 27 May 2014 08:47:45 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:16177) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpGn3-0005U2-QS for emacs-devel@gnu.org; Tue, 27 May 2014 08:47:37 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNLd/fU/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCwsOJhIUGA0kiAQI0hkXjnoHhDgEqRmBaoNMIQ X-IPAS-Result: ArUGAIDvNVNLd/fU/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCwsOJhIUGA0kiAQI0hkXjnoHhDgEqRmBaoNMIQ X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="64362952" Original-Received: from 75-119-247-212.dsl.teksavvy.com (HELO pastel.home) ([75.119.247.212]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 27 May 2014 08:47:36 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id A7BF16046C; Tue, 27 May 2014 08:47:36 -0400 (EDT) In-Reply-To: <20140527043924.GA22115@debian> (Danil Orlov's message of "Tue, 27 May 2014 08:39:24 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172140 Archived-At: > I've found that if I run emacs 24.3.1 under tmux or GNU screen, and > add this snippet to my .emacs: > (global-set-key (kbd "M-[") 'hide-subtree) > (global-set-key (kbd "M-]") 'show-subtree) M-[ in text-terminals is sent to Emacs as "ESC [". > then I receive trouble with such keys: Home, End, PgUp, PgDown, F1-F12 . These keys are sent by the text terminal as escape sequences that start with "ESC [". Stefan