From unknown Sat Jun 21 05:01:17 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1867: Resizing window causes text flickering when using antialiased font on X Reply-To: Bo Lin , 1867@debbugs.gnu.org Resent-From: Bo Lin Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 12 Jan 2009 10:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 1867 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12317550247050 (code B ref -1); Mon, 12 Jan 2009 10:20:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 12 Jan 2009 10:10:24 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0CAAKgw007041 for ; Mon, 12 Jan 2009 02:10:21 -0800 Received: from mail.gnu.org ([199.232.76.166]:54780 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LMJjC-0000qx-3J for emacs-pretest-bug@gnu.org; Mon, 12 Jan 2009 05:09:02 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LMJkP-0006HB-It for emacs-pretest-bug@gnu.org; Mon, 12 Jan 2009 05:10:19 -0500 Received: from wf-out-1314.google.com ([209.85.200.173]:56202) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LMJkP-0006Gd-26 for emacs-pretest-bug@gnu.org; Mon, 12 Jan 2009 05:10:17 -0500 Received: by wf-out-1314.google.com with SMTP id 28so12383639wfc.24 for ; Mon, 12 Jan 2009 02:10:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:to:subject:from:date :message-id:user-agent:mime-version:content-type; bh=5PZZ2VyDkLcxWdhgcArnDSPxbxFjRUhUemFKzjRtero=; b=hNB9eVdO6Fcr8rBhqaWBIPIHKXykNmGiUkwSzgZtqMEg3HRnzT7Prs7yUjYp2HUgu6 NfAX7ho/V4cYMS0siBPYZ6yyS4Z+h52Sb0N3SjLoOClwv+IxM15GKMDa65stMzez5oHS k/60AjuQA2eUvwnBhv59HQHcB/sHh4nb84zqU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:subject:from:date:message-id:user-agent:mime-version :content-type; b=Q0FIuf7QbrFJeQhaYAUBhmRbtA+3TEpelPvGNrOICPKuctGlMlRqBiNpLkg+/ExqBP ci5/+KydVfjJUK4oj4z71WslhYUa8dPUK18VGPH1W/1yNinXDgE1zenwtsclXQ3P6SHh VEZMdwSPUwiruGJdgqwT44NTB37fRuCVCm3Ig= Received: by 10.142.245.6 with SMTP id s6mr12041850wfh.302.1231755013772; Mon, 12 Jan 2009 02:10:13 -0800 (PST) Received: from unicorn ([210.73.1.55]) by mx.google.com with ESMTPS id 30sm25603234wfc.55.2009.01.12.02.10.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 12 Jan 2009 02:10:13 -0800 (PST) Received: from localhost.lan ([127.0.0.1] helo=unicorn.lan) by unicorn with esmtp (Exim 4.69) (envelope-from ) id 1LMJkF-0001vi-Sq for emacs-pretest-bug@gnu.org; Mon, 12 Jan 2009 18:10:07 +0800 To: emacs-pretest-bug@gnu.org From: Bo Lin Date: Mon, 12 Jan 2009 18:10:07 +0800 Message-ID: <87ljtgzvgg.fsf@unicorn.lan> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 1. Choose a font FONTNAME which supports antialiasing. Confirm antialiasing is turned on for FONTNAME in fontconfig: $ fc-match -v FONTNAME |grep antialias antialias: FcTrue(w) 2. emacs -q 3. M-: (set-face-attribute 'default nil :font "FONTNAME") 4. C-x 3 C-x 2 Now there are three windows. We'll name the upper-left window 1, lower-left window 2, and the right window 3. 5. C-x b *scratch* RET C-x o C-x b *Messages* RET C-x o C-h i 6. Using mouse, quickly drag mode-line of window 1 up and down. Observe how text in window 1 and 3 flicker as windows 1 and 2 are resized. The main point is that window 3, though totally unaffected by the resizing of windows 1 and 2 and showing a different buffer, is still been constantly redrawn. This quite annoying, as even when the mini-buffer window resizes, which happens quite frequently, will cause the whole frame to flicker. This flickering does *not* occur if using old X core fonts. To confirm, start with `emacs -q -fn fixed' and repeat steps 4-6. This flickering does *not* occur if using same XFT font but antialiasing turned off. To confirm, turn antialiasing off for FONTNAME in fontconfig, for example by putting the following in ~/.fonts.conf false and again confirm by $ fc-match -v FONTNAME |grep antialias antialias: FcFalse(w) then repeat steps 2-6. This flickering does not occur in other XFT applications, such as gedit, using same font with antialias enabled. Flickering also does not occur in Emacs on Windows when using antialiased (cleartype) fonts. In GNU Emacs 23.0.60.7 (i686-pc-linux-gnu, GTK+ Version 2.14.4) of 2009-01-12 on unicorn Windowing system distributor `The X.Org Foundation', version 11.0.10502000 configured using `configure '--prefix=/home/sadboy/apps/emacs/test' 'CFLAGS=-g'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=SCIM locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x 3 C-x 2 C-u C-x = C-v C-l C-p C-n C-e C-a C-e C-a C-x 0 C-x b * M e s s C-x o C-x 2 M-x r e p o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Type "q" to restore this window, C-v to scroll help. Char: E (69, #o105, #x45) point=77 of 798 (10%) column=0 From unknown Sat Jun 21 05:01:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#1867: Resizing window causes text flickering when using antialiased font on X Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2011 01:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1867 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Bo Lin Cc: 1867@debbugs.gnu.org Received: via spool by 1867-submit@debbugs.gnu.org id=B1867.13177772231897 (code B ref 1867); Wed, 05 Oct 2011 01:14:01 +0000 Received: (at 1867) by debbugs.gnu.org; 5 Oct 2011 01:13:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBG3K-0000UX-MF for submit@debbugs.gnu.org; Tue, 04 Oct 2011 21:13:43 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBG3H-0000UQ-Q3 for 1867@debbugs.gnu.org; Tue, 04 Oct 2011 21:13:41 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RBG3H-00039M-44; Tue, 04 Oct 2011 21:13:39 -0400 From: Glenn Morris References: <87ljtgzvgg.fsf@unicorn.lan> X-Spook: Treasury computer terrorism pre-emptive 2600 Magazine X-Ran: TA|{~6d&G;R{CrPJ|j:@PN&G3mAUwywN0q"bhfd:o]ru[45JzmONa&D?HF1'.A|g*t(oZ1 X-Hue: magenta X-Attribution: GM Date: Tue, 04 Oct 2011 21:13:39 -0400 In-Reply-To: <87ljtgzvgg.fsf@unicorn.lan> (Bo Lin's message of "Mon, 12 Jan 2009 18:10:07 +0800") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) Bo Lin wrote: > 1. Choose a font FONTNAME which supports antialiasing. Confirm > antialiasing is turned on for FONTNAME in fontconfig: > > $ fc-match -v FONTNAME |grep antialias > antialias: FcTrue(w) > > 2. emacs -q > 3. M-: (set-face-attribute 'default nil :font "FONTNAME") > 4. C-x 3 C-x 2 > > Now there are three windows. We'll name the upper-left window 1, > lower-left window 2, and the right window 3. > > 5. C-x b *scratch* RET C-x o C-x b *Messages* RET C-x o C-h i > 6. Using mouse, quickly drag mode-line of window 1 up and down. > > Observe how text in window 1 and 3 flicker as windows 1 and 2 are > resized. The main point is that window 3, though totally unaffected by > the resizing of windows 1 and 2 and showing a different buffer, is still > been constantly redrawn. This quite annoying, as even when the > mini-buffer window resizes, which happens quite frequently, will cause > the whole frame to flicker. > > This flickering does *not* occur if using old X core fonts. To confirm, > start with `emacs -q -fn fixed' and repeat steps 4-6. [...] > In GNU Emacs 23.0.60.7 (i686-pc-linux-gnu, GTK+ Version 2.14.4) > of 2009-01-12 on unicorn > Windowing system distributor `The X.Org Foundation', version 11.0.10502000 I don't seem to be able to reproduce this. Do you still see this with the latest version of Emacs? From unknown Sat Jun 21 05:01:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#1867: Resizing window causes text flickering when using antialiased font on X Resent-From: "Jan D." Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2011 07:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1867 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Glenn Morris Cc: Bo Lin , 1867@debbugs.gnu.org Received: via spool by 1867-submit@debbugs.gnu.org id=B1867.13177981049278 (code B ref 1867); Wed, 05 Oct 2011 07:02:02 +0000 Received: (at 1867) by debbugs.gnu.org; 5 Oct 2011 07:01:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBLU6-0002Pa-QZ for submit@debbugs.gnu.org; Wed, 05 Oct 2011 03:01:43 -0400 Received: from smtprelay-b22.telenor.se ([195.54.99.213]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBLU3-0002PJ-F8 for 1867@debbugs.gnu.org; Wed, 05 Oct 2011 03:01:41 -0400 Received: from iph1.telenor.se (iph1.telenor.se [195.54.127.132]) by smtprelay-b22.telenor.se (Postfix) with ESMTP id 0A065E9E3E for <1867@debbugs.gnu.org>; Wed, 5 Oct 2011 09:01:31 +0200 (CEST) X-SENDER-IP: [85.225.45.201] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArtWAOL/i05V4S3JPGdsb2JhbABCiTSeWhkBAQEBNzKBUwEBBTgeIgEQCw4KCRYPCQMCAQIBGwwKFAYNAQcBAYd7t0iHIwSZDowf X-IronPort-AV: E=Sophos;i="4.68,490,1312149600"; d="scan'208";a="490341336" Received: from c-c92de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.201]) by iph1.telenor.se with ESMTP; 05 Oct 2011 09:01:31 +0200 Received: from [10.225.17.241] (unknown [193.45.43.33]) by coolsville.localdomain (Postfix) with ESMTPSA id 9A4A27FA058; Wed, 5 Oct 2011 09:01:30 +0200 (CEST) Message-ID: <4E8C00C8.9010208@swipnet.se> Date: Wed, 05 Oct 2011 09:01:28 +0200 From: "Jan D." User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 References: <87ljtgzvgg.fsf@unicorn.lan> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) Glenn Morris skrev 2011-10-05 03:13: > Bo Lin wrote: > >> 1. Choose a font FONTNAME which supports antialiasing. Confirm >> antialiasing is turned on for FONTNAME in fontconfig: >> >> $ fc-match -v FONTNAME |grep antialias >> antialias: FcTrue(w) >> >> 2. emacs -q >> 3. M-: (set-face-attribute 'default nil :font "FONTNAME") >> 4. C-x 3 C-x 2 >> >> Now there are three windows. We'll name the upper-left window 1, >> lower-left window 2, and the right window 3. >> >> 5. C-x b *scratch* RET C-x o C-x b *Messages* RET C-x o C-h i >> 6. Using mouse, quickly drag mode-line of window 1 up and down. >> >> Observe how text in window 1 and 3 flicker as windows 1 and 2 are >> resized. The main point is that window 3, though totally unaffected by >> the resizing of windows 1 and 2 and showing a different buffer, is still >> been constantly redrawn. This quite annoying, as even when the >> mini-buffer window resizes, which happens quite frequently, will cause >> the whole frame to flicker. >> >> This flickering does *not* occur if using old X core fonts. To confirm, >> start with `emacs -q -fn fixed' and repeat steps 4-6. > [...] >> In GNU Emacs 23.0.60.7 (i686-pc-linux-gnu, GTK+ Version 2.14.4) >> of 2009-01-12 on unicorn >> Windowing system distributor `The X.Org Foundation', version 11.0.10502000 > > > I don't seem to be able to reproduce this. Do you still see this with > the latest version of Emacs? > > It is possible that this is not visible on faster systems. Antialiased fonts requires erase of the old text then write of the new text from the client (i.e. Emacs). This is slower than with core fonts where you call XDrawImageString and the X server then does both erasing and writing. The fact that unaffected windows get redrawn must have something to do with the display engine. That may have been improved in later versions. FWIW, I can't see any text flicker in the scenario above. However, the hollow cursor in the non-selected windows do flicker which indicates that there is some redrawing going on. Jan D. From unknown Sat Jun 21 05:01:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#1867: Resizing window causes text flickering when using antialiased font on X Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2011 10:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1867 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Jan D." Cc: rgm@gnu.org, 1867@debbugs.gnu.org, lbsmtp@gmail.com Reply-To: Eli Zaretskii Received: via spool by 1867-submit@debbugs.gnu.org id=B1867.131781131529076 (code B ref 1867); Wed, 05 Oct 2011 10:42:02 +0000 Received: (at 1867) by debbugs.gnu.org; 5 Oct 2011 10:41:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBOvC-0007Yu-Ad for submit@debbugs.gnu.org; Wed, 05 Oct 2011 06:41:54 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBOv6-0007Yg-1U for 1867@debbugs.gnu.org; Wed, 05 Oct 2011 06:41:48 -0400 Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RBOv2-0007gI-TQ; Wed, 05 Oct 2011 06:41:44 -0400 Date: Wed, 05 Oct 2011 06:41:44 -0400 Message-Id: From: Eli Zaretskii In-reply-to: <4E8C00C8.9010208@swipnet.se> (jan.h.d@swipnet.se) References: <87ljtgzvgg.fsf@unicorn.lan> <4E8C00C8.9010208@swipnet.se> X-Spam-Score: -6.6 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) > Date: Wed, 05 Oct 2011 09:01:28 +0200 > From: "Jan D." > Cc: Bo Lin , 1867@debbugs.gnu.org > > FWIW, I can't see any text flicker in the scenario above. However, the > hollow cursor in the non-selected windows do flicker which indicates > that there is some redrawing going on. The way redisplay is written, _any_ change to dimensions of _any_ window sets a flag that will cause a thorough redisplay of all the windows on all the visible frames. However, I'd expect that redisplay of any window not affected by the resizing be limited to redrawing the cursor. So even when antialiased fonts are used, I wouldn't expect any flickering, because Emacs should notice that the window didn't change at all. Unless, that is, redrawing the cursor on X involves redrawing parts of the window text. Does it? From unknown Sat Jun 21 05:01:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#1867: Resizing window causes text flickering when using antialiased font on X Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2011 17:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1867 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: rgm@gnu.org, 1867@debbugs.gnu.org, lbsmtp@gmail.com Received: via spool by 1867-submit@debbugs.gnu.org id=B1867.131783609810534 (code B ref 1867); Wed, 05 Oct 2011 17:35:01 +0000 Received: (at 1867) by debbugs.gnu.org; 5 Oct 2011 17:34:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBVMv-0002jq-Fk for submit@debbugs.gnu.org; Wed, 05 Oct 2011 13:34:57 -0400 Received: from smtprelay-b11.telenor.se ([62.127.194.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBVMt-0002jd-7Z for 1867@debbugs.gnu.org; Wed, 05 Oct 2011 13:34:56 -0400 Received: from iph2.telenor.se (iph2.telenor.se [195.54.127.133]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id 29C7AEA87E for <1867@debbugs.gnu.org>; Wed, 5 Oct 2011 19:34:45 +0200 (CEST) X-SENDER-IP: [85.225.45.201] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao1VAOWUjE5V4S3JPGdsb2JhbABCiTSeXxkBAQEBNzKBUwEBBTgeIgEQCxQBDBYPCQMCAQIBDwwMChQGDQEFAgEBh3u4BIcpBJkUhHmHJg X-IronPort-AV: E=Sophos;i="4.68,492,1312149600"; d="scan'208";a="489101411" Received: from c-c92de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.201]) by iph2.telenor.se with ESMTP; 05 Oct 2011 19:34:44 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 3F73E7FA058; Wed, 5 Oct 2011 19:34:44 +0200 (CEST) Message-ID: <4E8C9535.4000206@swipnet.se> Date: Wed, 05 Oct 2011 19:34:45 +0200 From: Jan =?UTF-8?Q?Dj=C3=A4rv?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 References: <87ljtgzvgg.fsf@unicorn.lan> <4E8C00C8.9010208@swipnet.se> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.2 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.2 (--) Eli Zaretskii skrev 2011-10-05 12:41: >> Date: Wed, 05 Oct 2011 09:01:28 +0200 >> From: "Jan D." >> Cc: Bo Lin, 1867@debbugs.gnu.org >> >> FWIW, I can't see any text flicker in the scenario above. However, the >> hollow cursor in the non-selected windows do flicker which indicates >> that there is some redrawing going on. > > The way redisplay is written, _any_ change to dimensions of _any_ > window sets a flag that will cause a thorough redisplay of all the > windows on all the visible frames. However, I'd expect that redisplay > of any window not affected by the resizing be limited to redrawing the > cursor. > > So even when antialiased fonts are used, I wouldn't expect any > flickering, because Emacs should notice that the window didn't change > at all. Unless, that is, redrawing the cursor on X involves redrawing > parts of the window text. Does it? Yes, but just the character under the cursor. Jan D. From unknown Sat Jun 21 05:01:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#1867: Resizing window causes text flickering when using antialiased font on X Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2011 20:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1867 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: rgm@gnu.org, 1867@debbugs.gnu.org, lbsmtp@gmail.com Reply-To: Eli Zaretskii Received: via spool by 1867-submit@debbugs.gnu.org id=B1867.131784667229200 (code B ref 1867); Wed, 05 Oct 2011 20:32:02 +0000 Received: (at 1867) by debbugs.gnu.org; 5 Oct 2011 20:31:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBY7T-0007au-Uk for submit@debbugs.gnu.org; Wed, 05 Oct 2011 16:31:12 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBY7R-0007ab-FH for 1867@debbugs.gnu.org; Wed, 05 Oct 2011 16:31:10 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LSL00L00ZMUO300@a-mtaout22.012.net.il> for 1867@debbugs.gnu.org; Wed, 05 Oct 2011 22:29:17 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.124.91.138]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LSM00LB20WS20D0@a-mtaout22.012.net.il>; Wed, 05 Oct 2011 22:29:17 +0200 (IST) Date: Wed, 05 Oct 2011 22:29:19 +0200 From: Eli Zaretskii In-reply-to: <4E8C9535.4000206@swipnet.se> Message-id: <83wrcjgp28.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: <87ljtgzvgg.fsf@unicorn.lan> <4E8C00C8.9010208@swipnet.se> <4E8C9535.4000206@swipnet.se> X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > Date: Wed, 05 Oct 2011 19:34:45 +0200 > From: Jan Dj=E4rv > CC: rgm@gnu.org, lbsmtp@gmail.com, 1867@debbugs.gnu.org >=20 > > So even when antialiased fonts are used, I wouldn't expect any > > flickering, because Emacs should notice that the window didn't ch= ange > > at all. Unless, that is, redrawing the cursor on X involves redr= awing > > parts of the window text. Does it? >=20 > Yes, but just the character under the cursor. And could redrawing a single character under the cursor cause flickering with antialiased fonts? From unknown Sat Jun 21 05:01:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#1867: Resizing window causes text flickering when using antialiased font on X Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2011 21:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1867 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: "rgm@gnu.org" , "1867@debbugs.gnu.org" <1867@debbugs.gnu.org>, "lbsmtp@gmail.com" Received: via spool by 1867-submit@debbugs.gnu.org id=B1867.1317849407687 (code B ref 1867); Wed, 05 Oct 2011 21:17:01 +0000 Received: (at 1867) by debbugs.gnu.org; 5 Oct 2011 21:16:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBYpb-0000B2-8S for submit@debbugs.gnu.org; Wed, 05 Oct 2011 17:16:47 -0400 Received: from smtprelay-h21.telenor.se ([195.54.99.196]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBYpZ-0000Am-JK for 1867@debbugs.gnu.org; Wed, 05 Oct 2011 17:16:46 -0400 Received: from iph3.telenor.se (iph3.telenor.se [195.54.127.134]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id F1F5DEAF9D for <1867@debbugs.gnu.org>; Wed, 5 Oct 2011 23:16:34 +0200 (CEST) X-SENDER-IP: [85.225.45.201] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjJWAATJjE5V4S3JPGdsb2JhbABChG2ER513bhkBAQEBNzKBUwEBBAEjMyMQCxQBBQImAgIhDAwKFAYTh30CpSWRU4EthGgzYQSZFIR5hyY X-IronPort-AV: E=Sophos;i="4.68,493,1312149600"; d="scan'208";a="125562382" Received: from c-c92de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.201]) by iph3.telenor.se with ESMTP; 05 Oct 2011 23:16:22 +0200 Received: from [172.20.199.248] (janiphone [172.20.199.248]) by coolsville.localdomain (Postfix) with ESMTPSA id F3C1B7FA058; Wed, 5 Oct 2011 23:16:21 +0200 (CEST) References: <87ljtgzvgg.fsf@unicorn.lan> <4E8C00C8.9010208@swipnet.se> <4E8C9535.4000206@swipnet.se> <83wrcjgp28.fsf@gnu.org> In-Reply-To: <83wrcjgp28.fsf@gnu.org> Mime-Version: 1.0 (iPhone Mail 8L1) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Message-Id: X-Mailer: iPhone Mail (8L1) From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Date: Wed, 5 Oct 2011 23:16:19 +0200 X-Spam-Score: -1.5 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.5 (-) Hello. 5 okt 2011 kl. 22:29 skrev Eli Zaretskii : >> Date: Wed, 05 Oct 2011 19:34:45 +0200 >> From: Jan Dj=C3=A4rv >> CC: rgm@gnu.org, lbsmtp@gmail.com, 1867@debbugs.gnu.org >>=20 >>> So even when antialiased fonts are used, I wouldn't expect any >>> flickering, because Emacs should notice that the window didn't change >>> at all. Unless, that is, redrawing the cursor on X involves redrawing >>> parts of the window text. Does it? >>=20 >> Yes, but just the character under the cursor. >=20 > And could redrawing a single character under the cursor cause > flickering with antialiased fonts? For that character it might happen if the clearing and writing is separated l= ong enough in time. Depends on the speed of your machine.=20 Jan D.=20= From unknown Sat Jun 21 05:01:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#1867: Resizing window causes text flickering when using antialiased font on X Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2011 21:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1867 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: lbsmtp@gmail.com, "Jan D." , 1867@debbugs.gnu.org Received: via spool by 1867-submit@debbugs.gnu.org id=B1867.13178518647264 (code B ref 1867); Wed, 05 Oct 2011 21:58:01 +0000 Received: (at 1867) by debbugs.gnu.org; 5 Oct 2011 21:57:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBZTD-0001t5-Dp for submit@debbugs.gnu.org; Wed, 05 Oct 2011 17:57:43 -0400 Received: from vm-emlprdomr-03.its.yale.edu ([130.132.50.144]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBZTA-0001st-So for 1867@debbugs.gnu.org; Wed, 05 Oct 2011 17:57:41 -0400 Received: from furball (dhcp-128-36-14-81.central.yale.edu [128.36.14.81]) (authenticated bits=0) by vm-emlprdomr-03.its.yale.edu (8.14.4/8.14.4) with ESMTP id p95LvTKX010997 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 5 Oct 2011 17:57:30 -0400 From: Chong Yidong References: <87ljtgzvgg.fsf@unicorn.lan> <4E8C00C8.9010208@swipnet.se> Date: Wed, 05 Oct 2011 17:57:29 -0400 In-Reply-To: (Eli Zaretskii's message of "Wed, 05 Oct 2011 06:41:44 -0400") Message-ID: <8739f73xva.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.144 X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Eli Zaretskii writes: > The way redisplay is written, _any_ change to dimensions of _any_ > window sets a flag that will cause a thorough redisplay of all the > windows on all the visible frames. However, I'd expect that redisplay > of any window not affected by the resizing be limited to redrawing the > cursor. Resizing a window redraws all windows on the same frame, even those unaffected by the resizing. The right way to fix flickering in Emacs is to implement double buffering, which is not a trivial project. From unknown Sat Jun 21 05:01:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#1867: Resizing window causes text flickering when using antialiased font on X Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Oct 2011 05:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1867 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Chong Yidong Cc: lbsmtp@gmail.com, jan.h.d@swipnet.se, 1867@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 1867-submit@debbugs.gnu.org id=B1867.131787922829482 (code B ref 1867); Thu, 06 Oct 2011 05:34:02 +0000 Received: (at 1867) by debbugs.gnu.org; 6 Oct 2011 05:33:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBgaZ-0007fT-CH for submit@debbugs.gnu.org; Thu, 06 Oct 2011 01:33:47 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBgaW-0007fK-Vg for 1867@debbugs.gnu.org; Thu, 06 Oct 2011 01:33:45 -0400 Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RBgaO-0003Bj-Qq; Thu, 06 Oct 2011 01:33:36 -0400 Date: Thu, 06 Oct 2011 01:33:36 -0400 Message-Id: From: Eli Zaretskii In-reply-to: <8739f73xva.fsf@stupidchicken.com> (message from Chong Yidong on Wed, 05 Oct 2011 17:57:29 -0400) References: <87ljtgzvgg.fsf@unicorn.lan> <4E8C00C8.9010208@swipnet.se> <8739f73xva.fsf@stupidchicken.com> X-Spam-Score: -6.6 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) > From: Chong Yidong > Cc: "Jan D." , 1867@debbugs.gnu.org, lbsmtp@gmail.com > Date: Wed, 05 Oct 2011 17:57:29 -0400 > > Eli Zaretskii writes: > > > The way redisplay is written, _any_ change to dimensions of _any_ > > window sets a flag that will cause a thorough redisplay of all the > > windows on all the visible frames. However, I'd expect that redisplay > > of any window not affected by the resizing be limited to redrawing the > > cursor. > > Resizing a window redraws all windows on the same frame, even those > unaffected by the resizing. What do you mean by "redraws"? It generates the full desired glyph matrices for each window, but there's code in dispnew.c that compares the desired matrix with the current matrix, and only redraws the parts that changed. Are you saying that this optimization is disabled? Do you actually see the xterm backend redrawing each and every window in this use case? From unknown Sat Jun 21 05:01:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#1867: Resizing window causes text flickering when using antialiased font on X Resent-From: "Jan D." Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Oct 2011 06:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1867 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Chong Yidong Cc: lbsmtp@gmail.com, Eli Zaretskii , 1867@debbugs.gnu.org Received: via spool by 1867-submit@debbugs.gnu.org id=B1867.131788114332219 (code B ref 1867); Thu, 06 Oct 2011 06:06:02 +0000 Received: (at 1867) by debbugs.gnu.org; 6 Oct 2011 06:05:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBh5S-0008Nc-Nj for submit@debbugs.gnu.org; Thu, 06 Oct 2011 02:05:42 -0400 Received: from smtprelay-b22.telenor.se ([195.54.99.213]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBh5Q-0008NJ-F9 for 1867@debbugs.gnu.org; Thu, 06 Oct 2011 02:05:41 -0400 Received: from iph1.telenor.se (iph1.telenor.se [195.54.127.132]) by smtprelay-b22.telenor.se (Postfix) with ESMTP id BA49AEB11B for <1867@debbugs.gnu.org>; Thu, 6 Oct 2011 08:05:27 +0200 (CEST) X-SENDER-IP: [85.225.45.201] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkNQAIFEjU5V4S3JPGdsb2JhbABEiTmebRkBAQEBNzKBUwEBBAE4HiIBEAsOExYPCQMCAQIBGwwKFAYNAQUCAQEXh2ICtiqHKQSZFYwf X-IronPort-AV: E=Sophos;i="4.68,495,1312149600"; d="scan'208";a="490915398" Received: from c-c92de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.201]) by iph1.telenor.se with ESMTP; 06 Oct 2011 08:05:27 +0200 Received: from [10.225.16.4] (unknown [193.45.43.33]) by coolsville.localdomain (Postfix) with ESMTPSA id 504F47FA058; Thu, 6 Oct 2011 08:05:26 +0200 (CEST) Message-ID: <4E8D4524.3090902@swipnet.se> Date: Thu, 06 Oct 2011 08:05:24 +0200 From: "Jan D." User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 References: <87ljtgzvgg.fsf@unicorn.lan> <4E8C00C8.9010208@swipnet.se> <8739f73xva.fsf@stupidchicken.com> In-Reply-To: <8739f73xva.fsf@stupidchicken.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) Chong Yidong skrev 2011-10-05 23:57: > Eli Zaretskii writes: > >> The way redisplay is written, _any_ change to dimensions of _any_ >> window sets a flag that will cause a thorough redisplay of all the >> windows on all the visible frames. However, I'd expect that redisplay >> of any window not affected by the resizing be limited to redrawing the >> cursor. > > Resizing a window redraws all windows on the same frame, even those > unaffected by the resizing. But according to Eli, the redraw optimizations in Emacs display engine should not actually redraw anything in unchanged windows. According to the desciption window 3 is totally unchanged, but flickers anyway. But this was on 23.0.60. Many bugs has been fixed since. > > The right way to fix flickering in Emacs is to implement double > buffering, which is not a trivial project. If we are aiming for a general solution across all ports this is true. A pure X solution might be easier if we use the double buffer extension. Jan D. From unknown Sat Jun 21 05:01:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#1867: Resizing window causes text flickering when using antialiased font on X Resent-From: Jason Rumney Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Oct 2011 14:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1867 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: "lbsmtp@gmail.com" , Eli Zaretskii , "1867@debbugs.gnu.org" <1867@debbugs.gnu.org> Received: via spool by 1867-submit@debbugs.gnu.org id=B1867.13179106626180 (code B ref 1867); Thu, 06 Oct 2011 14:18:01 +0000 Received: (at 1867) by debbugs.gnu.org; 6 Oct 2011 14:17:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBolY-0001bc-7v for submit@debbugs.gnu.org; Thu, 06 Oct 2011 10:17:41 -0400 Received: from mail-qw0-f44.google.com ([209.85.216.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBolU-0001bO-RV for 1867@debbugs.gnu.org; Thu, 06 Oct 2011 10:17:38 -0400 Received: by qadb12 with SMTP id b12so2118383qad.3 for <1867@debbugs.gnu.org>; Thu, 06 Oct 2011 07:17:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=JbQrd5larS3xkvI4tx5a9Uf1+jcUl8Nj5ohR4v4EOcA=; b=pNW/uBc7w26w6m0ZCRXVi18UuoaA5MR2MAsj53BPsY2AMfBeqfZJ9MW35K9B4WkW+Q j91zS8VFpBYZqEO5/MPGYXYe/9QvPYyTkcD4gUAj1IYNeFbmrJhZmereurq2oSjhvfub Gl3AvrmOssq3r2bQetm9zJhL9Q84gMr+gFPyw= Received: by 10.229.217.8 with SMTP id hk8mr598954qcb.118.1317910642358; Thu, 06 Oct 2011 07:17:22 -0700 (PDT) Received: from home.jasonrumney.net ([180.75.146.74]) by mx.google.com with ESMTPS id dy4sm6526074qab.12.2011.10.06.07.17.18 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 06 Oct 2011 07:17:21 -0700 (PDT) Received: by home.jasonrumney.net (Postfix, from userid 1000) id 8089BDA3; Thu, 6 Oct 2011 22:17:13 +0800 (MYT) From: Jason Rumney References: <87ljtgzvgg.fsf@unicorn.lan> <4E8C00C8.9010208@swipnet.se> <4E8C9535.4000206@swipnet.se> <83wrcjgp28.fsf@gnu.org> Date: Thu, 06 Oct 2011 22:17:13 +0800 In-Reply-To: ("Jan =?UTF-8?Q?Dj=C3=A4rv?="'s message of "Wed, 5 Oct 2011 23:16:19 +0200") Message-ID: <87wrciqk5y.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.6 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) Jan Dj=C3=A4rv writes: >> And could redrawing a single character under the cursor cause >> flickering with antialiased fonts? > > For that character it might happen if the clearing and writing is > separated long enough in time. Depends on the speed of your machine. It used to happen on Windows, because the antialiasing around the character overlaps with surrounding characters, causing much more than just the character under the cursor to be redrawn. The fix was to improve the clip region around the text that needs redrawing so that at most only the immediately adjacent characters need redrawing, not the whole line or in extreme cases, the whole frame. From unknown Sat Jun 21 05:01:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#1867: Resizing window causes text flickering when using antialiased font on X Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Oct 2011 15:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1867 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Jan D." Cc: lbsmtp@gmail.com, Eli Zaretskii , 1867@debbugs.gnu.org Received: via spool by 1867-submit@debbugs.gnu.org id=B1867.131791359513593 (code B ref 1867); Thu, 06 Oct 2011 15:07:02 +0000 Received: (at 1867) by debbugs.gnu.org; 6 Oct 2011 15:06:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBpWt-0003XC-1y for submit@debbugs.gnu.org; Thu, 06 Oct 2011 11:06:35 -0400 Received: from vm-emlprdomr-02.its.yale.edu ([130.132.50.143]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBpWr-0003X1-Lu for 1867@debbugs.gnu.org; Thu, 06 Oct 2011 11:06:34 -0400 Received: from furball (dhcp-128-36-14-81.central.yale.edu [128.36.14.81]) (authenticated bits=0) by vm-emlprdomr-02.its.yale.edu (8.14.4/8.14.4) with ESMTP id p96F6IOD018905 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 6 Oct 2011 11:06:18 -0400 From: Chong Yidong References: <87ljtgzvgg.fsf@unicorn.lan> <4E8C00C8.9010208@swipnet.se> <8739f73xva.fsf@stupidchicken.com> <4E8D4524.3090902@swipnet.se> Date: Thu, 06 Oct 2011 11:06:18 -0400 In-Reply-To: <4E8D4524.3090902@swipnet.se> (Jan D.'s message of "Thu, 06 Oct 2011 08:05:24 +0200") Message-ID: <87vcs2kvmd.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.143 X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) "Jan D." writes: >> The right way to fix flickering in Emacs is to implement double >> buffering, which is not a trivial project. > > If we are aiming for a general solution across all ports this is true. > A pure X solution might be easier if we use the double buffer > extension. I took a brief look into this some time ago. The DBE module is pretty under-documented, and I wasn't able to find any code that uses it. GTK, for instance, does its own double-buffering rather than using DBE. From unknown Sat Jun 21 05:01:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#1867: Resizing window causes text flickering when using antialiased font on X Resent-From: Bo Lin Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Oct 2011 19:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1867 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Glenn Morris Cc: 1867@debbugs.gnu.org Received: via spool by 1867-submit@debbugs.gnu.org id=B1867.131793021911917 (code B ref 1867); Thu, 06 Oct 2011 19:44:02 +0000 Received: (at 1867) by debbugs.gnu.org; 6 Oct 2011 19:43:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBtr1-000369-69 for submit@debbugs.gnu.org; Thu, 06 Oct 2011 15:43:39 -0400 Received: from mail-gy0-f172.google.com ([209.85.160.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBtoi-00032Z-Cf for 1867@debbugs.gnu.org; Thu, 06 Oct 2011 15:41:18 -0400 Received: by gyd12 with SMTP id 12so2924969gyd.3 for <1867@debbugs.gnu.org>; Thu, 06 Oct 2011 12:41:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=IxwkwDPhMtk4Kgh4jTBKYLDLRTZNanNjyjLwgln3EJY=; b=PfJs3rGSfK4jUPG5B/bO+pRBmHlTBaMhwE7CbW1yZReYnT6iK/iGRh2UqPQwiEDevx 6Ri84aJJ1/VS/JvSZL5DO+H8ywKC0a5cL6B1romLklhlKVKFFf9TpL3hy/3wxPQcxEUF AhnKHy8230QUDUzPkiJAMe/goRpLVS6lrGPoo= MIME-Version: 1.0 Received: by 10.223.88.71 with SMTP id z7mr5491293fal.26.1317929921806; Thu, 06 Oct 2011 12:38:41 -0700 (PDT) Received: by 10.152.10.165 with HTTP; Thu, 6 Oct 2011 12:38:41 -0700 (PDT) In-Reply-To: References: <87ljtgzvgg.fsf@unicorn.lan> Date: Thu, 6 Oct 2011 15:38:41 -0400 Message-ID: From: Bo Lin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.6 (---) X-Mailman-Approved-At: Thu, 06 Oct 2011 15:43:37 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) Hi Glenn, This bug is no longer present as of Emacs 23.3, on the same machine. Actually, I don't recall having this problem for a very long time, since at least 23.1. I guess this bug can be closed. Regards, Bo On Tue, Oct 4, 2011 at 9:13 PM, Glenn Morris wrote: > Bo Lin wrote: > >> 1. Choose a font FONTNAME which supports antialiasing. Confirm >> antialiasing is turned on for FONTNAME in fontconfig: >> >> $ fc-match -v FONTNAME |grep antialias >> =A0 =A0 =A0 antialias: FcTrue(w) >> >> 2. emacs -q >> 3. M-: (set-face-attribute 'default nil :font "FONTNAME") >> 4. C-x 3 C-x 2 >> >> Now there are three windows. We'll name the upper-left window 1, >> lower-left window 2, and the right window 3. >> >> 5. C-x b *scratch* RET C-x o C-x b *Messages* RET C-x o C-h i >> 6. Using mouse, quickly drag mode-line of window 1 up and down. >> >> Observe how text in window 1 and 3 flicker as windows 1 and 2 are >> resized. The main point is that window 3, though totally unaffected by >> the resizing of windows 1 and 2 and showing a different buffer, is still >> been constantly redrawn. This quite annoying, as even when the >> mini-buffer window resizes, which happens quite frequently, will cause >> the whole frame to flicker. >> >> This flickering does *not* occur if using old X core fonts. To confirm, >> start with `emacs -q -fn fixed' and repeat steps 4-6. > [...] >> In GNU Emacs 23.0.60.7 (i686-pc-linux-gnu, GTK+ Version 2.14.4) >> =A0of 2009-01-12 on unicorn >> Windowing system distributor `The X.Org Foundation', version 11.0.105020= 00 > > > I don't seem to be able to reproduce this. Do you still see this with > the latest version of Emacs? > From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 06 16:38:33 2011 Received: (at control) by debbugs.gnu.org; 6 Oct 2011 20:38:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBui8-0006iC-J9 for submit@debbugs.gnu.org; Thu, 06 Oct 2011 16:38:33 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RBui5-0006i4-Q5 for control@debbugs.gnu.org; Thu, 06 Oct 2011 16:38:30 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RBuhu-0001HG-WC for control@debbugs.gnu.org; Thu, 06 Oct 2011 16:38:19 -0400 Date: Thu, 06 Oct 2011 16:38:18 -0400 Message-Id: Subject: control message for bug 1867 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) close 1867