diff lisp/rmail/rmailout.el @ 86:364816949b59 r20-0b93

Import from CVS: tag r20-0b93
author cvs
date Mon, 13 Aug 2007 09:09:02 +0200
parents 131b0175ea99
children
line wrap: on
line diff
--- a/lisp/rmail/rmailout.el	Mon Aug 13 09:08:31 2007 +0200
+++ b/lisp/rmail/rmailout.el	Mon Aug 13 09:09:02 2007 +0200
@@ -62,12 +62,14 @@
 	     ;; If not suggestions, use same file as last time.
 	     (or answer rmail-last-rmail-file))))
      (list (setq rmail-last-rmail-file
-		 (read-file-name
-			    (concat "Output message to Rmail file: (default "
-				    (file-name-nondirectory default-file)
-				    ") ")
-			    (file-name-directory default-file)
-			    default-file))
+		 (if default-file
+		     (read-file-name
+		      (concat "Output message to Rmail file: (default "
+			      (file-name-nondirectory default-file)
+			      ") ")
+		      (file-name-directory default-file)
+		      default-file)
+		   (read-file-name "Output message to Rmail file: ")))
 	   (prefix-numeric-value current-prefix-arg))))
   (or count (setq count 1))
   (setq file-name