From: Richard M. Stallman Date: Sun, 28 Apr 2002 22:35:54 +0000 (+0000) Subject: (mail-recover-1): Decrease non-random-len by 1 for the newly-readded #. X-Git-Tag: ttn-vms-21-2-B4~15333 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d41eb0aaeb89f8ae35d9ea6d0ff69dc91e095938;p=emacs.git (mail-recover-1): Decrease non-random-len by 1 for the newly-readded #. --- diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index a4610ed13e9..6bcb89d733d 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el @@ -1561,8 +1561,9 @@ The seventh argument ACTIONS is a list of actions to take ;; "##" 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