From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#13506: 24.3.50; loading emacsbug.el ignores customized `send-mail-function' Date: Sun, 20 Jan 2013 02:35:10 -0800 Message-ID: <3703816BC57C4CA099762841DDD14BC4@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1358678175 8216 80.91.229.3 (20 Jan 2013 10:36:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jan 2013 10:36:15 +0000 (UTC) To: 13506@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 20 11:36:34 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TwsGL-0006hQ-6G for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Jan 2013 11:36:29 +0100 Original-Received: from localhost ([::1]:35329 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwsG4-0002pB-9i for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Jan 2013 05:36:12 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwsG0-0002oD-9m for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2013 05:36:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwsFx-0004ql-Gu for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2013 05:36:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwsFx-0004qg-Al for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2013 05:36:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TwsGs-0004A0-86 for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2013 05:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Jan 2013 10:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13506 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.135867818715947 (code B ref -1); Sun, 20 Jan 2013 10:37:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Jan 2013 10:36:27 +0000 Original-Received: from localhost ([127.0.0.1]:41075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TwsGJ-000499-Ad for submit@debbugs.gnu.org; Sun, 20 Jan 2013 05:36:27 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59946) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TwsGF-000491-MG for submit@debbugs.gnu.org; Sun, 20 Jan 2013 05:36:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwsFJ-0004de-0p for submit@debbugs.gnu.org; Sun, 20 Jan 2013 05:35:26 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:44870) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwsFI-0004da-U5 for submit@debbugs.gnu.org; Sun, 20 Jan 2013 05:35:24 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwsFH-0002lC-LZ for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2013 05:35:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwsFG-0004dO-CU for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2013 05:35:23 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:30488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwsFG-0004dI-52 for bug-gnu-emacs@gnu.org; Sun, 20 Jan 2013 05:35:22 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0KAZJm9003665 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 20 Jan 2013 10:35:20 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r0KAZIFk014492 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 20 Jan 2013 10:35:19 GMT Original-Received: from abhmt120.oracle.com (abhmt120.oracle.com [141.146.116.72]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r0KAZISH027728 for ; Sun, 20 Jan 2013 04:35:18 -0600 Original-Received: from dradamslap1 (/71.202.147.44) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 20 Jan 2013 02:35:18 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac32+dING94zKqM5Rj2jPpAKDOYqsA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.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.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:70086 Archived-At: I really hate to open this can of worms again. It took so long for the fiddling with bug report mailing code to die down over the last several years. I thought it was finally fixed so users would not be bothered with the questions you added over this period. Alas, apparently not so. I just discovered that if you have customized `send-mail-function' to `mailclient-send-it', but you load that customization after loading `emacsbug.el[c]' (for whatever reason), then your user setting is simply ignored. Emacs goes ahead, in spite of your customization, and runs you through the gauntlet of questions. It is apparently mistakenly convinced that you have not configured mail. IOW, the interrogation begins again: Emacs is about to send an email message, but it has not been configured for sending email. To tell Emacs how to send email: - Type `mail client' to start your default email client and pass it the message text. - Type `smtp' to send mail directly to an "outgoing mail" server. (Emacs may prompt you for SMTP settings). Emacs will record your selection and will use it thereafter. To change it later, customize the option `send-mail-function'. Simply loading emacsbug.el should not invalidate a (custom-set-variables '(send-mail-function (quote mailclient-send-it) t) in your ~/.emacs or `custom-file' that is evaluated after loading emacsbug.el. To reproduce, it should be enough to put this in your .emacs: (require 'emacsbug) (custom-set-variables '(send-mail-function (quote mailclient-send-it) t)) Reverse the sexp order and there is no problem. Normally, loading a library, even one with a defcustom, does not override a user customization setting, even if that setting is evaluated after loading the library. Apparently, emacsbug.el invalidates this principle. In GNU Emacs 24.3.50.1 (i386-mingw-nt5.1.2600) of 2013-01-18 on ODIEONE Bzr revision: 111548 sdl.web@gmail.com-20130118182218-6ywd47qsbnow6nsg Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.7) --no-opt --enable-checking --cflags -IC:/Devel/emacs/build/include --ldflags -LC:/Devel/emacs/build/lib'