diff options
| author | Jason Rumney | 2004-09-20 20:10:00 +0000 |
|---|---|---|
| committer | Jason Rumney | 2004-09-20 20:10:00 +0000 |
| commit | fe7ecaf2e3a4f64fd43bb96e934716dd46271865 (patch) | |
| tree | 77812990eea17abfb8f126cc362435e80940a5dd | |
| parent | cde090ee08c3a40500e08624f38a9665c091fe53 (diff) | |
| download | emacs-fe7ecaf2e3a4f64fd43bb96e934716dd46271865.tar.gz emacs-fe7ecaf2e3a4f64fd43bb96e934716dd46271865.zip | |
(command-line) [windows-nt]: Try .emacs first, then
_emacs, but revert to .emacs if neither exists in home directory.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/startup.el | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c533b95ab8f..88cebb15340 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2004-09-20 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * startup.el (command-line) [windows-nt]: Try .emacs first, then | ||
| 4 | _emacs, but revert to .emacs if neither exists in home directory. | ||
| 5 | |||
| 1 | 2004-09-20 John Paul Wallington <jpw@gnu.org> | 6 | 2004-09-20 John Paul Wallington <jpw@gnu.org> |
| 2 | 7 | ||
| 3 | * bindings.el (completion-ignored-extensions): Add .dfsl. | 8 | * bindings.el (completion-ignored-extensions): Add .dfsl. |
diff --git a/lisp/startup.el b/lisp/startup.el index c32ba2ddfe7..f42c7345638 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -810,9 +810,14 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'." | |||
| 810 | ((eq system-type 'ms-dos) | 810 | ((eq system-type 'ms-dos) |
| 811 | (concat "~" init-file-user "/_emacs")) | 811 | (concat "~" init-file-user "/_emacs")) |
| 812 | ((eq system-type 'windows-nt) | 812 | ((eq system-type 'windows-nt) |
| 813 | ;; Prefer .emacs on Windows. | ||
| 813 | (if (directory-files "~" nil "^\\.emacs\\(\\.elc?\\)?$") | 814 | (if (directory-files "~" nil "^\\.emacs\\(\\.elc?\\)?$") |
| 814 | "~/.emacs" | 815 | "~/.emacs" |
| 815 | "~/_emacs")) | 816 | ;; Also support _emacs for compatibility. |
| 817 | (if (directory-files "~" nil "^_emacs\\(\\.elc?\\)?$") | ||
| 818 | "~/_emacs" | ||
| 819 | ;; But default to .emacs if _emacs does not exist. | ||
| 820 | "~/.emacs"))) | ||
| 816 | ((eq system-type 'vax-vms) | 821 | ((eq system-type 'vax-vms) |
| 817 | "sys$login:.emacs") | 822 | "sys$login:.emacs") |
| 818 | (t | 823 | (t |