From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: iquiw Newsgroups: gmane.emacs.help Subject: viper-mode C-[ behavior change in Emacs 24.4 Date: Wed, 30 Jul 2014 23:10:08 +0900 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1406761880 4793 80.91.229.3 (30 Jul 2014 23:11:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Jul 2014 23:11:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 31 01:11:14 2014 Return-path: Envelope-to: geh-help-gnu-emacs@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 1XCd1d-0003Lx-1J for geh-help-gnu-emacs@m.gmane.org; Thu, 31 Jul 2014 01:11:13 +0200 Original-Received: from localhost ([::1]:53522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCd1c-0004iL-If for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Jul 2014 19:11:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCUaN-0005KV-T4 for help-gnu-emacs@gnu.org; Wed, 30 Jul 2014 10:10:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XCUaM-0008ON-OB for help-gnu-emacs@gnu.org; Wed, 30 Jul 2014 10:10:31 -0400 Original-Received: from mail-yh0-x22b.google.com ([2607:f8b0:4002:c01::22b]:46795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCUaM-0008O1-3Z for help-gnu-emacs@gnu.org; Wed, 30 Jul 2014 10:10:30 -0400 Original-Received: by mail-yh0-f43.google.com with SMTP id 29so710069yhl.16 for ; Wed, 30 Jul 2014 07:10:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=EIsq1EG2g7k7H3StQ+OBZJcXB2DLCdXysNufKUwCw5Q=; b=SUrj6bg0xxZ1ePM8uvvlDYgPSEjU90Zcd1fscgJ/LfC0zYNQ0m9L/NTuQ4isy7eoU/ +s/hRaFU5hIy2W63+l9dfiDPoI5JmmkdKZOvOy+dMeUeRwiF1qmAeJRTp0V4rpZw7DYz yQ6t8HGKvMa+RFDW6L2r+iVLs8asK19BavUWu1rBJvbzk2NjmittveP0tLyB4KNkXqYR B8Kevmhdi7d5USfsvxJ0KQ2IA5ySonjr1BzJz9P5eNq2lFJtyNjDq1XLv6odqpSiMe+U 4GGcvRyJ3XRKICFUBAedEo8yA+w/bJ/ZCAfEvDmZhcj+H1DG78ZYQEhQdjkE+BGCmTQc 8A8w== X-Received: by 10.236.228.40 with SMTP id e38mr7092601yhq.76.1406729428984; Wed, 30 Jul 2014 07:10:28 -0700 (PDT) Original-Received: by 10.170.159.135 with HTTP; Wed, 30 Jul 2014 07:10:08 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c01::22b X-Mailman-Approved-At: Wed, 30 Jul 2014 19:10:58 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99011 Archived-At: Hi, I'm using "C-[" key as ESC key in viper-mode, i.e. to escape from viper insert mode. It works on Emacs 24.3, but not on Emacs 24.3.92. Typing "C-[" just displays "ESC-" in minibuffer on Emacs 24.3.92. I found a workaround, evaluating the following code (from viper-catch-tty-ESC) gives expected behavior. ``` (let ((esc-binding (viper-uncatch-tty-ESC))) (define-key input-decode-map [?\e] `(menu-item "" ,esc-binding :filter viper--tty-ESC-filter))) ``` I would like to know proper way to achieve the behavior. Thanks in advance.