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: Thu, 10 Sep 2015 18:26:40 +0300 Message-ID: <83d1xq5m8f.fsf@gnu.org> References: <83fv2o7rtp.fsf@gnu.org> <8337yo7mdo.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1441898853 9746 80.91.229.3 (10 Sep 2015 15:27:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Sep 2015 15:27:33 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jon Dufresne Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 10 17:27:18 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 1Za3kZ-0000RR-GO for ged-emacs-devel@m.gmane.org; Thu, 10 Sep 2015 17:26:59 +0200 Original-Received: from localhost ([::1]:49821 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Za3kY-0004wu-VU for ged-emacs-devel@m.gmane.org; Thu, 10 Sep 2015 11:26:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46732) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Za3kW-0004wZ-1k for emacs-devel@gnu.org; Thu, 10 Sep 2015 11:26:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Za3kS-0007hV-0A for emacs-devel@gnu.org; Thu, 10 Sep 2015 11:26:55 -0400 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:35547) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Za3kR-0007h8-Na for emacs-devel@gnu.org; Thu, 10 Sep 2015 11:26:51 -0400 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NUG00600VVOGS00@mtaout25.012.net.il> for emacs-devel@gnu.org; Thu, 10 Sep 2015 18:23:36 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NUG006V5W3CIQ00@mtaout25.012.net.il>; Thu, 10 Sep 2015 18:23:36 +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.181 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:189804 Archived-At: > Date: Wed, 9 Sep 2015 15:29:18 -0700 > From: Jon Dufresne > Cc: emacs-devel@gnu.org > > On Tue, Sep 8, 2015 at 12:16 PM, Eli Zaretskii wrote: > > So now the question is why you don't see the display. Please step > > through command_loop_1 until it calls read_key_sequence, step into > > that, then step until it calls read_char, and step through read_char > > until it calls redisplay_internal. Once you are inside > > redisplay_internal, step through it and show which lines are being > > executed. > > Thanks. I'm no expert on gdb, but I believe I have followed your > suggestion. Below is the output from gdb by stepping through > redisplay_internal from beginning to end. Let me know what you think. > Any insight as to why the contents are not drawn? This shows that Emacs examined the frames and windows, and decided that nothing requires to be redrawn. Most redisplay cycles are like that, so this trace doesn't yet point to any problem. If you type "M-x" into the (empty, AFAIU) client frame, does Emacs display the "M-x" prompt? Does it also redisplay some of the frame? What happens if you type "M-x redraw-display RET"? does Emacs display anything?