aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-12-12 05:14:51 +0000
committerRichard M. Stallman2005-12-12 05:14:51 +0000
commit9c8b2150403570970c3e08dcb415fdea6a723cd2 (patch)
tree6c661cf46e292273f62723a4c3e2f4a45297cadf
parente2328c7a51747bf7691093f084c727da917fc8e0 (diff)
downloademacs-9c8b2150403570970c3e08dcb415fdea6a723cd2.tar.gz
emacs-9c8b2150403570970c3e08dcb415fdea6a723cd2.zip
(inhibit-splash-screen): Make this the real name.
(inhibit-startup-message): Make this the alias. (command-line): Find only simple.el, and use its directory to fill in other preloaded files' names. (command-line): Deactivate the mark if deactivate-mark is set.
-rw-r--r--lisp/startup.el37
1 files changed, 24 insertions, 13 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 9ac0f4dd176..62bc2e88dad 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -40,14 +40,14 @@
40 "Emacs start-up procedure." 40 "Emacs start-up procedure."
41 :group 'internal) 41 :group 'internal)
42 42
43(defcustom inhibit-startup-message nil 43(defcustom inhibit-splash-screen nil
44 "*Non-nil inhibits the initial startup message. 44 "*Non-nil inhibits the startup screen.
45This is for use in your personal init file, once you are familiar 45This is for use in your personal init file, once you are familiar
46with the contents of the startup message." 46with the contents of the startup screen."
47 :type 'boolean 47 :type 'boolean
48 :group 'initialization) 48 :group 'initialization)
49 49
50(defvaralias 'inhibit-splash-screen 'inhibit-startup-message) 50(defvaralias 'inhibit-startup-message 'inhibit-splash-screen)
51 51
52(defcustom inhibit-startup-echo-area-message nil 52(defcustom inhibit-startup-echo-area-message nil
53 "*Non-nil inhibits the initial startup echo area message. 53 "*Non-nil inhibits the initial startup echo area message.
@@ -642,15 +642,22 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
642 (set-locale-environment nil) 642 (set-locale-environment nil)
643 643
644 ;; Convert preloaded file names to absolute. 644 ;; Convert preloaded file names to absolute.
645 (setq load-history 645 (let ((lisp-dir
646 (mapcar (lambda (elt) 646 (file-name-directory
647 (if (and (stringp (car elt)) 647 (locate-file "simple" load-path
648 (not (file-name-absolute-p (car elt)))) 648 load-suffixes))))
649 (cons (locate-file (car elt) load-path 649
650 (append load-suffixes '(""))) 650 (setq load-history
651 (cdr elt)) 651 (mapcar (lambda (elt)
652 elt)) 652 (if (and (stringp (car elt))
653 load-history)) 653 (not (file-name-absolute-p (car elt))))
654 (cons (concat lisp-dir
655 (car elt)
656 (if (string-match "[.]el$" (car elt))
657 "" ".elc"))
658 (cdr elt))
659 elt))
660 load-history)))
654 661
655 ;; Convert the arguments to Emacs internal representation. 662 ;; Convert the arguments to Emacs internal representation.
656 (let ((args (cdr command-line-args))) 663 (let ((args (cdr command-line-args)))
@@ -923,6 +930,10 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
923 (pop-to-buffer "*Messages*")) 930 (pop-to-buffer "*Messages*"))
924 (setq init-file-had-error t))))) 931 (setq init-file-had-error t)))))
925 932
933 (if (and deactivate-mark transient-mark-mode)
934 (with-current-buffer (window-buffer)
935 (deactivate-mark)))
936
926 ;; If the user has a file of abbrevs, read it. 937 ;; If the user has a file of abbrevs, read it.
927 (if (file-exists-p abbrev-file-name) 938 (if (file-exists-p abbrev-file-name)
928 (quietly-read-abbrev-file abbrev-file-name)) 939 (quietly-read-abbrev-file abbrev-file-name))