aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-12-02 20:19:39 +0000
committerGerd Moellmann2000-12-02 20:19:39 +0000
commit285991dceb4afdb2eec3e58dcca908316471b0c0 (patch)
tree9edf24cab4c63e8280b5508c682b31a00da5192e
parent52dca1b2266589225cd650ee939477cf16448be8 (diff)
downloademacs-285991dceb4afdb2eec3e58dcca908316471b0c0.tar.gz
emacs-285991dceb4afdb2eec3e58dcca908316471b0c0.zip
(use-fancy-splash-screens-p): New function.
(command-line-1): Use it to determine whether or not to use a fancy splash screen.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/startup.el18
2 files changed, 22 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2b00f4598bd..f7b03c122b1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12000-12-02 Gerd Moellmann <gerd@gnu.org>
2
3 * startup.el (use-fancy-splash-screens-p): New function.
4 (command-line-1): Use it to determine whether or not to use
5 a fancy splash screen.
6
12000-12-02 Andreas Schwab <schwab@suse.de> 72000-12-02 Andreas Schwab <schwab@suse.de>
2 8
3 * emacs-lisp/eldoc.el (eldoc): Don't make parent of itself. 9 * emacs-lisp/eldoc.el (eldoc): Don't make parent of itself.
@@ -14,7 +20,7 @@
14 with numeric argument. Docstring fix. 20 with numeric argument. Docstring fix.
15 (toplevel): Require cl when compiling. 21 (toplevel): Require cl when compiling.
16 22
17 * internat/mule.el (make-char): Doc fix. 23 * international/mule.el (make-char): Doc fix.
18 24
192000-12-02 Jason Rumney <jasonr@gnu.org> 252000-12-02 Jason Rumney <jasonr@gnu.org>
20 26
diff --git a/lisp/startup.el b/lisp/startup.el
index f4550310a87..40e0a5f02c3 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -1153,6 +1153,20 @@ where FACE is a valid face specification, as it can be used with
1153 (kill-buffer splash-buffer))))) 1153 (kill-buffer splash-buffer)))))
1154 1154
1155 1155
1156(defun use-fancy-splash-screens-p ()
1157 "Return t if fancy splash screens should be used."
1158 (when (or (and (display-color-p)
1159 (image-type-available-p 'xpm))
1160 (image-type-available-p 'pbm))
1161 (let* ((img (create-image (or fancy-splash-image
1162 (if (and (display-color-p)
1163 (image-type-available-p 'xpm))
1164 "splash.xpm" "splash.pbm"))))
1165 (image-height (and img (cdr (image-size img))))
1166 (window-height (1- (window-height (selected-window)))))
1167 (> window-height (+ image-height 14)))))
1168
1169
1156(defun startup-echo-area-message () 1170(defun startup-echo-area-message ()
1157 (if (eq (key-binding "\C-h\C-p") 'describe-project) 1171 (if (eq (key-binding "\C-h\C-p") 'describe-project)
1158 "For information about the GNU Project and its goals, type C-h C-p." 1172 "For information about the GNU Project and its goals, type C-h C-p."
@@ -1241,9 +1255,7 @@ where FACE is a valid face specification, as it can be used with
1241 1255
1242 (if (assq 'display (frame-parameters)) 1256 (if (assq 'display (frame-parameters))
1243 1257
1244 (if (or (and (display-color-p) 1258 (if (use-fancy-splash-screens-p)
1245 (image-type-available-p 'xpm))
1246 (image-type-available-p 'pbm))
1247 (progn 1259 (progn
1248 (setq wait-for-input nil) 1260 (setq wait-for-input nil)
1249 (fancy-splash-screens)) 1261 (fancy-splash-screens))