From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: Emacs Mac port Date: Wed, 17 Apr 2013 14:46:41 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <83ip3p72mz.fsf@gnu.org> <83d2tw73h7.fsf@gnu.org> <8361zo6um1.fsf@gnu.org> <8338us6oz9.fsf@gnu.org> <838v4j55si.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1366177611 2272 80.91.229.3 (17 Apr 2013 05:46:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Apr 2013 05:46:51 +0000 (UTC) Cc: Eli Zaretskii , Stefan Monnier , emacs-devel@gnu.org To: Jan =?ISO-8859-1?Q?Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 17 07:46:55 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 1USLCp-0000JI-B4 for ged-emacs-devel@m.gmane.org; Wed, 17 Apr 2013 07:46:55 +0200 Original-Received: from localhost ([::1]:42295 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USLCp-00071k-0c for ged-emacs-devel@m.gmane.org; Wed, 17 Apr 2013 01:46:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:32866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USLCl-00071d-HQ for emacs-devel@gnu.org; Wed, 17 Apr 2013 01:46:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1USLCj-0005Vx-N5 for emacs-devel@gnu.org; Wed, 17 Apr 2013 01:46:51 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:51954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USLCf-0005UT-Gn; Wed, 17 Apr 2013 01:46:45 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 28299C0563; Wed, 17 Apr 2013 14:46:41 +0900 (JST) In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 133.82.132.2 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:158971 Archived-At: >>>>> On Wed, 17 Apr 2013 07:08:25 +0200, Jan Dj=E4rv = said: > 17 apr 2013 kl. 01:52 skrev YAMAMOTO Mitsuharu : >>=20 >> My proof-of-concept cairo port was primarily intended for the printing >> support, not for screen drawing (though it does both). >>=20 >> http://lists.gnu.org/archive/html/emacs-devel/2009-04/msg00390.html >>=20 >> Screen drawing in the cairo port is not so efficient for several >> reasons. To make it more efficient, one would need some modest >> modifications to the current drawing model in Emacs. >>=20 >> 1. Don't draw during redisplay, but mark the updated area dirty so >> the upcoming exposure event can trigger the actual redraw for the >> area to be updated. >> 2. Restrict the actual drawings to those in response to exposure >> events. This is the standard way in GTK+ and Cocoa. That would >> make double-buffering straightforward in GTK+ builds. > Double buffering in the Gtk+ is not turned off because of the expose > handler, but because Gtk+ can not double buffer text/images not > drawn with Gtk/Gdk primitives, and Emacs uses X primitives. So > changing the way expose handler works does absolutely nothing to > make Gtk+ double buffering easier. That would be correct in itself. But my description above is in the context of cairo. The cairo context passed via the expose handler is automatically double-buffered. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp