From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#33055: 27.0.50; load-prefer-newer loads wrong file Date: Mon, 15 Oct 2018 19:37:47 -0400 Message-ID: References: <87k1mibzlo.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1539646562 4322 195.159.176.226 (15 Oct 2018 23:36:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 Oct 2018 23:36:02 +0000 (UTC) User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cc: 33055@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 16 01:35:58 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCCP0-00011b-27 for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Oct 2018 01:35:58 +0200 Original-Received: from localhost ([::1]:55275 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCCR6-0001SJ-Lh for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Oct 2018 19:38:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCCR0-0001S7-OY for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 19:38:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCCR0-0006e4-4e for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 19:38:02 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47361) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gCCQz-0006e0-Vy for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 19:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gCCQz-0001ma-QL for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 19:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Oct 2018 23:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33055 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 33055-submit@debbugs.gnu.org id=B33055.15396466796845 (code B ref 33055); Mon, 15 Oct 2018 23:38:01 +0000 Original-Received: (at 33055) by debbugs.gnu.org; 15 Oct 2018 23:37:59 +0000 Original-Received: from localhost ([127.0.0.1]:51619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCCQx-0001mK-Iy for submit@debbugs.gnu.org; Mon, 15 Oct 2018 19:37:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCCQv-0001m6-Rz for 33055@debbugs.gnu.org; Mon, 15 Oct 2018 19:37:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCCQp-0006VX-Oq for 33055@debbugs.gnu.org; Mon, 15 Oct 2018 19:37:52 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCCQl-0006PP-Ic; Mon, 15 Oct 2018 19:37:47 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1gCCQl-0002UY-B2; Mon, 15 Oct 2018 19:37:47 -0400 X-Spook: Drug 9705 Samford Road smuggle Zachawi FTS2000 Albania X-Ran: y0zynm?FmG=egr3GH,f|OC(KxsM1,mP>R\L8aKVW`#$wCUt'RDt|V*<$$~@(r>?^|-q.%c X-Hue: green X-Attribution: GM In-Reply-To: <87k1mibzlo.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 16 Oct 2018 01:43:15 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:151295 Archived-At: 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)?