From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ashish.is@lostca.se (Ashish SHUKLA) Newsgroups: gmane.emacs.bugs Subject: bug#13864: 24.3.50; emacsclient -t loops when connected to emacs server running in X11 Date: Wed, 10 Apr 2013 14:36:40 +0530 Organization: Lost Case Message-ID: <86mwt6g3fj.fsf@chateau.d.if> References: <86y5e4xpd8.fsf@chateau.d.if> <86ip56adz3.fsf@chateau.d.if> <83txoo1mp3.fsf@gnu.org> <868v60743o.fsf@chateau.d.if> <83ppzc1bx9.fsf@gnu.org> <866214m1bh.fsf@chateau.d.if> <838v5z1yx4.fsf@gnu.org> <86mwuf8xrq.fsf@chateau.d.if> <8362131sf1.fsf@gnu.org> <86ip538qb8.fsf@chateau.d.if> <83y5dzz88b.fsf@gnu.org> <868v5y9pb5.fsf@chateau.d.if> <837glhzxvs.fsf@gnu.org> <86sj3zy8ru.fsf@chateau.d.if> <83620t57e1.fsf@gnu.org> <864ng3hae1.fsf@chateau.d.if> <83k3ow376r.fsf@gnu.org> <86li9bde1j.fsf@chateau.d.if> <831ub33fzt.fsf@gnu.org> <861uau6vyd.fsf@chateau.d.if> <83wqskj1tz.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 1365584848 5679 80.91.229.3 (10 Apr 2013 09:07:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Apr 2013 09:07:28 +0000 (UTC) Cc: 13864@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 10 11:07:32 2013 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 1UPr07-0002Km-NI for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Apr 2013 11:07:31 +0200 Original-Received: from localhost ([::1]:35173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPr07-0003px-2i for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Apr 2013 05:07:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPr01-0003oA-71 for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2013 05:07:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPqzx-0008Dr-Jw for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2013 05:07:25 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPqzx-0008Dl-GN for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2013 05:07:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UPr3X-0006Ln-DU for bug-gnu-emacs@gnu.org; Wed, 10 Apr 2013 05:11:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: ashish.is@lostca.se (Ashish SHUKLA) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Apr 2013 09:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13864 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13864-submit@debbugs.gnu.org id=B13864.136558504924257 (code B ref 13864); Wed, 10 Apr 2013 09:11:02 +0000 Original-Received: (at 13864) by debbugs.gnu.org; 10 Apr 2013 09:10:49 +0000 Original-Received: from localhost ([127.0.0.1]:43061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UPr3I-0006J2-FM for submit@debbugs.gnu.org; Wed, 10 Apr 2013 05:10:49 -0400 Original-Received: from arati.lostca.se ([144.76.32.53]:47433) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UPr3E-0006I7-4O for 13864@debbugs.gnu.org; Wed, 10 Apr 2013 05:10:45 -0400 Original-Received: from arati.lostca.se (localhost [127.0.0.1]) by arati.lostca.se (Postfix) with ESMTP id 6DB43C4F; Wed, 10 Apr 2013 09:06:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=lostca.se; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=howrah; bh=jRflpdkhEPy7sVl2SSZzusivXHA=; b=C7mD kjIP7eCNDGSaYI5Yax/MhZQ5UHRzWgXaIrYHUncyixGYfoiw6wm8vXglCilEpAr+ G4fvYs9jJHlGe8uT/ZrJPGQnZv8hPVo58rRmPPhu/6uKrtDQRq0FfGfp4OL0LDqr PLLS9Nbvqe2xWiOZsgcxy+5qoQRaUM8obz1giv0= Original-Received: from chateau.d.if (localhost [IPv6:::1]) by arati.lostca.se (Postfix) with ESMTP id F2DD3C4E; Wed, 10 Apr 2013 09:06:22 +0000 (UTC) Original-Received: from chateau.d.if (localhost [IPv6:::1]); by chateau.d.if (OpenSMTPD) with ESMTP id 56c0a32a; Wed, 10 Apr 2013 14:36:44 +0530 (IST) 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:32PM up 16:21, 12 users, load averages: 0.08, 0.41, 0.68 X-Operating-System: FreeBSD/FreeBSD 9.1-RELEASE-p1/amd64 X-OpenPGP-Fingerprint: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 X-Attribution: =?UTF-8?Q?=E0=A4=86=E0=A4=B6=E0=A5=80=E0=A4=B7?= Organisation: Lost Case X-Hashcash: 1:20:130410:13864@debbugs.gnu.org::j/R29//n4q+4nJqu:00000000000000000000000000000000000000001117 X-Hashcash: 1:20:130410:eliz@gnu.org::fjLVeQQxcAQvEyWz:000001Udp In-Reply-To: <83wqskj1tz.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 02 Apr 2013 20:10:16 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (amd64-portbld-freebsd9.1) 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-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.x 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:73298 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Eli, First of all sorry for the delay in reply. On Tue, 02 Apr 2013 20:10:16 +0300, Eli Zaretskii said: >> From: ashish.is@lostca.se (Ashish SHUKLA) >> Cc: 13864@debbugs.gnu.org >> Date: Mon, 01 Apr 2013 22:15:46 +0530 >>=20 >> Please refer to the attached output. > Thanks, I think we've finally nailed this sucker. Seems like you nailed indeed :-) >> I'm not sure if it's for the right frame (i.e. "garbaged" flag >> monitored for X11 frame, or emacsclient frame). > It is certainly for the right frame, because the code that sets the > "garbaged" flag is here: > if (FRAME_TERMCAP_P (XFRAME (frame)) || FRAME_MSDOS_P (XFRAME (frame))) > { > if (FRAMEP (FRAME_TTY (XFRAME (frame))->top_frame)) > /* Mark previously displayed frame as now obscured. */ > SET_FRAME_VISIBLE (XFRAME (FRAME_TTY (XFRAME (frame))->top_frame), 2); > SET_FRAME_VISIBLE (XFRAME (frame), 1); <<<<<<<<<<<<<<<<<<<<<<<<<<< > FRAME_TTY (XFRAME (frame))->top_frame =3D frame; > } > As you can see from the condition for this block, it is only run for > TTY (a.k.a. "termcap") frames. > I think the problem here is that the code sets the "garbaged" flag > even if the "top frame" of the TTY did not change at all. > Can you try the patch below? Please try it both with a single TTY > frame on the xterm (in addition to a GUI frame), like what you did > until now, and also with several TTY frames on the same xterm (you can > create additional frames by "C-x 5" commands). > If this gives good results, I will install it. Thanks. I've applied the diff over r112178 (which is what I'd checked out), and I don't experience this issue any more with Emacs (with all the combinations you've mentioned above). Thanks! =2D-=20 Ashish SHUKLA =E2=80=9CBeware of altruism. It is based on self-deception, the root of all= evil.=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) iQIcBAEBCgAGBQJRZSukAAoJEMdGz6nnT6SwoQsQAJHoYJq7TzWKMVv9BtcWBr2r ld+0xoBpX9z5ltgObUdI5QoCzTuINNgaQYqUq8N2UBGzx/W2oaU9U5LDBSgfWq4W BQx8e8KUKK6ARdVEVWedTA1ngMrpRhM6IsyJNjghAXBWkYqjPDvYjaHT7olDjYVJ whcKEUPRUNywiL4mYSOBxxrQUav0TH0sDOZ2RPF10NsKIc5jY38So4A4qAkuOyOY YBkWwjPiLtrGEnMu/XX+vZvSlxE20FCS5xP3kSUi+UgzVq4qSQ0YSWzJJTeOyt5W fqydARCd7oQ1W4xGSnMGkFbP59vL/k0vzejebHRABRqNeJZeaa847QGen4fWb8zG 9yhg7/gia/cm0GUmC5vI/DmwamxwM0kiKBaG+vKgTqTzFnH1yQzO9dgon0HUDuiI 1n+ZpBVH76ndgDEvD/0kVoL0Ntfe8QbU2FRkPxHQtA+zmCQ3ZU+3ohw0Zj/XUwtK ubSCiqcDBTaq+jeaM6hELn+/3DqouRbaRArB8+Y62UcIqEVCF956NnRUU2x2iByL WkxBePnXWemaWT6/uk7gBlvb8Eb7nTLvyE9ZQz/M1lYyA+IgHj3JAU9wt1O6/UtE Dz5c/NxR2J4eJjUBj/79RFfknGLUDNzBi+xUkYjatO97zw1HFtfJV7T5Zk8BXmck muEJw/exoGxyT1HJ3U4/ =DWFa -----END PGP SIGNATURE----- --=-=-=--