From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: emacs-devel@gnu.org
Subject: Re: Problems with new smtpmail
Date: Wed, 06 Jul 2011 21:48:50 +0200 [thread overview]
Message-ID: <m3oc17ur4t.fsf@quimbies.gnus.org> (raw)
In-Reply-To: 87mxgrs2bu.fsf@wanadoo.es
Óscar Fuentes <ofv@wanadoo.es> 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/
next prev parent reply other threads:[~2011-07-06 19:48 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-06 1:46 Problems with new smtpmail Óscar Fuentes
2011-07-06 15:03 ` Lars Magne Ingebrigtsen
2011-07-06 15:10 ` Lars Magne Ingebrigtsen
2011-07-06 15:52 ` Óscar Fuentes
2011-07-06 16:25 ` Lars Magne Ingebrigtsen
2011-07-06 16:01 ` Óscar Fuentes
2011-07-06 15:46 ` Óscar Fuentes
2011-07-06 16:00 ` Lars Magne Ingebrigtsen
2011-07-06 16:30 ` Óscar Fuentes
2011-07-06 16:52 ` Lars Magne Ingebrigtsen
2011-07-06 17:55 ` Eli Zaretskii
2011-07-06 18:08 ` Lars Magne Ingebrigtsen
2011-07-07 3:13 ` Eli Zaretskii
2011-07-06 18:15 ` Óscar Fuentes
2011-07-06 19:48 ` Lars Magne Ingebrigtsen [this message]
2011-07-06 20:34 ` Óscar Fuentes
2011-07-06 20:38 ` Sam Steingold
2011-07-06 21:34 ` Lars Magne Ingebrigtsen
2011-07-06 22:19 ` Sam Steingold
2011-07-06 22:25 ` Lars Magne Ingebrigtsen
2011-07-06 20:41 ` Sam Steingold
2011-07-06 21:38 ` Lars Magne Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3oc17ur4t.fsf@quimbies.gnus.org \
--to=larsi@gnus.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.