changeset 44947:e0182b284e42

(mail-recover-1): Decrease non-random-len by 1 for the newly-readded #.
author Richard M. Stallman <rms@gnu.org>
date Sun, 28 Apr 2002 22:35:54 +0000
parents 5eca5e9178c8
children 89ca36d3bcad
files lisp/mail/sendmail.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/sendmail.el	Sun Apr 28 22:30:22 2002 +0000
+++ b/lisp/mail/sendmail.el	Sun Apr 28 22:35:54 2002 +0000
@@ -1561,8 +1561,9 @@
     ;; "#<RANDOM-STUFF>#" to the buffer name, where RANDOM-STUFF
     ;; is the result of (make-temp-name "").
     (setq non-random-len
-	  (- (length file-name) (length (make-temp-name ""))))
+	  (- (length file-name) (length (make-temp-name "")) 1))
     (setq wildcard (concat (substring file-name 0 non-random-len) "*"))
+    (debug)
     (if (null (file-expand-wildcards wildcard))
 	(message "There are no auto-saved drafts to recover")
       ;; Bind dired-trivial-filenames to t because all auto-save file