diff options
| author | Richard M. Stallman | 2009-02-14 02:54:00 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2009-02-14 02:54:00 +0000 |
| commit | fe6dd7e2ed04cad3db0428529ef6c36cf7b34194 (patch) | |
| tree | 64453eba697e0cada92e66e37da61180496e9074 | |
| parent | c7eb0ba1f8963c6c24417b9ddceeab867210c73f (diff) | |
| download | emacs-fe6dd7e2ed04cad3db0428529ef6c36cf7b34194.tar.gz emacs-fe6dd7e2ed04cad3db0428529ef6c36cf7b34194.zip | |
(rmail-output-body-to-file): Avoid space and colon in default file name.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/mail/rmailout.el | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 101ab014e25..b33c1b8d062 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2009-02-14 Richard M Stallman <rms@gnu.org> | 1 | 2009-02-14 Richard M Stallman <rms@gnu.org> |
| 2 | 2 | ||
| 3 | * mail/rmailout.el (rmail-output-body-to-file): Avoid space and colon | ||
| 4 | in default file name. | ||
| 5 | |||
| 3 | * mail/rmail.el (rmail-convert-file-maybe): Turn off case-fold-search. | 6 | * mail/rmail.el (rmail-convert-file-maybe): Turn off case-fold-search. |
| 4 | (rmail-add-mbox-headers): Likewise. | 7 | (rmail-add-mbox-headers): Likewise. |
| 5 | 8 | ||
diff --git a/lisp/mail/rmailout.el b/lisp/mail/rmailout.el index 4984fd7454f..9b988dd2863 100644 --- a/lisp/mail/rmailout.el +++ b/lisp/mail/rmailout.el | |||
| @@ -568,6 +568,10 @@ FILE-NAME defaults, interactively, from the Subject field of the message." | |||
| 568 | (let ((default-file | 568 | (let ((default-file |
| 569 | (or (mail-fetch-field "Subject") | 569 | (or (mail-fetch-field "Subject") |
| 570 | rmail-default-body-file))) | 570 | rmail-default-body-file))) |
| 571 | (setq default-file | ||
| 572 | (replace-regexp-in-string ":" "-" default-file)) | ||
| 573 | (setq default-file | ||
| 574 | (replace-regexp-in-string " " "-" default-file)) | ||
| 571 | (list (setq rmail-default-body-file | 575 | (list (setq rmail-default-body-file |
| 572 | (read-file-name | 576 | (read-file-name |
| 573 | "Output message body to file: " | 577 | "Output message body to file: " |