From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Keith David Bershatsky Newsgroups: gmane.emacs.devel Subject: NS (darwin): What is the utility of update_window? Date: Sat, 27 Jul 2019 19:47:19 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="161942"; mail-complaints-to="usenet@blaine.gmane.org" To: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 28 04:47:55 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hrZE1-000g1q-Ig for ged-emacs-devel@m.gmane.org; Sun, 28 Jul 2019 04:47:54 +0200 Original-Received: from localhost ([::1]:43424 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrZE0-0006MN-L0 for ged-emacs-devel@m.gmane.org; Sat, 27 Jul 2019 22:47:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57083) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrZDi-0006M0-Gk for emacs-devel@gnu.org; Sat, 27 Jul 2019 22:47:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hrZDh-0004aD-KU for emacs-devel@gnu.org; Sat, 27 Jul 2019 22:47:34 -0400 Original-Received: from gateway36.websitewelcome.com ([50.116.126.2]:40468) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hrZDh-0004RP-Ap for emacs-devel@gnu.org; Sat, 27 Jul 2019 22:47:33 -0400 Original-Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway36.websitewelcome.com (Postfix) with ESMTP id 14E5D400E9373 for ; Sat, 27 Jul 2019 21:11:21 -0500 (CDT) Original-Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id rZDUh5HsbiQerrZDVhUhAj; Sat, 27 Jul 2019 21:47:21 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:To:From:Message-ID:Date: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=2EiMFJi0+TnXm1uOzFowTBQvtf58B82mp73J9KwspCs=; b=EdHvVmxr9kpHD/DZhSyECdOgVi zFjsApt4mX2MaZBVykdcJrLZmRice0Dr25i3nB07J5xDmvzLlZ1pV7NiirmCGia95EL7PZeJMi4PX rmi9qK1lpqmYzXOpKcweTGq7ZxP9cKNtQYFFCNEO1Z3mdZ8SaRxxvOMBidacfwDks3q+jPnwe1G4M 4Px+4pRqImU/0IQ0xPYmSUjpCgeuWQiFkVgQ3gDxlH4HdyHv6G2pRE1+otjwjY5yYmzM0N4iasi3Q O/d+JFDinzPgoJlPByXLXwr0MjZ6K1TfqvjtwK9bpL5nV9F6rav2MiSOeg1largWU0FGmqcvwZWD/ PjHsTDcA==; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:52326 helo=server.local) by gator3053.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1hrZDU-003aSv-HT for emacs-devel@gnu.org; Sat, 27 Jul 2019 21:47:20 -0500 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Source-L: No X-Exim-ID: 1hrZDU-003aSv-HT X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.local) [45.48.239.195]:52326 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 50.116.126.2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.org gmane.emacs.devel:238958 Archived-At: It is my understanding that 7946445962372c4255180af45cb7c857f1b0b5fa provides compatibility with MacOS (Mojave) by restricting Emacs in such a way that nothing is written to the glass until the OS normally draws rectangles during the redisplay cycle -- forcing everything to happen with drawRect (expose_frame). Other than marking dirty rectangles during update_window, does anything else useful occur during update_window on the NS port of Emacs? If so, what else is accomplished during update_window? BACKGROUND: Based upon my observations, it would appear that Emacs does extra work on the NS port that is not needed on the W32 and X11 ports. Whereas the W32 and X11 ports can update the glass during update_window, the NS port has to wait until a later point in time to accomplish almost same thing (but not as well).