From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: slow make-frame + face initialization / importing x resources Date: Sun, 15 Jul 2007 23:08:25 +0100 Message-ID: References: <2CB90CD5-24E4-4EA9-BF74-5E9AE248BF6B@gmail.com> <0A1A673C-66FC-4E61-977A-53663AD4953B@gmail.com> <32549BA2-FE38-46CB-AE54-8ABA4D29944F@mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1184537321 19445 80.91.229.12 (15 Jul 2007 22:08:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 15 Jul 2007 22:08:41 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: chad brown Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 16 00:08:39 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IACGZ-0003Ak-UZ for ged-emacs-devel@m.gmane.org; Mon, 16 Jul 2007 00:08:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IACGZ-0001go-7t for ged-emacs-devel@m.gmane.org; Sun, 15 Jul 2007 18:08:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IACGW-0001gR-RB for emacs-devel@gnu.org; Sun, 15 Jul 2007 18:08:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IACGW-0001gF-Ct for emacs-devel@gnu.org; Sun, 15 Jul 2007 18:08:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IACGW-0001gC-9z for emacs-devel@gnu.org; Sun, 15 Jul 2007 18:08:32 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.172]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IACGV-0007tJ-S3 for emacs-devel@gnu.org; Sun, 15 Jul 2007 18:08:32 -0400 Original-Received: by ug-out-1314.google.com with SMTP id 34so1057050ugf for ; Sun, 15 Jul 2007 15:08:30 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=l2LGvr9FYZ0H7Hw7pQau/L2BnYK9KO7AEzDAHCnBdmmBzeU8FvZUnZXULDjWu1X6Eipaa0omjnuhPUwrDPeWNq7uLvT+5kZpUhySM5OGgemCrYnMFfc5dxtbEtVTPXJBQm1JwqH5RBN7qkxq7DEUlXUuVnaQHngDa+4tBe9NVws= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=YdO7viHma2NOnRUZamBw8nZ449BsJCQ/zlV1rqrolXJA2Ut6Ur+GkEAt1g+wWN/oBXPI9cHtdS6Ij78jw6M6HPvpk2ddktaChI9fi3ybLq4ZZ+fVnGfYCGhMzalWRBMT2D/UugXWAAYD/BB6dwldtrFkG2iUt39dM6XAStRuyAg= Original-Received: by 10.66.216.8 with SMTP id o8mr3821722ugg.1184537310486; Sun, 15 Jul 2007 15:08:30 -0700 (PDT) Original-Received: from ?10.5.5.200? ( [84.9.229.40]) by mx.google.com with ESMTP id 31sm24377795nfu.2007.07.15.15.08.28 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 15 Jul 2007 15:08:29 -0700 (PDT) In-Reply-To: <32549BA2-FE38-46CB-AE54-8ABA4D29944F@mit.edu> X-Mailer: Apple Mail (2.752.2) X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:74848 Archived-At: On 15 Jul 2007, at 21:10, chad brown wrote: > I believe that the Mac carbon port, at least, reads (pseudo) X > resources to deal with customization before .emacs; specifically, > so that windows can be graphically configured before mapped (which > can result in ugly/annoying flashing, for example). For what it's worth, here's a patch from Aquamacs which avoids flashing/resizing. The initial frame is invisible, and only after the site- and user-specific settings are loaded, this frame is made visible. (In case of errors, the frame is made visible, too, of course.) Index: lisp/startup.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/startup.el,v retrieving revision 1.368 diff -c -r1.368 startup.el *** lisp/startup.el 15 Jul 2005 14:47:06 -0000 1.368 --- lisp/startup.el 17 Jul 2005 22:07:56 -0000 *************** *** 463,469 **** (if (string-match "^\\(xterm\\|rxvt\\|dtterm\\|eterm\\)" term) (setq default-frame-background-mode 'light))) ! (frame-set-background-mode (selected-frame))))) ;; Now we know the user's default font, so add it to the menu. (if (fboundp 'font-menu-add-default) --- 463,472 ---- (if (string-match "^\\(xterm\\|rxvt\\|dtterm\\|eterm\\)" term) (setq default-frame-background-mode 'light))) ! (frame-set-background-mode (selected-frame)))) ! ! ;; time to make the frame visible (Aquamacs) ! (make-frame-visible)) ;; Now we know the user's default font, so add it to the menu. (if (fboundp 'font-menu-add-default) *************** *** 721,726 **** --- 724,732 ---- (and command-line-args (setcdr command-line-args args))) + ;; the initial frame is hidden in Aquamacs + (setq initial-frame-alist (cons '(visibility . nil) initial-frame- alist)) + ;; Under X Window, this creates the X frame and deletes the terminal frame. (when (fboundp 'frame-initialize) (frame-initialize)) *************** *** 1730,1735 **** --- 1736,1744 ---- ;; keystroke, and that's distracting. (when (fboundp 'frame-notice-user-settings) (frame-notice-user-settings)) + + ;; time to make the frame visible (Aquamacs) + (make-frame-visible) ;; If there are no switches to process, we might as well ;; run this hook now, and there may be some need to do it