aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-08-22 07:41:58 +0000
committerGlenn Morris2007-08-22 07:41:58 +0000
commitf51a80aff35c103ff5881edba4f45f82b227e3d5 (patch)
tree6516b8087765cd3daa51de7981be7f7b23abbece
parent9ca6898a721a4fa3cf67497c0202ffc6ec18559e (diff)
downloademacs-f51a80aff35c103ff5881edba4f45f82b227e3d5.tar.gz
emacs-f51a80aff35c103ff5881edba4f45f82b227e3d5.zip
(tutorial-directory): New constant.
(fancy-splash-text): Tutorials now in tutorial-directory.
-rw-r--r--lisp/startup.el15
1 files changed, 9 insertions, 6 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 53f120b0159..d791a0f6e5a 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -308,6 +308,9 @@ from being initialized."
308(defvar pure-space-overflow nil 308(defvar pure-space-overflow nil
309 "Non-nil if building Emacs overflowed pure space.") 309 "Non-nil if building Emacs overflowed pure space.")
310 310
311(defconst tutorial-directory (expand-file-name "tutorials" data-directory)
312 "Directory containing the Emacs TUTORIAL files.")
313
311(defun normal-top-level-add-subdirs-to-load-path () 314(defun normal-top-level-add-subdirs-to-load-path ()
312 "Add all subdirectories of current directory to `load-path'. 315 "Add all subdirectories of current directory to `load-path'.
313More precisely, this uses only the subdirectories whose names 316More precisely, this uses only the subdirectories whose names
@@ -1150,7 +1153,7 @@ regardless of the value of this variable."
1150 en)) 1153 en))
1151 (title (with-temp-buffer 1154 (title (with-temp-buffer
1152 (insert-file-contents 1155 (insert-file-contents
1153 (expand-file-name tut data-directory) 1156 (expand-file-name tut tutorial-directory)
1154 nil 0 256) 1157 nil 0 256)
1155 (search-forward ".") 1158 (search-forward ".")
1156 (buffer-substring (point-min) (1- (point)))))) 1159 (buffer-substring (point-min) (1- (point))))))
@@ -1277,11 +1280,11 @@ where FACE is a valid face specification, as it can be used with
1277 fancy-splash-image) 1280 fancy-splash-image)
1278 ((and (display-color-p) 1281 ((and (display-color-p)
1279 (image-type-available-p 'xpm)) 1282 (image-type-available-p 'xpm))
1280 (if (and (fboundp 'x-display-planes) 1283 (if (and (fboundp 'x-display-planes)
1281 (= (funcall 'x-display-planes) 8)) 1284 (= (funcall 'x-display-planes) 8))
1282 "splash8.xpm" 1285 "splash8.xpm"
1283 "splash.xpm")) 1286 "splash.xpm"))
1284 (t "splash.pbm"))) 1287 (t "splash.pbm")))
1285 (img (create-image image-file)) 1288 (img (create-image image-file))
1286 (image-width (and img (car (image-size img)))) 1289 (image-width (and img (car (image-size img))))
1287 (window-width (window-width (selected-window)))) 1290 (window-width (window-width (selected-window))))