Commit 71261a01 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(custom-file): Don't assume we were invoked with -q unless ~/.emacs exists.

parent d2b747a8
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).
 
......
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment