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: Redisplay issue Date: Thu, 03 Dec 2015 09:47:40 +0200 Message-ID: <83si3kht2b.fsf@gnu.org> References: <83fuzqr1iz.fsf@gnu.org> <8337vqqwz7.fsf@gnu.org> <83y4dhonng.fsf@gnu.org> <83two4olqj.fsf@gnu.org> <83h9k3mphx.fsf@gnu.org> <834mg2kvj7.fsf@gnu.org> <83d1upj6ml.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1449128903 5895 80.91.229.3 (3 Dec 2015 07:48:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Dec 2015 07:48:23 +0000 (UTC) Cc: emacs-devel@gnu.org To: Yuan MEI Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 03 08:48:15 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 1a4Oca-0007sF-WD for ged-emacs-devel@m.gmane.org; Thu, 03 Dec 2015 08:48:09 +0100 Original-Received: from localhost ([::1]:33817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4Oca-0000Hd-4H for ged-emacs-devel@m.gmane.org; Thu, 03 Dec 2015 02:48:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4OcX-0000HW-8i for emacs-devel@gnu.org; Thu, 03 Dec 2015 02:48:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4OcS-00075i-9u for emacs-devel@gnu.org; Thu, 03 Dec 2015 02:48:05 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:64782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4OcS-00074D-2D for emacs-devel@gnu.org; Thu, 03 Dec 2015 02:48:00 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NYR00100UX0K500@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Thu, 03 Dec 2015 09:47:56 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NYR001D5UZWK800@a-mtaout20.012.net.il>; Thu, 03 Dec 2015 09:47:56 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 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:195799 Archived-At: > Date: Wed, 2 Dec 2015 20:55:25 -0800 > From: Yuan MEI > Cc: emacs-devel > > > + unblock_input (); > > } > > > > Unfortunately this did not solve the problem. That was the only difference I could spot between 2 different code paths into calling the display back-end drawing routines: one which works (the "normal" redisplay), the other that doesn't (when a frame is exposed). I guess at this point we need a Cairo expert to look into this and find out what prevents the correct redisplay. My gut feeling is that it's some buffering at work, and Emacs simply doesn't tell Cairo to "flush" the buffered drawing commands. But I couldn't find the code which would be responsible for that in the "normal" redisplay case. > And I noticed something: comparing with and without cairo, even though > the number of lines of text and other geometric parameters are > identical (no .Xdefaults or any changes in .emacs.d/, the window > (frame) height for with and without cairo are different. Something > about font handling are different? Everything is different with Cairo, including the fonts: the Cairo build has its own font back-end (see ftcrfont.c). How large is the difference? Do you see changes in frame/window dimensions that correlate to those differences in height?