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: Emacs Mac port Date: Tue, 16 Apr 2013 17:38:17 +0300 Message-ID: <83k3o24k2u.fsf@gnu.org> References: <83ip3p72mz.fsf@gnu.org> <83d2tw73h7.fsf@gnu.org> <8361zo6um1.fsf@gnu.org> <8338us6oz9.fsf@gnu.org> <838v4j55si.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1366124532 16191 80.91.229.3 (16 Apr 2013 15:02:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Apr 2013 15:02:12 +0000 (UTC) Cc: mituharu@math.s.chiba-u.ac.jp, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 16 17:02:15 2013 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 1US7Og-0006qT-N9 for ged-emacs-devel@m.gmane.org; Tue, 16 Apr 2013 17:02:14 +0200 Original-Received: from localhost ([::1]:45024 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US7Og-0000OO-A9 for ged-emacs-devel@m.gmane.org; Tue, 16 Apr 2013 11:02:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US7Oa-0000Fm-RM for emacs-devel@gnu.org; Tue, 16 Apr 2013 11:02:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1US7OY-0005h4-RU for emacs-devel@gnu.org; Tue, 16 Apr 2013 11:02:08 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:51449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US71M-00040r-91 for emacs-devel@gnu.org; Tue, 16 Apr 2013 10:38:08 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MLC00G00QUYNA00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Tue, 16 Apr 2013 17:38:05 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MLC00FMQRBGUJA0@a-mtaout22.012.net.il>; Tue, 16 Apr 2013 17:38:04 +0300 (IDT) 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.172 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:158950 Archived-At: > From: Stefan Monnier > Cc: Eli Zaretskii , emacs-devel@gnu.org > Date: Tue, 16 Apr 2013 09:20:15 -0400 > > > That shows a typical reason why recent toolkits treat the "expose" > > handler as the primary drawing method. By freshly redrawing > > invalidated area in a rear-to-front way, it can provide some fancy > > appearances such as overlapped/translucent widgets in a correct way. > > So IIUC, the "new normal" way you describe goes something like: > - redisplay builds glyph matrices from Lisp data and invalidates the > parts of the display that might need to be redrawn but does not draw. > - expose handlers use the glyph matrices to draw on the screen > when/where needed. > That makes a lot of sense. Maybe I misunderstood, but I don't think the first item is accurate. (And I don't think you can build glyph matrices, but not draw.) I think the first step both draws _and_ invalidates, and then the expose event redraws some small portion of the display.