From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.bugs Subject: bug#11822: 24.1; emacsclient terminal mode captures escape characters as text Date: Tue, 31 Jul 2012 17:06:06 -0400 Message-ID: <501848BE.10702@permabit.com> References: <6eipe9fypj.fsf@just-testing.permabit.com> <83d34h739a.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1343768809 8790 80.91.229.3 (31 Jul 2012 21:06:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 Jul 2012 21:06:49 +0000 (UTC) Cc: 11822@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 31 23:06:49 2012 Return-path: Envelope-to: geb-bug-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 1SwJeQ-0001AY-AZ for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Jul 2012 23:06:46 +0200 Original-Received: from localhost ([::1]:37072 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwJeP-0002vT-Iw for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Jul 2012 17:06:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwJeM-0002vF-Vr for bug-gnu-emacs@gnu.org; Tue, 31 Jul 2012 17:06:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwJeL-0001mS-UC for bug-gnu-emacs@gnu.org; Tue, 31 Jul 2012 17:06:42 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43662) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwJeL-0001mN-RG for bug-gnu-emacs@gnu.org; Tue, 31 Jul 2012 17:06:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SwJlS-0005E6-9U for bug-gnu-emacs@gnu.org; Tue, 31 Jul 2012 17:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Raeburn Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 Jul 2012 21:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11822 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11822-submit@debbugs.gnu.org id=B11822.134376921120043 (code B ref 11822); Tue, 31 Jul 2012 21:14:02 +0000 Original-Received: (at 11822) by debbugs.gnu.org; 31 Jul 2012 21:13:31 +0000 Original-Received: from localhost ([127.0.0.1]:53206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SwJkx-0005DD-Cd for submit@debbugs.gnu.org; Tue, 31 Jul 2012 17:13:31 -0400 Original-Received: from pbit-mailserver.permabit.com ([204.246.225.83]:50046) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SwJku-0005D5-9Y for 11822@debbugs.gnu.org; Tue, 31 Jul 2012 17:13:30 -0400 Original-Received: from just-testing.permabit.com (just-testing.permabit.com [10.95.208.54]) by pbit-mailserver.permabit.com (Postfix) with ESMTP id D2DBC148E16E; Tue, 31 Jul 2012 17:06:06 -0400 (EDT) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20120317 Icedove/3.0.11 In-Reply-To: <83d34h739a.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62691 Archived-At: On 06/30/12 01:55, Eli Zaretskii wrote: >> From: Ken Raeburn >> Date: Fri, 29 Jun 2012 20:08:40 -0400 >> >> I have no idea what the "error during redisplay" messages shown below >> are about >> > They come from safe_eval_handler, called by safe_eval when the Lisp > expression it evaluates signals an error. This is done because > signaling an error in the usual way in this situation will re-renter > redisplay, which will then again signal an error, etc. > > Can you find out which form causes this error? This should be > something like :eval form in something the display engine needs to > evaluate, perhaps some part of the mode line. > I finally ran into this one again, and tracked it down... in C mode I set header-line-format to hold: (which-func-mode ("" which-func-format)) and which-func-format uses which-func-current which evaluates (gethash (selected-window) which-func-table which-func-unknown) but when my cursor is outside a function, which-func-table does contain an entry for the selected window, and the associated value is nil, which is not allowed at this point. If I redefine which-func-current to use (or (gethash (selected-window) which-func-table nil) which-func-unknown) then it displays "[???]" in my header line (which-func-unknown being set to "???"), as it should. I don't know if it's intended that the window be listed in the hash with a nil value or not. I still have not seen another occurrence of the original problem I reported, the control-sequence response winding up in the current buffer when I use emacsclient in terminal mode... I'll keep watching for it though. Ken