From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier 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: Fri, 14 Nov 2008 17:39:30 -0500 Message-ID: References: <20081006095245.2FE176A99@usha.takhisis.invalid> <20081006124104.25eb7619@kiferserv> <20081007144950.GA20151@usha.takhisis.invalid> <48EB8C94.2070403@gmail.com> <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> Reply-To: Stefan Monnier , 1072@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226703039 28713 80.91.229.12 (14 Nov 2008 22:50:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Nov 2008 22:50:39 +0000 (UTC) Cc: Stefano Zacchiroli , Romain Francoise , kifer@cs.sunysb.edu, 1072@emacsbugs.donarmstrong.com To: Dan Nicolaescu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 14 23:51:39 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 1L17Vo-0002hK-GF for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Nov 2008 23:51:37 +0100 Original-Received: from localhost ([127.0.0.1]:57778 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L17Ug-0005V9-Dw for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Nov 2008 17:50:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L17UV-0005Rz-E3 for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2008 17:50:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L17US-0005Qh-7T for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2008 17:50:14 -0500 Original-Received: from [199.232.76.173] (port=49976 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L17US-0005Qb-2h for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2008 17:50:12 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:42608) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L17UR-0003IK-Og for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2008 17:50:12 -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 mAEMo87i005815; Fri, 14 Nov 2008 14:50:08 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mAEMj3W1004083; Fri, 14 Nov 2008 14:45:03 -0800 X-Loop: don@donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 14 Nov 2008 22:45:03 +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.12267023792811 (code B ref 1072); Fri, 14 Nov 2008 22:45:03 +0000 Original-Received: (at 1072) by emacsbugs.donarmstrong.com; 14 Nov 2008 22:39:39 +0000 Original-Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAEMdZUv002799 for <1072@emacsbugs.donarmstrong.com>; Fri, 14 Nov 2008 14:39:37 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsAEAA6NHUlMCrcy/2dsb2JhbACBbc4MgnmBEoIj X-IronPort-AV: E=Sophos;i="4.33,606,1220241600"; d="scan'208";a="29898433" Original-Received: from 76-10-183-50.dsl.teksavvy.com (HELO pastel.home) ([76.10.183.50]) by ironport2-out.teksavvy.com with ESMTP; 14 Nov 2008 17:39:30 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 67D7B84E1; Fri, 14 Nov 2008 17:39:30 -0500 (EST) In-Reply-To: <200811142122.mAELMiVE015560@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Fri, 14 Nov 2008 13:22:44 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 14 Nov 2008 17:50:14 -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:22349 Archived-At: >> Yes, you are right. If there is a way to find out whether the selected window >> is in a terminal frame or X frame then viper-ESC-keyseq-timeout can be made >> into a function. > If (window-system) is nil, you are using a terminal frame. Or if you want code that also works with Emacs-22 (don't know about XEmacs), you can use (framep (selected-frame)) which also returns info about the kind of terminal used. Stefan