From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu 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 13:22:44 -0800 (PST) Message-ID: <200811142122.mAELMiVE015560@mothra.ics.uci.edu> 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> Reply-To: Dan Nicolaescu , 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 1226698244 13448 80.91.229.12 (14 Nov 2008 21:30:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Nov 2008 21:30:44 +0000 (UTC) Cc: Romain Francoise , Stefano Zacchiroli , 1072@emacsbugs.donarmstrong.com To: kifer@cs.sunysb.edu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 14 22:31:44 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 1L16GL-0000dW-3M for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Nov 2008 22:31:42 +0100 Original-Received: from localhost ([127.0.0.1]:58890 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L16F9-0001ge-TU for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Nov 2008 16:30:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L16F5-0001gY-Df for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2008 16:30:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L16F3-0001gM-Tz for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2008 16:30:14 -0500 Original-Received: from [199.232.76.173] (port=55016 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L16F3-0001gJ-Ml for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2008 16:30:13 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:46635) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L16F3-0006gB-Bo for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2008 16:30:13 -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 mAELU7w3018584; Fri, 14 Nov 2008 13:30:08 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mAELU3nc018134; Fri, 14 Nov 2008 13:30:03 -0800 X-Loop: don@donarmstrong.com Resent-From: Dan Nicolaescu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 14 Nov 2008 21:30: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.122669779116774 (code B ref 1072); Fri, 14 Nov 2008 21:30:03 +0000 Original-Received: (at 1072) by emacsbugs.donarmstrong.com; 14 Nov 2008 21:23:11 +0000 Original-Received: from sallyv2.ics.uci.edu (sallyv2.ics.uci.edu [128.195.1.120]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAELN8NO016768 for <1072@emacsbugs.donarmstrong.com>; Fri, 14 Nov 2008 13:23:09 -0800 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mAELMjFp027657; Fri, 14 Nov 2008 13:22:45 -0800 (PST) Original-Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mAELMiVE015560; Fri, 14 Nov 2008 13:22:44 -0800 (PST) In-Reply-To: <20081114155520.5ca2f5d0@kiferserv> (Michael Kifer's message of "Fri, 14 Nov 2008 15:55:20 -0500") Original-Lines: 29 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mAELMjFp027657 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 14 Nov 2008 16:30: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:22348 Archived-At: Michael Kifer writes: > On Fri, 14 Nov 2008 12:40:21 -0800 (PST) > Dan Nicolaescu wrote: > > > Michael Kifer writes: > > > > > On Fri, 14 Nov 2008 14:48:14 +0100 > > > Stefano Zacchiroli wrote: > > > > > > > 1) viper-ESC-keyseq-timeout is a global variable, shared by all Emacs > > > > clients, can it be made local to a buffer (actually it would be > > > > enough to make it local to a client, but I don't believe it is > > > > possible), or there is some Viper magic which would defeat this > > > > solution not work? > > > > > > I don't see a reason why this variable cannot be buffer-local. > > > > Disclaimer: I don't know anything about viper. > > > > But the above does not sound right: a buffer can be used in both an X11 > > frame and a tty frame at the same time, so a buffer-local value won't > > work. > > 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.