Mercurial > hg > xemacs-beta
diff lisp/startup.el @ 239:41f2f0e326e9 r20-5b18
Import from CVS: tag r20-5b18
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:15:48 +0200 |
parents | 85a06df23a9a |
children | 51092a27c943 |
line wrap: on
line diff
--- a/lisp/startup.el Mon Aug 13 10:15:04 2007 +0200 +++ b/lisp/startup.el Mon Aug 13 10:15:48 2007 +0200 @@ -212,6 +212,8 @@ -no-site-file Do not load the site-specific init file (site-start.el). -no-init-file Do not load the user-specific init file (~/.emacs). -no-packages Do not process the package path. + -no-autoloads Do not load global symbol files (auto-autoloads) at + startup. Also implies `-vanilla'. -vanilla Equivalent to -q -no-site-file -no-packages. -q Same as -no-init-file. -user <user> Load user's init file instead of your own. @@ -467,7 +469,10 @@ (string= arg "--no-packages")) (setq inhibit-package-init t)) ((or (string= arg "-vanilla") - (string= arg "--vanilla")) + (string= arg "--vanilla") + ;; Some work on this one already done in emacs.c. + (string= arg "-no-autoloads") + (string= arg "--no-autoloads")) (setq init-file-user nil site-start-file nil inhibit-package-init t)) @@ -607,6 +612,20 @@ ;;; Load user's init file and default ones. (defun load-init-file () + ;; Disabled for now + (unless inhibit-update-dumped-lisp + (packages-reload-dumped-lisp)) + +;; (unless inhibit-update-autoloads +;; (packages-reload-autoloads)) + (unless inhibit-update-autoloads + (let ((dir load-path)) + (while dir + (condition-case nil + (load (expand-file-name "auto-autoloads" (car dir)) nil t) + (t nil)) + (pop dir)))) + (run-hooks 'before-init-hook) ;; Run the site-start library if it exists. The point of this file is @@ -615,13 +634,6 @@ (when site-start-file (load site-start-file t t)) - ;; Disabled for now - (unless inhibit-update-dumped-lisp - (packages-reload-dumped-lisp)) - - (unless inhibit-update-autoloads - (packages-reload-autoloads)) - ;; Sites should not disable this. Only individuals should disable ;; the startup message. (setq inhibit-startup-message nil) @@ -940,10 +952,13 @@ (defun startup-splash-frame () (let ((p (point)) + (logo (cond ((featurep 'infodock) + (make-glyph (locate-data-file "altrasoft-logo.xpm"))) + (t xemacs-logo))) (cramped-p (eq 'tty (console-type)))) (unless cramped-p (insert "\n")) - (indent-to (startup-center-spaces xemacs-logo)) - (set-extent-begin-glyph (make-extent (point) (point)) xemacs-logo) + (indent-to (startup-center-spaces logo)) + (set-extent-begin-glyph (make-extent (point) (point)) logo) (insert (if cramped-p "\n" "\n\n")) (splash-frame-present-hack (make-extent p (point)) 'about-xemacs))