GNU bug report logs -
#33055
27.0.50; load-prefer-newer loads wrong file
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Mon, 15 Oct 2018 22:50:01 UTC
Severity: normal
Tags: fixed, patch
Found in version 27.0.50
Fixed in version 26.2
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Tags: patch
When load-prefer-newer is customized to t, smtpmail-send-queued-mail
fails to load the correct file. This patch fixes it:
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el
index 8bc3cc78d9..a889cfd75b 100644
--- a/lisp/mail/smtpmail.el
+++ b/lisp/mail/smtpmail.el
@@ -407,6 +407,11 @@ smtpmail-send-queued-mail
(let ((file-msg "")
(qfile (expand-file-name smtpmail-queue-index-file
smtpmail-queue-dir))
+ ;; To ensure that `load' below will load the right file
+ ;; with the suffix `.el' instead of a newer text file
+ ;; with the same name and without the suffix `.el',
+ ;; force load-prefer-newer to be nil:
+ (load-prefer-newer nil)
result)
(insert-file-contents qfile)
(goto-char (point-min))
This bug report was last modified 6 years and 216 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.