From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#33055: 27.0.50; load-prefer-newer loads wrong file Date: Tue, 16 Oct 2018 01:43:15 +0300 Organization: LINKOV.NET Message-ID: <87k1mibzlo.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1539643686 3865 195.159.176.226 (15 Oct 2018 22:48:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 Oct 2018 22:48:06 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) To: 33055@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 16 00:48:02 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 1gCBeb-0000rb-Km for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Oct 2018 00:48:02 +0200 Original-Received: from localhost ([::1]:55176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCBgi-00087e-0E for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Oct 2018 18:50:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCBgb-00087Z-Ba for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 18:50:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCBgY-0006oj-6m for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 18:50:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47327) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gCBgY-0006oX-2X for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 18:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gCBgX-00071Y-S7 for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 18:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Oct 2018 22:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33055 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153964374926934 (code B ref -1); Mon, 15 Oct 2018 22:50:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Oct 2018 22:49:09 +0000 Original-Received: from localhost ([127.0.0.1]:51585 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCBfh-00070M-7P for submit@debbugs.gnu.org; Mon, 15 Oct 2018 18:49:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gCBfg-000709-48 for submit@debbugs.gnu.org; Mon, 15 Oct 2018 18:49:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCBfa-0005ez-BA for submit@debbugs.gnu.org; Mon, 15 Oct 2018 18:49:02 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42415) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gCBfa-0005em-5q for submit@debbugs.gnu.org; Mon, 15 Oct 2018 18:49:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCBfZ-00082O-Bi for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 18:49:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCBfT-0005XY-JL for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 18:48:59 -0400 Original-Received: from pop.dreamhost.com ([64.90.62.162]:56018 helo=pdx1-sub0-mail-a75.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gCBfQ-0005ST-51 for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 18:48:53 -0400 Original-Received: from pdx1-sub0-mail-a75.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a75.g.dreamhost.com (Postfix) with ESMTP id 790A0805C8 for ; Mon, 15 Oct 2018 15:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to :subject:date:message-id:mime-version:content-type; s= linkov.net; bh=b2rt29E+WnZMSMj9KkWNcKZ2PGA=; b=GIgGUrGUDOukbCnPK grBLLU9AQ/YTHOeW3X63gN8Lg+Q63RN0TtaaMISpjDqP3HHjGqr1qMPoFxxpXWPM aCBFRmWG6V0uwmHdDHRrlHWzhljT02Zn7JZak5GO3i6HeW8U86UKrHNqOJLsuLSz +PN8Lsiqn19FHLjLK8SH8EGJ8o= Original-Received: from localhost.linkov.net (m91-129-104-210.cust.tele2.ee [91.129.104.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a75.g.dreamhost.com (Postfix) with ESMTPSA id A7DC8805C7 for ; Mon, 15 Oct 2018 15:48:48 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a75 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrvdelgddvjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhofffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdegrddvuddtnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehlohgtrghlhhhoshhtrdhlihhnkhhovhdrnhgvthdpihhnvghtpeeluddruddvledruddtgedrvddutddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:151294 Archived-At: 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))