diff options
| author | Glenn Morris | 2008-02-20 06:00:13 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-02-20 06:00:13 +0000 |
| commit | 6052846bdd817ea512afd3eb52bb2d6aa4689d6f (patch) | |
| tree | f1de4468fe3c69c7bf7e1e38dc29a307c88a419d | |
| parent | 719cb5080d3fb15574b0b741613d14b93322d26a (diff) | |
| download | emacs-6052846bdd817ea512afd3eb52bb2d6aa4689d6f.tar.gz emacs-6052846bdd817ea512afd3eb52bb2d6aa4689d6f.zip | |
(rmail-autodetect): Add .exe extension to movemail on Windows.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 10 |
2 files changed, 14 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ddf4553c13c..3f0efc0aa66 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-02-20 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * mail/rmail.el (rmail-autodetect): Add .exe extension to movemail | ||
| 4 | on Windows. | ||
| 5 | |||
| 1 | 2008-02-20 Kenichi Handa <handa@ni.aist.go.jp> | 6 | 2008-02-20 Kenichi Handa <handa@ni.aist.go.jp> |
| 2 | 7 | ||
| 3 | * international/latin1-disp.el (latin1-display): Don't use | 8 | * international/latin1-disp.el (latin1-display): Don't use |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 5f8815bc787..e36b9885841 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -219,7 +219,15 @@ Otherwise, look for `movemail' in the directories in | |||
| 219 | (dolist (dir (append rmail-movemail-search-path exec-path | 219 | (dolist (dir (append rmail-movemail-search-path exec-path |
| 220 | (list exec-directory))) | 220 | (list exec-directory))) |
| 221 | (when (and dir (file-accessible-directory-p dir)) | 221 | (when (and dir (file-accessible-directory-p dir)) |
| 222 | (let ((progname (expand-file-name "movemail" dir))) | 222 | ;; Previously, this didn't have to work on Windows, because |
| 223 | ;; rmail-insert-inbox-text before r1.439 fell back to using | ||
| 224 | ;; (expand-file-name "movemail" exec-directory) and just | ||
| 225 | ;; assuming it would work. | ||
| 226 | ;; http://lists.gnu.org/archive/html/bug-gnu-emacs/2008-02/msg00087.html | ||
| 227 | (let ((progname (expand-file-name | ||
| 228 | (concat "movemail" | ||
| 229 | (if (memq system-type '(ms-dos windows-nt)) | ||
| 230 | ".exe")) dir))) | ||
| 223 | (when (and (not (file-directory-p progname)) | 231 | (when (and (not (file-directory-p progname)) |
| 224 | (file-executable-p progname)) | 232 | (file-executable-p progname)) |
| 225 | (let ((x (rmail-probe progname))) | 233 | (let ((x (rmail-probe progname))) |