all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Juri Linkov <juri@linkov.net>
Cc: 33055@debbugs.gnu.org
Subject: bug#33055: 27.0.50; load-prefer-newer loads wrong file
Date: Mon, 15 Oct 2018 19:37:47 -0400	[thread overview]
Message-ID: <gz7eiieq7o.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <87k1mibzlo.fsf@mail.linkov.net> (Juri Linkov's message of "Tue,  16 Oct 2018 01:43:15 +0300")

Juri Linkov wrote:

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

Perhaps it would be cleaner for the load statement to use the precise
filename that it wants to load (ie, explicitly add the .el suffix)?





  reply	other threads:[~2018-10-15 23:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2018-10-16 22:44   ` Juri Linkov
2018-10-17 16:14     ` Eli Zaretskii
2018-10-17 22:25       ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gz7eiieq7o.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=33055@debbugs.gnu.org \
    --cc=juri@linkov.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.