aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/startup.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/startup.el')
-rw-r--r--lisp/startup.el14
1 files changed, 4 insertions, 10 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 9c1eafdae07..5b8f90a81c4 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -1123,15 +1123,12 @@ init-file, or to a default value if loading is not possible."
1123 (display-warning 1123 (display-warning
1124 'initialization 1124 'initialization
1125 (format-message "\ 1125 (format-message "\
1126An error occurred while loading `%s':\n\n%s%s%s\n\n\ 1126An error occurred while loading `%s':\n\n%s\n\n\
1127To ensure normal operation, you should investigate and remove the 1127To ensure normal operation, you should investigate and remove the
1128cause of the error in your initialization file. Start Emacs with 1128cause of the error in your initialization file. Start Emacs with
1129the `--debug-init' option to view a complete error backtrace." 1129the `--debug-init' option to view a complete error backtrace."
1130 user-init-file 1130 user-init-file
1131 (get (car error) 'error-message) 1131 (error-message-string error))
1132 (if (cdr error) ": " "")
1133 (mapconcat (lambda (s) (prin1-to-string s t))
1134 (cdr error) ", "))
1135 :warning) 1132 :warning)
1136 (setq init-file-had-error t)))))) 1133 (setq init-file-had-error t))))))
1137 1134
@@ -1593,15 +1590,12 @@ please check its value")
1593 (princ 1590 (princ
1594 (if (eq (car error) 'error) 1591 (if (eq (car error) 'error)
1595 (apply #'concat (cdr error)) 1592 (apply #'concat (cdr error))
1596 (if (memq 'file-error (get (car error) 'error-conditions)) 1593 (if (error-has-type-p error 'file-error)
1597 (format "%s: %s" 1594 (format "%s: %s"
1598 (nth 1 error) 1595 (nth 1 error)
1599 (mapconcat (lambda (obj) (prin1-to-string obj t)) 1596 (mapconcat (lambda (obj) (prin1-to-string obj t))
1600 (cdr (cdr error)) ", ")) 1597 (cdr (cdr error)) ", "))
1601 (format "%s: %s" 1598 (error-message-string error)))
1602 (get (car error) 'error-message)
1603 (mapconcat (lambda (obj) (prin1-to-string obj t))
1604 (cdr error) ", "))))
1605 'external-debugging-output) 1599 'external-debugging-output)
1606 (terpri 'external-debugging-output) 1600 (terpri 'external-debugging-output)
1607 (setq initial-window-system nil) 1601 (setq initial-window-system nil)