From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefano Zacchiroli Newsgroups: gmane.emacs.bugs Subject: bug#1072: Viper version is 3.14 of April 06, 2008; can't exit viper insert mode with ESC using emacsclient -t Date: Sun, 16 Nov 2008 17:18:47 +0100 Message-ID: <20081116161847.GA23852@usha.takhisis.invalid> References: <20081007190607.32194926@kiferserv> <20081114134814.GA9550@usha.takhisis.invalid> <20081114145028.2a62ac24@kiferdesk> <200811142040.mAEKeL7R015416@mothra.ics.uci.edu> <20081114155520.5ca2f5d0@kiferserv> <200811142122.mAELMiVE015560@mothra.ics.uci.edu> <20081114174655.4b174fe4@kiferserv> <20081115013241.GA9620@usha.takhisis.invalid> <20081116000252.32203b3a@kiferserv> Reply-To: Stefano Zacchiroli , 1072@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1226878283 31334 80.91.229.12 (16 Nov 2008 23:31:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Nov 2008 23:31:23 +0000 (UTC) Cc: 1072@emacsbugs.donarmstrong.com To: Michael Kifer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 17 00:32:23 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L1r6N-0000bA-BP for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Nov 2008 00:32:23 +0100 Original-Received: from localhost ([127.0.0.1]:46993 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1r5E-0001qA-W5 for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Nov 2008 18:31:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L1r4P-0001GH-78 for bug-gnu-emacs@gnu.org; Sun, 16 Nov 2008 18:30:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L1r4L-0001Eb-Lg for bug-gnu-emacs@gnu.org; Sun, 16 Nov 2008 18:30:18 -0500 Original-Received: from [199.232.76.173] (port=53683 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1r4K-0001Dw-TF for bug-gnu-emacs@gnu.org; Sun, 16 Nov 2008 18:30:17 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59437) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L1r4K-0004Xs-2Z for bug-gnu-emacs@gnu.org; Sun, 16 Nov 2008 18:30:16 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAGNU8sX031122; Sun, 16 Nov 2008 15:30:09 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mAGNK5xO028353; Sun, 16 Nov 2008 15:20:05 -0800 X-Loop: don@donarmstrong.com Resent-From: Stefano Zacchiroli Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 16 Nov 2008 23:20:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1072 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1072-submit@emacsbugs.donarmstrong.com id=B1072.122687730026801 (code B ref 1072); Sun, 16 Nov 2008 23:20:05 +0000 Original-Received: (at 1072) by emacsbugs.donarmstrong.com; 16 Nov 2008 23:15:00 +0000 Original-Received: from fettunta.fettunta.org (fettunta.fettunta.org [67.207.129.222]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAGNEv63026788 for <1072@emacsbugs.donarmstrong.com>; Sun, 16 Nov 2008 15:14:58 -0800 Original-Received: from usha.takhisis.invalid (unknown [10.17.0.18]) by fettunta.fettunta.org (Postfix) with ESMTP id C3B97182FA; Sun, 16 Nov 2008 23:14:56 +0000 (UTC) Original-Received: by usha.takhisis.invalid (Postfix, from userid 1000) id 5B4A061A4; Sun, 16 Nov 2008 17:18:47 +0100 (CET) Content-Disposition: inline In-Reply-To: <20081116000252.32203b3a@kiferserv> User-Agent: Mutt/1.5.18 (2008-05-17) X-MIME-Autoconverted: from 8bit to quoted-printable by rzlab.ucr.edu id mAGNU8sX031122 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 16 Nov 2008 18:30:18 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22424 Archived-At: On Sun, Nov 16, 2008 at 12:02:52AM -0500, Michael Kifer wrote: > I committed the changes to cvs. > Pls see if it solves the problem. First of all many thanks for the quick feedback! I took the following 5 files from Emacs CVS: viper-cmd.el viper.el viper-init.el viper-keym.el viper-util.el AFAICT they are the only files you touched to implement the fix, is that correct? Using those files part of the problem is solved, but not its entirety. In particular, exiting from insert mode in console clients works out of the box without needing the hack: (setq viper-ESC-key (kbd "ESC")) ;; workaround for #1072 before loading Viper. And that's already great! Still, typing M-x (or other M-something) does not work appropriately, i.e. it stills makes Viper exit insert mode. I double checked and in a freshly run "emacs -nw" it does work as expected. Nevertheless, the timeout is visibly set properly, I assume via the new introduced function. Indeed typing ESC in a X11 frame immediately exits insert mode, while doing that in console has some delay, I guess the 200 ms which the function correctly return. Evaluating (viper-ESC-keyseq-timeout) in the two cases confirms that it is the case. My best guess at an explanation for the remaining problem is that there is some additional setting which deserves the same treatment, but I've no idea about which one ... Let me know how can I debug this any further. TIA, Cheers. --=20 Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7 zack@{upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/ Dietro un grande uomo c'=E8 ..| . |. Et ne m'en veux pas si je te tutoi= e sempre uno zaino ...........| ..: |.... Je dis tu =E0 tous ceux que j'aim= e