From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Donald Curtis Newsgroups: gmane.emacs.devel Subject: Re: Emacs on OS X development Date: Wed, 18 Jul 2012 15:43:21 -0500 Message-ID: <42076FF8-523B-451D-9EC7-64BB82B2538C@gmail.com> References: <33545A47-0907-4059-92A6-0343CEDD2750@swipnet.se> <869E965F-CD75-46D6-92BB-B3C08C8D846B@swipnet.se> <87fw8t7siv.fsf@gnu.org> <5ACE24AD-E349-49ED-B737-885773069F1E@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1342644212 25925 80.91.229.3 (18 Jul 2012 20:43:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 Jul 2012 20:43:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 18 22:43:31 2012 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 1Srb5m-0003tW-4Q for ged-emacs-devel@m.gmane.org; Wed, 18 Jul 2012 22:43:30 +0200 Original-Received: from localhost ([::1]:40124 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srb5l-0006vd-AA for ged-emacs-devel@m.gmane.org; Wed, 18 Jul 2012 16:43:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srb5h-0006vK-Vi for emacs-devel@gnu.org; Wed, 18 Jul 2012 16:43:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Srb5g-0001AA-AT for emacs-devel@gnu.org; Wed, 18 Jul 2012 16:43:25 -0400 Original-Received: from mail-gh0-f169.google.com ([209.85.160.169]:55615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Srb5g-00019u-51 for emacs-devel@gnu.org; Wed, 18 Jul 2012 16:43:24 -0400 Original-Received: by ghrr18 with SMTP id r18so2474560ghr.0 for ; Wed, 18 Jul 2012 13:43:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=CA+7vjnOXy1SdEpVMVSWtX69jJscHGZm6fPwhMg4fMI=; b=Nts4ffF5sE/8gbfAN4TskpoveGFI7pK/58N0YWKoc5Bn88TkR+dFX//si+vlUMuU2+ IgyK6lA/V1jRNobc2vC2sEUGfgdSYlRSby4m8v6L4daPEYY8orYBeTwHRsnPFrI744jX I71iNmOTytjHXYUN926Tq/uKE8QAn9jY/EP0AybgydYjnAU5wbTQ33xzKrrZVkIMdZ89 9Gnc8RmFXu9uPm2oxd70L0MUCVQkj0iLczpltx2xlpjCqyfLbDswcs7TAVTTXoWB6h31 BP4cqKHClaKl48tYh0tmM7y+zLxXwsbZQaSxU8LBV9UIMILCzkTJppy+DdNpHa9P1g+V XDHQ== Original-Received: by 10.50.183.200 with SMTP id eo8mr3366015igc.63.1342644203036; Wed, 18 Jul 2012 13:43:23 -0700 (PDT) Original-Received: from [192.168.1.101] (173-29-243-191.client.mchsi.com. [173.29.243.191]) by mx.google.com with ESMTPS id uy3sm15151234igc.14.2012.07.18.13.43.22 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 Jul 2012 13:43:22 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1278) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.169 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:151742 Archived-At: This is perfect. Yamamoto, is it easy to have an update of your 24.1 patches uploaded to = FTP? Incorporating this one and the one that you mailed out recently to = the list? After thinking about all the discussion here, and the rule that "every = feature in Emacs should work in the GNU system, and should work at least = as well in the GNU system as it does on any other platform" puts these = "mac" patches in a predicament. Things like animation support=97that is = taken care of mainly by the Cocoa libraries?=97may not be easy to do = well on the GNU system. And it seems like, based on the bits I have = read from Yamamoto, it would also not be easy to incorporate the "mac" = changes into mainline because of fundamental design choices in the NS = port. But MacVIM is an example of this same problem dealt with by the = Vim camp; it is an extension to Vim=97by default support GTK and = Gnome=97and adds a nice Cocoa layer. My only concern is that Yamamoto not get burnt out maintaing this; I = don't know how time consuming it is but I assume there is some = challenge. So the only question I have is if Yamamoto would consider = keeping the source for his port in a VCS somewhere online so that people = can help by submitting bugs and things. And maybe even build a small = website to promote that version. Maybe this would not be desirable for = Yamamoto though, but it seems like it would build a bit more community = for it, and also let people play with the HEAD version. Just an idea; I = may have missed the discussion about this already... And I believe no matter what the outcome, this is a win for all. More = attention to Emacs on any platform will eventually trickle down to the = GNU system in some way or another. Maybe all the changes will get = incorporated into the main tree or maybe none will, but I suspect the = reality is a middle ground where some patches stay in the Mac port and = some get the main tree. I will try to work on creating .app binaries for this. There has to be = a simple way as someone is packaging Emacs.app now... Donald On Jul 17, 2012, at 10:42 PM, YAMAMOTO Mitsuharu wrote: >>>>>> On Tue, 17 Jul 2012 21:56:36 -0500, "John Wiegley" = said: >=20 >>>> My only complaint is that now that Yamamoto has included the GUI >>>> animation stuff, it triggers my discrete GPU on my laptop, >>>> something I would like it to not do. >=20 >>> Which one? I think I've added animations only for limited >>> situations that do not happen frequently, but I may have overlooked >>> something. >=20 >> I also found that graphics switched immediately upon running Emacs. >=20 > Does the patch below help? I can't test it because I don't have > MacBook Pro. >=20 > It seems this requires Mac OS X Lion and Early 2011 MacBook Pro. > (http://developer.apple.com/library/mac/#qa/qa1734/) >=20 > YAMAMOTO Mitsuharu > mituharu@math.s.chiba-u.ac.jp >=20 > =3D=3D=3D modified file 'mac/Emacs.app/Contents/Info.plist' > *** mac/Emacs.app/Contents/Info.plist 2012-06-01 11:45:25 +0000 > --- mac/Emacs.app/Contents/Info.plist 2012-07-18 03:39:53 +0000 > *************** > *** 157,161 **** > --- 157,163 ---- > > > > + NSSupportsAutomaticGraphicsSwitching > + > > >=20 >=20