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: Fri, 11 Sep 2015 21:34:24 -0400 Message-ID: <53B2D761-789B-4071-BFAE-3FF604C89832@permabit.com> References: <6eipe9fypj.fsf@just-testing.permabit.com> <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> <37C523EE-3D76-40F7-B7B2-99D6F0BD7B97@permabit.com> <83bndc7r5b.fsf@gnu.org> <6ea8swr8ja.fsf@just-testing.permabit.com> <83si6n65ld.fsf@gnu.org> <6e613irc91.fsf@just-testing.permabit.com> <83bnda5lso.fsf@gnu.org> <6ezj0tphtd.fsf@just-testing.permabit.com> <83h9n14e04.fsf@gnu.org> <6esi6kpn4t.fsf@just-testing.permabit.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1442021723 13696 80.91.229.3 (12 Sep 2015 01:35:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Sep 2015 01:35:23 +0000 (UTC) Cc: 11822@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 12 03:35:11 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 1ZaZig-0003Rr-UC for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Sep 2015 03:35:11 +0200 Original-Received: from localhost ([::1]:59164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaZif-00030m-Ll for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Sep 2015 21:35:09 -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 1ZaZic-0002yS-86 for bug-gnu-emacs@gnu.org; Fri, 11 Sep 2015 21:35:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZaZiZ-0008Hu-2S for bug-gnu-emacs@gnu.org; Fri, 11 Sep 2015 21:35:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaZiZ-0008Hn-08 for bug-gnu-emacs@gnu.org; Fri, 11 Sep 2015 21:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZaZiY-000250-SI for bug-gnu-emacs@gnu.org; Fri, 11 Sep 2015 21:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Raeburn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Sep 2015 01:35: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.14420216707948 (code B ref 11822); Sat, 12 Sep 2015 01:35:02 +0000 Original-Received: (at 11822) by debbugs.gnu.org; 12 Sep 2015 01:34:30 +0000 Original-Received: from localhost ([127.0.0.1]:57536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZaZi2-000247-6R for submit@debbugs.gnu.org; Fri, 11 Sep 2015 21:34:30 -0400 Original-Received: from mail-qg0-f43.google.com ([209.85.192.43]:35423) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZaZi1-000240-5D for 11822@debbugs.gnu.org; Fri, 11 Sep 2015 21:34:29 -0400 Original-Received: by qgt47 with SMTP id 47so77058037qgt.2 for <11822@debbugs.gnu.org>; Fri, 11 Sep 2015 18:34:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=permabit.com; s=google; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=gZA2qdE0bnHAV54XsZWxn1YgoHugkPsjnAXF4V7zV0c=; b=LpHQiVvMTHcTtyI4y4gn6D8FHbveaUofnB2X4NCfSY7p5DDzAkx87E1iQyFopN+5d1 +4poF9guH0rAiByBD1WrSZMXJCCgVMeVg8GHhTeGuT7GoU3LGq1IAf5VrixsCY2xVbLH wHd56f6bIV3KumteJ5RC0549qmhp18YcmkbyI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=gZA2qdE0bnHAV54XsZWxn1YgoHugkPsjnAXF4V7zV0c=; b=E5obWgLYClsY1sDls7Sdu/jlr13wI96yaILZsN8KGezLeo+U69PeEkcSbnTHEhcJLc SgeBphNEizo6Paf4mhL4AvPPx0e3WAVLpLlGL7TKgEgKpYSTiC2fHWPLOXM/ROj1ejt9 OcmCV8LbGEPjo2JFhDCiVgcVQOlhp5b0M58ZNVOjxy4tbZ1tMI7yM1zYgdV/+PL2LPlz l4wlVWgYhpMm3pDIGW6IcSeHquibtjmKW1fOZCOYgq3yHs1oFenYjFui1oH40fgef62P +mD+mGoEeIZ7NLME3lWMB+7UO1XWbec9U7SxiD7HiuCPFFdZQfkYbcFlipDmpRGERQAc OHig== X-Gm-Message-State: ALoCoQlG8x44vLLc3uNuAIFiPiOsff7c2HVzizK6g42FHZcNTEyB0AyIBJm5OFJv9FHhDlLjZqhX X-Received: by 10.140.33.225 with SMTP id j88mr2924877qgj.30.1442021668630; Fri, 11 Sep 2015 18:34:28 -0700 (PDT) Original-Received: from [192.168.17.111] (c-66-31-203-101.hsd1.ma.comcast.net. [66.31.203.101]) by smtp.gmail.com with ESMTPSA id n23sm1240579qkl.17.2015.09.11.18.34.26 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Sep 2015 18:34:27 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.2104) 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:106440 Archived-At: > Maybe instead of doing >=20 > prepare_menu_bars: > (forall frames (compute-title-and-stuff)) > later: > (forall frames (recompute-glyph-matrices-and-then-display)) >=20 > we should do >=20 > (forall frames > (compute-title-and-stuff) > (recompute-glyph-matrices-and-then-display)) I think that would probably help, yes. > BTW, IIUC while Xlib is not designed for [pipelining requests we need = to > receive responses for], the newer Xcb library > exposes the underlying wire protocol more directly, making it possible > to send several color requests before waiting for the replies. That=E2=80=99s good news. Taking full advantage of it would probably = require changes to the generic face code, if we want to send all the = color names for multiple faces and then wait to collect the responses. = But on a smaller scale, doing it for all colors used in defining one = face would be a start. > FWIW, I've used 8bit-deep framebuffers not that long ago. > But they're probably rare by now, indeed. So we should probably still support them, I expect. But it may be worth = optimizing for the more common case; for example, we could try = allocating new colors as they=E2=80=99re requested, when they=E2=80=99re = not cached, and if we fail to allocate, then maybe we go clean out the = cache of colors no longer in use. (Or after a timeout of several seconds = of idle time or something like that, to help us play nicer with the = neighbors.) > As mentioned earlier, I think this is not true if we repeat it = per-frame > since we can have 100 frames, at which point the delay can become > significant even locally. Yes. I expect the work you=E2=80=99ve started should help a great deal = in that area. Ken=