From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Problems with new smtpmail Date: Wed, 06 Jul 2011 21:48:50 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <87wrfwrxiu.fsf@wanadoo.es> <87oc17o1ho.fsf@wanadoo.es> <87fwmjnzhi.fsf@wanadoo.es> <87mxgrs2bu.fsf@wanadoo.es> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1309982928 3649 80.91.229.12 (6 Jul 2011 20:08:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 6 Jul 2011 20:08:48 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 06 22:08:44 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QeYOn-0006tz-5H for ged-emacs-devel@m.gmane.org; Wed, 06 Jul 2011 22:08:41 +0200 Original-Received: from localhost ([::1]:35573 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeYOl-0004gU-Ef for ged-emacs-devel@m.gmane.org; Wed, 06 Jul 2011 16:08:39 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeY5p-0007Br-Pz for emacs-devel@gnu.org; Wed, 06 Jul 2011 15:49:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QeY5o-0003Y1-1h for emacs-devel@gnu.org; Wed, 06 Jul 2011 15:49:05 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:35025) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeY5n-0003Xm-FW for emacs-devel@gnu.org; Wed, 06 Jul 2011 15:49:03 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QeY5l-0005Jj-Uw for emacs-devel@gnu.org; Wed, 06 Jul 2011 21:49:01 +0200 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Jul 2011 21:49:01 +0200 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Jul 2011 21:49:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 41 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEUIBAMyLSwMBwYRDAqS j44UEA4PCgkMZ3b+AAACSklEQVQ4jV1UMW7jMBAkVKQnLPYCA7OXN2QvhEkvM6v6QkL7/yfcrHTU 5W5h2BaHszM7lGTMfzWdP8P1PUzeX8v/bvXGD31rr5dQvPfgTJ1y4ENYrXX1hIYOeHTHOhAfAFVf VWk6Wt/tUZtylHZamMwwn4B7+Ce8qUFzKRz18AyV6fD9AmC3HWA0untBMyPG+LkDz1nW+/z0tQ6D ktYLeP1a8petPhofzHRJWLfnZcyLk0/0MSZcrXjNGcDy/aGtpvgTGLOWgwnjx8tVcfms96DAegH2 z3r+PBj+3rXXDrzXuhqxe7c1dmBxPBoZn3wS+GLopQmh1kPlWl5UzZoq8svvfFnFHNrTYXgRHyLF yxMo+QOu4DmEZgt37QUTp2C8kAjh/9zXs0VczRBxoRJ/TKGZAEgUmYni+lfD5SU1wzEySHMPZMwb jcutGSEiaeXbjosaxhBJvrMjQ4ke/jUROcc8Wi6MmayFeNxqaHNe0I/XeCYGmpHGqclbXrDTMWFd I+EEBqVW3vJtRVqONCZpaSeIN8LHYZL52GydSBIAB0K7W5nPE7khigpxJUSYwjRR/ditUTgiARQ1 FKgXXCXsrE0MdmOIWAqA9abAXqI0UgaK0YbdeovUCyFy2XU41mOPyo9bgKvU5hWrRRFXIFISaIIB WxwLHQBr/qjSdopgsD1VIKMSAEtsjEgKyakXS9qEksQUhBGJNEE6sM1l06vUWiIcVEIA4aRgIE1D sFGMBKnHoy8Nd1jzEnYJrYb+gpiOl4Te/ealejzuvwEomdtfDQrBEgAAAABJRU5ErkJggg== Mail-Copies-To: never X-Now-Playing: Demdike Stare's _Tryptych (1): Forest of Evil_: "Forest of Evil (Dawn)" User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:fwEdroXmICQl7pux84J4yweH9A4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:141679 Archived-At: Óscar Fuentes writes: > Yes, but now it is ignored if listed on custom-set-variables even when > smtpmail is loaded later: > > (custom-set-variables > '(smtpmail-default-smtp-server "foo")) > > (load "smtpmail") > > fails here (smtpmail asks for a smtp server while sending email). The definition of these two variables hasn't changed. It's still: (defvar smtpmail-default-smtp-server nil "Specify default SMTP server. This only has effect if you specify it before loading the smtpmail library.") (defcustom smtpmail-smtp-server (or (getenv "SMTPSERVER") smtpmail-default-smtp-server) "The name of the host running SMTP server." :type '(choice (const nil) string) :group 'smtpmail) The only change I've done is to make `smtpmail-default-smtp-server' a defvar. (custom-set-variables '(smtpmail-default-smtp-server "foo")) on a defvar-ed variable still sets it, doesn't it? So I'm wondering whether you're somehow loading smtpmail.el before you set `smtpmail-default-smtp-server'. Or is there something else subtle that I'm missing about going from a defcustom to a defvar? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/