From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: wahjava.ml@gmail.com (Ashish SHUKLA) Newsgroups: gmane.emacs.devel Subject: Re: Emacs enters in a loop with emacsclient -t Date: Mon, 04 Mar 2013 03:39:47 +0530 Organization: alt.religion.emacs Message-ID: <86vc98m8yc.fsf@chateau.d.if> References: <86ehfxrurw.fsf@chateau.d.if> <83sj4ctqt6.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1362348626 9617 80.91.229.3 (3 Mar 2013 22:10:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Mar 2013 22:10:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 03 23:10:50 2013 Return-path: Envelope-to: ged-emacs-devel@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 1UCH7H-0007Dr-N3 for ged-emacs-devel@m.gmane.org; Sun, 03 Mar 2013 23:10:47 +0100 Original-Received: from localhost ([::1]:38094 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCH6w-0007O2-0x for ged-emacs-devel@m.gmane.org; Sun, 03 Mar 2013 17:10:26 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCH6r-0007Nu-N8 for emacs-devel@gnu.org; Sun, 03 Mar 2013 17:10:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCH6p-0005RV-CR for emacs-devel@gnu.org; Sun, 03 Mar 2013 17:10:21 -0500 Original-Received: from mail-pb0-f54.google.com ([209.85.160.54]:46320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCH6n-0005Qt-50; Sun, 03 Mar 2013 17:10:17 -0500 Original-Received: by mail-pb0-f54.google.com with SMTP id rr4so2690317pbb.27 for ; Sun, 03 Mar 2013 14:10:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:organization:references :user-agent:x-face:x-uptime:x-operating-system:x-openpgp-fingerprint :x-attribution:organisation:x-hashcash:x-hashcash:face:date :message-id:mime-version:content-type; bh=wusyDYCunYJDz6c9l5/xhGolq/CkLXcmHgK/9vIS7lo=; b=jewlBugumJGyH0F2v/CHLIAlJQ9S8r/iyO0QcB1k5Ar+UI3yIFK2vsJBe5Z1YCnbdo 32k0yYz6olzknsyLAK+Ebvlo0Sh2NcGLQ1auzYYFkJ2wLkuBWa+kqEmqaJGQv6U8wmaF UHhUxyAZ37iCsbApPTQYqcz7knTrajdt6pIE+Ls6p+OQl9sq6gB/e7Bbru1r+Vz1VL3T bSVUpvwPv6nSeqa5jLWyXUcRNphSJ1dsJafk6J2lMWGP34sQI6TWEC4dv9u1WfsfIc1J E+sfc0zRP6iC2znJUs2NvyeH9zILjz3udKAQxjuEVMZJrQI7r2COoFSKUeomkb10xYCV xv9A== X-Received: by 10.67.22.33 with SMTP id hp1mr28999832pad.3.1362348616069; Sun, 03 Mar 2013 14:10:16 -0800 (PST) Original-Received: from chateau.d.if ([182.68.185.139]) by mx.google.com with ESMTPS id ti8sm977378pbc.12.2013.03.03.14.10.12 (version=TLSv1.2 cipher=AES128-SHA bits=128/128); Sun, 03 Mar 2013 14:10:14 -0800 (PST) Original-Received: from chateau.d.if (localhost [IPv6:::1]); by chateau.d.if (OpenSMTPD) with ESMTP id d090c1e7; Mon, 4 Mar 2013 03:39:52 +0530 (IST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (amd64-portbld-freebsd9.1) X-Face: )vGQ9yK7Y$Flebu1C>(B\gYBm)[$zfKM+p&TT[[JWl6:]S>cc$%-z7-`46Zf0B*syL.C]oCq[upTG~zuS0.$"_%)|Q@$hA=9{3l{%u^h3jJ^Zl; t7 X-Uptime: 2:22AM up 2:44, 5 users, load averages: 0.25, 0.11, 0.07 X-Operating-System: FreeBSD/FreeBSD 9.1-RC3/amd64 X-OpenPGP-Fingerprint: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 X-Attribution: =?utf-8?B?4KSG4KS24KWA4KS3?= Organisation: alt.religion.emacs X-Hashcash: 1:20:130303:eliz@gnu.org::UC4SSlG5kIsuyWXl:00000CBWM X-Hashcash: 1:20:130303:emacs-devel@gnu.org::uC4ZB81Q4KqOGly8:0000000000000000000000000000000000000000005bLv Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJ1BMVEWpqal/f39tbW1jY2Md HR2goKCenp6UlJROTk7////9/f35+fnT09ORJdieAAACVklEQVQ4jXXUP2vbQBQA8AvUTkgz5OzY Z0iGWhpS6BSrkECn0mvx0MEJ6AjtYrfoBCVDlD8naJYmNlRfwZq8+mkKlIZaGpJSYmP7Q/XkJDrJ Td8i/H68u3vHPaPufwLdf32AMA4A6GcAgvAamY1pOJiDIFqicTwLswDhfr3uxfFtkAY/GFHPMwzD 8zpnACmIOnE6js7rQb+v4NJrG9od0C+QgpHMy5jBewV+UDSMWiw1Y4fWfyV7+NGFzDsYa3pth9LJ Q4XvXxFHcJRvHOmygn5NAEabnDcQQguarnfoiwSCJ99jmKKcphsZONmWsDK9Ro7cvZOCtQdg8nje egLhc2LNlkLmsezzTFUUy5w18ocox/f0LaLgJy0zO75zk+9pp85GAj36xjqhdI0y3tq2m4dqqcWX zQWBTz8L1irvolXV4J+3q7eCDgVnttjNq6X8H+9KOZsuNk1uCzx8pSp+E9HImfJOTLdcGqo+YKnG EIovizkEn48V7BO+ch2DXcD4ENSpWiU+q8hjjbgTBZCXnZtyj0Ws4Q1Q0B2WXFtYZo65Bbyeeldw RS6qFueM80LlLA29YlVwGRYvFD+kwI/0O+A2PlpOP9GwslUVciHuYGechuBTp922YiDZCrghTknm XSyOM+D3aoRZlo0Jb42zY7DN4p2x4AeZ+QAYutx1sHwTHzMT5cMNduQ9yW3GczN4KZ86kb0c9O8T yXDeFqpl2fryPEAYGXIlezAPXYh2NgVr/gvdoHIuDwuPwOhcWE8f8mmICq41eATkn8x0kuRTIKcB wE9+/QUtiiAnYcaN7wAAAABJRU5ErkJggg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.160.54 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157501 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, On Sun, 03 Mar 2013 18:02:13 +0200, Eli Zaretskii said: >> From: wahjava.ml@gmail.com (Ashish SHUKLA) >> Date: Sun, 03 Mar 2013 09:37:15 +0530 >>=20 >> I'm running Emacs trunk r111924 on FreeBSD 9.1-RC3 (amd64). When I conne= ct to >> Emacs session using 'emacsclient -t', I noticed flicker in xterm. I trus= s-ed >> Emacs process, and it seems like it's sending same stuff in a loop which= seems >> to be causing what I noticed: > Thanks. > First, please post this to bug-gnu-emacs@gnu.org, using the Emacs > command report-emacs-bug. That way, this issue and all the ensuing > discussions are recorded and tracked by the Emacs bug tracker. I posted to list via M-x report-emacs-bug few hours ago, but it never showed up, though it left my MTA. #v+ Mar 3 19:20:21 arati postfix/smtp[31792]: B2235661: to=3D, relay=3Deggs.gnu.org[208.118.235.92]:25, delay=3D5.7, delays=3D0.24= /0/2.2/3.3, dsn=3D2.0.0, status=3Dsent (250 OK id=3D1UCESO-0003OD-Ej) #v- Anyways, in the debbug report, I mentioned following steps to reproduce with emacs -Q: 1. Start Emacs: emacs -Q 2. Start Emacs server: M-x server-start 3. Start emacsclient: emacsclient -t 4. Do C-x C-f, and minibuffer prompt shows up. And xterm window starts flickering, press C-g and it'll stop. Now open any file in 'emacsclient', it'll work fine. Focus to X11 frame, and focus back to xterm running 'emacsclient' session, and press any key. xterm will start flickering again. Press C-g and it'll stop flickering. > And second, please accompany such data with snapshots of the Emacs > frame and description of what was displayed and which mode(s) were in > effect in the displayed windows, when you collected the truss data. > Without this information, the truss data is useless, as it doesn't > even say enough to understand which part(s) of the display are being > redrawn and cause the flicker. Whole of the window frame is being redrawn, from menu-bar to minibuffer. And this happens irrespective of what modes/buffers are active in tty/X11 frame= s. >> write(23,"\^[[50d\^[[38;5;252m\^[[48;5;17m"...,330) =3D 330 (0x14a) >> write(23,"\n\^[[38;5;252m\^[[48;5;17m "...,1024) =3D 1024 (0x400) >> write(23,"_error\^[[39;49m\^[[38;5;252m\^["...,202) =3D 202 (0xca) >> write(23,"\n\^[[38;5;252m\^[[48;5;17m "...,1024) =3D 1024 (0x400) >> write(23,"[39;49m\^[[38;5;252m\^[[48;5;17m"...,143) =3D 143 (0x8f) >> write(23,"\n\^[[38;5;252m\^[[48;5;17m "...,1024) =3D 1024 (0x400) >> write(23,"49m\^[[38;5;84m\^[[48;5;17mservn"...,487) =3D 487 (0x1e7) >> write(23,"\n\^[[38;5;252m\^[[48;5;17m "...,1024) =3D 1024 (0x400) >> write(23," "...,258) =3D 258 (0x102) >> write(23,"\n\^[[38;5;252m\^[[48;5;17m h"...,880) =3D 880 (0x370) >> write(23,"\n\^[[38;5;252m\^[[48;5;17m h"...,765) =3D 765 (0x2fd) >> write(23,"\n\^[[38;5;252m\^[[48;5;17m "...,822) =3D 822 (0x336) >> write(23,"\n\^[[38;5;252m\^[[48;5;17m "...,957) =3D 957 (0x3bd) >> write(23,"\n\^[[38;5;252m\^[[48;5;17m "...,153) =3D 153 (0x99) >> write(23,"\n\^[[38;5;252m\^[[48;5;17m "...,937) =3D 937 (0x3a9) >> write(23,"\n\^[[38;5;252m\^[[48;5;17m "...,576) =3D 576 (0x240) > See, all I can say given this is that you use xterm-256, and here > Emacs is redrawing something like 11 lines with background color 17 > and foreground color 252. I see some small parts of text, like > "_error" and "servn", but that is not enough to understand what is > going on. Right. >> write(23,"\^[[50d\^[[38;5;252m\^[[48;5;17m"...,330) =3D 330 (0x14a) >> write(23,"\n\^[[38;5;252m\^[[48;5;17m "...,1024) =3D 1024 (0x400) >> write(23,"_error\^[[39;49m\^[[38;5;252m\^["...,202) =3D 202 (0xca) >> write(23,"\n\^[[38;5;252m\^[[48;5;17m "...,1024) =3D 1024 (0x400) >> write(23,"[39;49m\^[[38;5;252m\^[[48;5;17m"...,143) =3D 143 (0x8f) >> write(23,"\n\^[[38;5;252m\^[[48;5;17m "...,1024) =3D 1024 (0x400) >> write(23,"49m\^[[38;5;84m\^[[48;5;17mservn"...,487) =3D 487 (0x1e7) >> write(23,"\n\^[[38;5;252m\^[[48;5;17m "...,1024) =3D 1024 (0x400) >> write(23," "...,258) =3D 258 (0x102) >> write(23,"\n\^[[38;5;252m\^[[48;5;17m h"...,880) =3D 880 (0x370) >> write(23,"\n\^[[38;5;252m\^[[48;5;17m h"...,765) =3D 765 (0x2fd) >> write(23,"\n\^[[38;5;252m\^[[48;5;17m "...,822) =3D 822 (0x336) >> write(23,"\n\^[[38;5;252m\^[[48;5;17m "...,957) =3D 957 (0x3bd) >> write(23,"\n\^[[38;5;252m\^[[48;5;17m "...,153) =3D 153 (0x99) >> write(23,"\n\^[[38;5;252m\^[[48;5;17m "...,937) =3D 937 (0x3a9) >> write(23,"\n\^[[38;5;252m\^[[48;5;17m "...,576) =3D 576 (0x240) > Here the same stuff is being redrawn, some 13 milliseconds after the > previous redisplay. > That's all I can deduce from this data. Maybe someone else can see > what I cannot. >> The flicker stops, when I focus the X11 frame, and do some activity ther= e, and >> resumes when I focus back to xterm. > Was the stuff shown in the X11 frame related in any way to what was > shown in the xterm frame? Like the same buffer, perhaps? Replied above. Also this doesn't happen when emacs is started with '-nw'. Let me know if you need more information. Thanks =2D-=20 Ashish SHUKLA =E2=80=9CIf tempted by something that feels "altruistic," examine your moti= ves and root out that self-deception. Then, if you still want to do it, wallow in it!=E2= =80=9D (Robert A. Heinlein, 1973) Sent from my Emacs --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBCgAGBQJRM8ovAAoJEMdGz6nnT6Sw7fgQAJUl3qoPldvfOKiRMk3hbQOV awHVdCX5cJf4MBobpplly4pxv2WSgNWoibw/aXM0PIxbA11fAO6YnJmvCuKLOw78 ep86hEtTt5mFvbQZAREasZGFTib64719kQtoc/Fijc3afSofzcyjTXbMTbvEiAKF q7/SC2FXw1yEmZq3uQUzFnCIjNu+QePABRaZjM3WscAR0Vr0DNaRoBkPIc2zaTTq tqrr1xEKeEr4wCndiRZulGRsp1XTYbMOFwQHcfmGvNmNjEfd8z7T/MBZBCqxenxB DOBTtnMB65Ox0HUfsWjgmSlmBaBcyjsG6hiRCM6uf5AYV9lwQH3pLDx7HXGoFG3N DzGuOFza/qIfg8svQSjn1MA0DMeuzMDvEFTCljrhBGd9uJ421zBcNktIk0iFZXyG gq5kBZkmrUsmuMIUH9IkSCGIVUxS4oqJWlA4MDzCRLjPs3HNutTHyIhe4wu2RIMM fEyKYyY9NikoKod8VFwCz7BWFNBBHFM04D1u8w79WZZZZ+P7eZFKOZh9Aa/U6OpF vBlakvjbh9371JrB2y4f37fMujMHUc/4cFBCxa17hGLh/8G/yAMpqrfS2l1XRG6Y qttkfdOKFCuGG3STJmg2pAzTsJ1jx3YYg3HQxJVg/oQbITZ5Ji77cds4BHpfXTfS fkuZerHP/muU2RP7X54a =o1aX -----END PGP SIGNATURE----- --=-=-=--