]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-output-body-to-file): Avoid space and colon in default file name.
authorRichard M. Stallman <rms@gnu.org>
Sat, 14 Feb 2009 02:54:00 +0000 (02:54 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 14 Feb 2009 02:54:00 +0000 (02:54 +0000)
lisp/ChangeLog
lisp/mail/rmailout.el

index 101ab014e25a9bbc5594e74c332dd3828f0906f1..b33c1b8d06290e736bef44b6736ef9ec103c65d6 100644 (file)
@@ -1,5 +1,8 @@
 2009-02-14  Richard M Stallman  <rms@gnu.org>
 
+       * mail/rmailout.el (rmail-output-body-to-file): Avoid space and colon
+       in default file name.
+
        * mail/rmail.el (rmail-convert-file-maybe): Turn off case-fold-search.
        (rmail-add-mbox-headers): Likewise.
 
index 4984fd7454f27b3ce89ea816034609da0818cac1..9b988dd28634c911d976b3e2d9ff51669a6ed475 100644 (file)
@@ -568,6 +568,10 @@ FILE-NAME defaults, interactively, from the Subject field of the message."
    (let ((default-file
           (or (mail-fetch-field "Subject")
               rmail-default-body-file)))
+     (setq default-file
+          (replace-regexp-in-string ":" "-" default-file))
+     (setq default-file
+          (replace-regexp-in-string " " "-" default-file))
      (list (setq rmail-default-body-file
                 (read-file-name
                  "Output message body to file: "