From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Need help debugging Emacs: emacsclient will not draw its contents sometimes Date: Mon, 14 Sep 2015 13:09:29 +0300 Message-ID: <83egi19usm.fsf@gnu.org> References: <83fv2o7rtp.fsf@gnu.org> <8337yo7mdo.fsf@gnu.org> <83d1xq5m8f.fsf@gnu.org> <83twr23yef.fsf@gnu.org> <83egi54dt5.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1442225389 26092 80.91.229.3 (14 Sep 2015 10:09:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Sep 2015 10:09:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jon Dufresne Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 14 12:09:41 2015 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 1ZbQhg-0004lc-9g for ged-emacs-devel@m.gmane.org; Mon, 14 Sep 2015 12:09:40 +0200 Original-Received: from localhost ([::1]:39559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbQhf-00020I-RG for ged-emacs-devel@m.gmane.org; Mon, 14 Sep 2015 06:09:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbQhc-0001zv-5r for emacs-devel@gnu.org; Mon, 14 Sep 2015 06:09:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbQhY-0000Hk-3U for emacs-devel@gnu.org; Mon, 14 Sep 2015 06:09:36 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:56464) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbQhX-0000HO-RW for emacs-devel@gnu.org; Mon, 14 Sep 2015 06:09:32 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NUN00A00VWARO00@mtaout26.012.net.il> for emacs-devel@gnu.org; Mon, 14 Sep 2015 13:11:56 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NUN00216WBWBCA0@mtaout26.012.net.il>; Mon, 14 Sep 2015 13:11:56 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.182 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:189927 Archived-At: > Date: Fri, 11 Sep 2015 09:47:59 -0700 > From: Jon Dufresne > Cc: emacs-devel@gnu.org > > Once the issue arises, if I execute "emacsclient -c", "emacsclient -c > filename.txt", "emacsclient -t", or "emacsclient -t filename.txt" from > a new gnome-terminal the frame opens and display correctly as > expected. It appears that only the frames created by mercurial > commands regularly have the issue, and then only sometimes. I guess the question is now what does Mercurial do, exactly, to invoke emacsclient. Can you look at the command line Mercurial passes to it, for example? Perhaps also log the communications between emacsclient and the server on the Emacs side, and see what is passed there. The screenshot you posted seems like the frame was never created completely, so Emacs doesn't think it should be displaying any text yet. I wonder why that happens. > If I execute the "emacsclient -c" from a separate terminal (as > mentioned above), then retry the mercurial command, the next frame > displays correctly as expected. It seems this sequence somehow gets > around the issue. We need to figure out what kind of "issue" this works around.