GNU bug report logs - #33055
27.0.50; load-prefer-newer loads wrong file

Previous Next

Package: emacs;

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

From: Glenn Morris <rgm <at> gnu.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: 33055 <at> debbugs.gnu.org
Subject: bug#33055: 27.0.50; load-prefer-newer loads wrong file
Date: Mon, 15 Oct 2018 19:37:47 -0400
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)?




This bug report was last modified 6 years and 217 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.