From: David Reitter <david.reitter@gmail.com>
To: chad brown <y@MIT.EDU>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: slow make-frame + face initialization / importing x resources
Date: Sun, 15 Jul 2007 23:08:25 +0100 [thread overview]
Message-ID: <BC7A596D-11B2-43C4-ABD0-FE203B037174@gmail.com> (raw)
In-Reply-To: <32549BA2-FE38-46CB-AE54-8ABA4D29944F@mit.edu>
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
next prev parent reply other threads:[~2007-07-15 22:08 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-13 17:55 slow make-frame + face initialization / importing x resources David Reitter
2007-07-13 23:08 ` Richard Stallman
2007-07-14 1:21 ` Stefan Monnier
2007-07-14 22:32 ` Richard Stallman
2007-07-14 1:55 ` Stefan Monnier
2007-07-14 20:53 ` David Reitter
2007-07-14 21:28 ` Eli Zaretskii
2007-07-15 1:29 ` Stefan Monnier
2007-07-15 13:50 ` Jan Djärv
2007-07-15 14:07 ` David Kastrup
2007-07-15 22:02 ` Jan Djärv
2007-07-15 22:54 ` Richard Stallman
2007-07-15 22:53 ` Richard Stallman
2007-07-15 8:26 ` Juanma Barranquero
2007-07-15 9:35 ` David Reitter
2007-07-15 20:10 ` chad brown
2007-07-15 22:08 ` David Reitter [this message]
2007-07-16 1:40 ` Stefan Monnier
2007-07-16 3:19 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BC7A596D-11B2-43C4-ABD0-FE203B037174@gmail.com \
--to=david.reitter@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=y@MIT.EDU \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.