From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#63187: 30.0.50; Tail of longer lines painted after end of nearby lines on macOS Date: Mon, 01 May 2023 16:25:05 +0300 Message-ID: <83pm7knpzi.fsf@gnu.org> References: <87ilddec31.fsf@yahoo.com> <87edo0exct.fsf@yahoo.com> <83wn1sns1n.fsf@gnu.org> <87pm7kchqw.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3241"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63187@debbugs.gnu.org, aaronjensen@gmail.com To: Po Lu , Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 01 15:25:18 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ptTWn-0000bq-UK for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 May 2023 15:25:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptTWb-0002UI-DC; Mon, 01 May 2023 09:25:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptTWY-0002Tw-Tq for bug-gnu-emacs@gnu.org; Mon, 01 May 2023 09:25:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ptTWY-0004so-Gw for bug-gnu-emacs@gnu.org; Mon, 01 May 2023 09:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ptTWY-00014e-1H for bug-gnu-emacs@gnu.org; Mon, 01 May 2023 09:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 May 2023 13:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63187 X-GNU-PR-Package: emacs Original-Received: via spool by 63187-submit@debbugs.gnu.org id=B63187.16829474724079 (code B ref 63187); Mon, 01 May 2023 13:25:01 +0000 Original-Received: (at 63187) by debbugs.gnu.org; 1 May 2023 13:24:32 +0000 Original-Received: from localhost ([127.0.0.1]:39191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptTW4-00013j-F8 for submit@debbugs.gnu.org; Mon, 01 May 2023 09:24:32 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptTW2-00013X-Ks for 63187@debbugs.gnu.org; Mon, 01 May 2023 09:24:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptTVv-0004pf-EK; Mon, 01 May 2023 09:24:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=30Gp28sCKagTVqZwQbZ/irqKjRQZP1tVqJoMGSf847M=; b=oiaD/EoDIdVo flzkndPZ7EYwljskIYHMueVvIVdyO89Pf6uKeMWtxdxRpeHg6b+GCKzhutmMloeac8gZkfp8pAkEZ 1JBMs5wE7Yx4HGH6xar8hU8U2u6mwV9ZzV/WwZcZT4fCIpHJEhvOA22WhnquCKdA0ubAY8LIswAAA PcTCy+tT7WohjX/biuLeXkAEjUD3x49BXbmM0+pXwtANIFVstS+lesI1IH5pPHUVhkikHpaxiuZYu hu/BouKHE9v0t/YawzccnFgCE6TzOm1P7J4ps0BKXlZLslWVPhkUdhXhw38kn6zhyIEDzMmUvR/78 q+TCRV0+yf4NL2gkSKZTkA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptTVu-0006bQ-Vz; Mon, 01 May 2023 09:24:23 -0400 In-Reply-To: <87pm7kchqw.fsf@yahoo.com> (message from Po Lu on Mon, 01 May 2023 21:18:31 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260868 Archived-At: > From: Po Lu > Cc: aaronjensen@gmail.com, 63187@debbugs.gnu.org > Date: Mon, 01 May 2023 21:18:31 +0800 > > Eli Zaretskii writes: > > >> Cc: 63187@debbugs.gnu.org > >> Date: Mon, 01 May 2023 07:58:26 +0800 > >> From: Po Lu via "Bug reports for GNU Emacs, > >> the Swiss army knife of text editors" > >> > >> Aaron Jensen writes: > >> > >> > Is there anything specific to macOS that is involved in scrolling optimization? > >> > >> Yes, Apple deleted the API used to perform bit blits, so Emacs uses a > >> workaround that I don't really understand, and seems unreliable. > > > > You mean, ns_scroll_run in nsterm.m? Which parts of it do you not > > understand? > > No, I meant the implementation of [EmacsView copyRect:] enabled under > Mac OS; see line 8655 of nsterm.m. I don't understand how the system > synchronizes its access to the window's backing store with Emacs's. Alan, can you help? If this is unworkable on macOS, we could simply disable this optimization there. But note that scroll_run_hook is also called from xdisp.c, in several places, so we may need to disable it there as well.