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
71261a01
Commit
71261a01
authored
May 27, 2001
by
Eli Zaretskii
Browse files
(custom-file): Don't assume we were invoked with -q unless ~/.emacs exists.
parent
d2b747a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/cus-edit.el
lisp/cus-edit.el
+4
-1
No files found.
lisp/ChangeLog
View file @
71261a01
2001-05-27 Eli Zaretskii <eliz@is.elta.co.il>
* cus-edit.el (custom-file): Don't assume we were invoked with -q
unless ~/.emacs exists.
* novice.el (enable-command): If user-init-file is nil or does not
exist, default to "~/.emacs" (~/_emacs on DOS and, maybe, Windows).
...
...
lisp/cus-edit.el
View file @
71261a01
...
...
@@ -3447,7 +3447,10 @@ to the new custom file. This will preserve your existing customizations."
(defun custom-file ()
"
Return
the
file
name
for
saving
customizations.
"
(if (null user-init-file)
(if (and (null user-init-file)
(or (file-exists-p "
~/.emacs
")
(and (memq system-type '(ms-dos windows-nt))
(file-exists-p "
~/_emacs
"))))
;; Started with -q, i.e. the file containing Custom settings
;; hasn't been read. Saving settings there would overwrite
;; other settings.
...
...
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