unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#33055: 27.0.50; load-prefer-newer loads wrong file
@ 2018-10-15 22:43 Juri Linkov
  2018-10-15 23:37 ` Glenn Morris
  0 siblings, 1 reply; 5+ messages in thread
From: Juri Linkov @ 2018-10-15 22:43 UTC (permalink / raw)
  To: 33055

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))





^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-10-17 22:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-15 22:43 bug#33055: 27.0.50; load-prefer-newer loads wrong file Juri Linkov
2018-10-15 23:37 ` Glenn Morris
2018-10-16 22:44   ` Juri Linkov
2018-10-17 16:14     ` Eli Zaretskii
2018-10-17 22:25       ` Juri Linkov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).