aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2008-02-16 23:17:51 +0000
committerJuri Linkov2008-02-16 23:17:51 +0000
commit5ab0e67e804a4b2f8ba2775ac93d5f65f7307759 (patch)
treed3102b9b9b2fda206814a20cb8565389d414b291
parent1f7bdd6fc6a6175eeba8f5a2d639e61f71cab481 (diff)
downloademacs-5ab0e67e804a4b2f8ba2775ac93d5f65f7307759.tar.gz
emacs-5ab0e67e804a4b2f8ba2775ac93d5f65f7307759.zip
(after-init-time): New variable.
(command-line): Set `after-init-time' to the current time.
-rw-r--r--lisp/startup.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 1b420436b52..56101f3da28 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -197,6 +197,9 @@ an error in one of these functions will invoke the debugger.")
197(defvar before-init-time nil 197(defvar before-init-time nil
198 "Value of `current-time' before Emacs begins initialization.") 198 "Value of `current-time' before Emacs begins initialization.")
199 199
200(defvar after-init-time nil
201 "Value of `current-time' after loading the init files.")
202
200(defvar emacs-startup-hook nil 203(defvar emacs-startup-hook nil
201 "Normal hook run after loading init files and handling the command line.") 204 "Normal hook run after loading init files and handling the command line.")
202 205
@@ -1097,6 +1100,7 @@ opening the first frame (e.g. open a connection to an X server).")
1097 (eq face-ignored-fonts old-face-ignored-fonts)) 1100 (eq face-ignored-fonts old-face-ignored-fonts))
1098 (clear-face-cache))) 1101 (clear-face-cache)))
1099 1102
1103 (setq after-init-time (current-time))
1100 (run-hooks 'after-init-hook) 1104 (run-hooks 'after-init-hook)
1101 1105
1102 ;; Decode all default-directory. 1106 ;; Decode all default-directory.