From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#11822: 24.1; emacsclient terminal mode captures escape characters as text Date: Tue, 08 Sep 2015 22:08:35 +0300 Message-ID: <834mj47mq4.fsf@gnu.org> References: <6eipe9fypj.fsf@just-testing.permabit.com> <83d34h739a.fsf@gnu.org> <501848BE.10702@permabit.com> <5021D940.8050401@permabit.com> <415962DC-9BF5-4595-8180-7BE8DB545206@permabit.com> <502427D2.3080003@permabit.com> <83ipcre0fm.fsf@gnu.org> <2AB38709-2307-437E-A242-70B8A358BE4F@permabit.com> <83a9y3dwa8.fsf@gnu.org> <838vdndv9m.fsf@gnu.org> <1341183F-84AB-4257-B28B-57BDE5CA4F20@permabit.com> <83r3m97bzs.fsf@gnu.org> <83d1xs7rij.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1441739497 24526 80.91.229.3 (8 Sep 2015 19:11:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Sep 2015 19:11:37 +0000 (UTC) Cc: raeburn@permabit.com, 11822@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 08 21:11:23 2015 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 1ZZOIW-0008PO-JZ for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Sep 2015 21:11:16 +0200 Original-Received: from localhost ([::1]:36793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZOIR-00060a-C3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Sep 2015 15:11:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZOIN-000603-G4 for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2015 15:11:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZOII-0002fw-IY for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2015 15:11:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZOII-0002fp-G0 for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2015 15:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZZOII-0007io-5E for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2015 15:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Sep 2015 19:11: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.144173943229645 (code B ref 11822); Tue, 08 Sep 2015 19:11:02 +0000 Original-Received: (at 11822) by debbugs.gnu.org; 8 Sep 2015 19:10:32 +0000 Original-Received: from localhost ([127.0.0.1]:52968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZOHn-0007i4-Ll for submit@debbugs.gnu.org; Tue, 08 Sep 2015 15:10:32 -0400 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:51812) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZOHk-0007hu-V5 for 11822@debbugs.gnu.org; Tue, 08 Sep 2015 15:10:29 -0400 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NUD00300GJ01800@mtaout24.012.net.il> for 11822@debbugs.gnu.org; Tue, 08 Sep 2015 22:00:44 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NUD003H0GT8RO00@mtaout24.012.net.il>; Tue, 08 Sep 2015 22:00:44 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.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:106267 Archived-At: > From: Stefan Monnier > Cc: raeburn@permabit.com, 11822@debbugs.gnu.org > Date: Tue, 08 Sep 2015 14:52:22 -0400 > > > In any case, I think the issue at hand is that more than one frame is > > being redisplayed when only one should suffice. > > Agreed (tho it's probably 2 instead, but the other one's redisplay > should be fairly simple and efficient: just redraw the modeline to > reflect its new non-selected status). Perhaps so, but note that this particular use case (i.e. a client frame displayed via a slow network) gives a rather new meaning to "redisplay optimizations": where normally we mainly try to avoid redrawing the parts of any window that didn't change, here we need to try to avoid even considering those parts, or at least minimize the X calls while we consider them. I think until now the assumption was that the most expensive parts of redisplay are those that regenerate glyph matrices and those that actually send data to the glass; here the expensive parts are elsewhere. So if redrawing the mode line involves recomputing all the basic faces, it might still be too expensive over a slow network. We need to avoid that recomputation where possible.