_emacs, but revert to .emacs if neither exists in home directory.
+2004-09-20 Jason Rumney <jasonr@gnu.org>
+
+ * startup.el (command-line) [windows-nt]: Try .emacs first, then
+ _emacs, but revert to .emacs if neither exists in home directory.
+
2004-09-20 John Paul Wallington <jpw@gnu.org>
* bindings.el (completion-ignored-extensions): Add .dfsl.
((eq system-type 'ms-dos)
(concat "~" init-file-user "/_emacs"))
((eq system-type 'windows-nt)
+ ;; Prefer .emacs on Windows.
(if (directory-files "~" nil "^\\.emacs\\(\\.elc?\\)?$")
"~/.emacs"
- "~/_emacs"))
+ ;; Also support _emacs for compatibility.
+ (if (directory-files "~" nil "^_emacs\\(\\.elc?\\)?$")
+ "~/_emacs"
+ ;; But default to .emacs if _emacs does not exist.
+ "~/.emacs")))
((eq system-type 'vax-vms)
"sys$login:.emacs")
(t