aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2000-10-19 09:04:26 +0000
committerMiles Bader2000-10-19 09:04:26 +0000
commit13ab33c43bdde64caaf0b167b9fc80b89cd44041 (patch)
tree1bc9248a57458541b2bdb219f13e502f5b246c64
parentd8abcd91a3b2d7c86b4cc8e4da3372f3b89a8f24 (diff)
downloademacs-13ab33c43bdde64caaf0b167b9fc80b89cd44041.tar.gz
emacs-13ab33c43bdde64caaf0b167b9fc80b89cd44041.zip
(normal-top-level):
Call `frame-set-background-mode' after `frame-notice-user-settings' because the latter doesn't call the former on a tty.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/startup.el7
2 files changed, 11 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9e08f40ecc9..1539e0df30f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12000-10-19 Miles Bader <miles@lsi.nec.co.jp> 12000-10-19 Miles Bader <miles@lsi.nec.co.jp>
2 2
3 * startup.el (normal-top-level): Call `frame-set-background-mode'
4 after `frame-notice-user-settings' because the latter doesn't call
5 the former on a tty.
6
3 * faces.el (frame-set-background-mode): `unspecified' &c are 7 * faces.el (frame-set-background-mode): `unspecified' &c are
4 symbols, not strings. 8 symbols, not strings.
5 9
diff --git a/lisp/startup.el b/lisp/startup.el
index 432715182d2..2d3b8a70d4e 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -473,6 +473,13 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
473 ;; ...-frame-alist. 473 ;; ...-frame-alist.
474 (if (fboundp 'frame-notice-user-settings) 474 (if (fboundp 'frame-notice-user-settings)
475 (frame-notice-user-settings)) 475 (frame-notice-user-settings))
476 (if (fboundp 'frame-set-background-mode)
477 ;; Set the faces for the initial background mode even if
478 ;; frame-notice-user-settings didn't (such as on a tty).
479 ;; frame-set-background-mode is idempotent, so it won't
480 ;; cause any harm if it's already been done.
481 (frame-set-background-mode (selected-frame)))
482
476 ;; Now we know the user's default font, so add it to the menu. 483 ;; Now we know the user's default font, so add it to the menu.
477 (if (fboundp 'font-menu-add-default) 484 (if (fboundp 'font-menu-add-default)
478 (font-menu-add-default)) 485 (font-menu-add-default))