Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
f963ea40
Commit
f963ea40
authored
Jun 17, 2005
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(command-line): Warn if specified user name has no home directory.
parent
926c4c9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
lisp/startup.el
lisp/startup.el
+8
-0
No files found.
lisp/startup.el
View file @
f963ea40
...
...
@@ -797,6 +797,14 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
;; the startup message.
(
setq
inhibit-startup-message
nil
)
;; Warn for invalid user name.
(
and
init-file-user
(
not
(
file-directory-p
(
expand-file-name
(
concat
"~"
init-file-user
))))
(
display-warning
'initialization
(
format
"User %s has no home directory"
init-file-user
)
:error
))
;; Load that user's init file, or the default one, or none.
(
let
(
debug-on-error-from-init-file
debug-on-error-should-be-set
...
...
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