Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1ed14cfd
Commit
1ed14cfd
authored
Sep 15, 1994
by
Richard M. Stallman
Browse files
(command-line): If we can't load x-win.el, terminate.
parent
41e77289
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
7 deletions
+22
-7
lisp/startup.el
lisp/startup.el
+22
-7
No files found.
lisp/startup.el
View file @
1ed14cfd
...
@@ -246,6 +246,7 @@ specified by the LC_ALL, LC_CTYPE and LANG environment variables.")
...
@@ -246,6 +246,7 @@ specified by the LC_ALL, LC_CTYPE and LANG environment variables.")
;;! (setq split-window-keep-point (> baud-rate 2400))
;;! (setq split-window-keep-point (> baud-rate 2400))
;; Read window system's init file if using a window system.
;; Read window system's init file if using a window system.
(
condition-case
error
(
if
(
and
window-system
(
not
noninteractive
))
(
if
(
and
window-system
(
not
noninteractive
))
(
load
(
concat
term-file-prefix
(
load
(
concat
term-file-prefix
(
symbol-name
window-system
)
(
symbol-name
window-system
)
...
@@ -253,6 +254,20 @@ specified by the LC_ALL, LC_CTYPE and LANG environment variables.")
...
@@ -253,6 +254,20 @@ specified by the LC_ALL, LC_CTYPE and LANG environment variables.")
;; Every window system should have a startup file;
;; Every window system should have a startup file;
;; barf if we can't find it.
;; barf if we can't find it.
nil
t
))
nil
t
))
;; If we can't read it, print the error message and exit.
(
error
(
if
(
eq
(
car
error
)
'error
)
(
message
"%s"
(
apply
'concat
(
cdr
error
)))
(
if
(
memq
'file-error
(
get
(
car
error
)
'error-conditions
))
(
message
"%s: %s"
(
nth
1
error
)
(
mapconcat
'
(
lambda
(
obj
)
(
prin1-to-string
obj
t
))
(
cdr
(
cdr
error
))
", "
))
(
message
"%s: %s"
(
get
(
car
error
)
'error-message
)
(
mapconcat
'
(
lambda
(
obj
)
(
prin1-to-string
obj
t
))
(
cdr
error
)
", "
))))
(
kill-emacs
)))
(
let
((
done
nil
)
(
let
((
done
nil
)
(
args
(
cdr
command-line-args
)))
(
args
(
cdr
command-line-args
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment