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: Sat, 16 Feb 2013 20:08:51 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <0425CBCD-2419-45D1-83E6-BEB2E194FBBD@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1361012941 27442 80.91.229.3 (16 Feb 2013 11:09:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Feb 2013 11:09:01 +0000 (UTC) Cc: "emacs-devel@gnu.org developers" To: Pavlo Martynenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 16 12:09:21 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 1U6fdx-0005BR-4B for ged-emacs-devel@m.gmane.org; Sat, 16 Feb 2013 12:09:21 +0100 Original-Received: from localhost ([::1]:42931 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6fdd-0001Qc-AN for ged-emacs-devel@m.gmane.org; Sat, 16 Feb 2013 06:09:01 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6fda-0001QM-Nr for emacs-devel@gnu.org; Sat, 16 Feb 2013 06:08:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6fdZ-0003hV-9o for emacs-devel@gnu.org; Sat, 16 Feb 2013 06:08:58 -0500 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:61465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6fdY-0003gr-OX for emacs-devel@gnu.org; Sat, 16 Feb 2013 06:08:57 -0500 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 71E26C055D; Sat, 16 Feb 2013 20:08:51 +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:157075 Archived-At: >>>>> On Sat, 16 Feb 2013 17:21:35 +0900, YAMAMOTO Mitsuharu said: >>> Also I noticed increased cpu usage from 0.3 up to 4.0% when emacs >>> frame minimised in the Dock. The same can not be said about the NS >>> port. >> This is a serious problem and specific to the Mac port. Please try >> the following patch and send a report to me (not to the list) if >> you find some problem with this patch. > Sorry, I found that key event handling became sluggish when there > are both iconified and uniconified frames. It may take some time to > solve this problem. For the moment, please cancel the previous patch and apply the following one. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp === modified file 'src/macappkit.m' *** src/macappkit.m 2013-02-09 07:26:28 +0000 --- src/macappkit.m 2013-02-16 11:01:41 +0000 *************** *** 6970,6981 **** EmacsWindow *window = FRAME_MAC_WINDOW_OBJECT (f); x_flush (f); ! #if MAC_OS_X_VERSION_MIN_REQUIRED < 1050 ! /* Mac OS X 10.4 seems not to reset the flag ! `viewsNeedDisplay' on autodisplay. */ ! if (floor (NSAppKitVersionNumber) <= NSAppKitVersionNumber10_4) ! [window setViewsNeedDisplay:NO]; ! #endif /* Check which frames are still visible. We do this here because there doesn't seem to be any direct notification that the visibility of a window has --- 6970,6976 ---- EmacsWindow *window = FRAME_MAC_WINDOW_OBJECT (f); x_flush (f); ! [window setViewsNeedDisplay:NO]; /* Check which frames are still visible. We do this here because there doesn't seem to be any direct notification that the visibility of a window has