GNU bug report logs -
#13506
24.3.50; loading emacsbug.el ignores customized `send-mail-function'
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Sun, 20 Jan 2013 10:37:02 UTC
Severity: minor
Found in version 24.3.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13506 in the body.
You can then email your comments to 13506 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13506
; Package
emacs
.
(Sun, 20 Jan 2013 10:37:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 20 Jan 2013 10:37:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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 <at> 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'
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13506
; Package
emacs
.
(Mon, 10 Feb 2014 07:09:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 13506 <at> debbugs.gnu.org (full text, mbox):
"Drew Adams" <drew.adams <at> oracle.com> writes:
> 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.
`message-send-mail-function' is the variable to customize here, I think?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13506
; Package
emacs
.
(Mon, 10 Feb 2014 17:49:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 13506 <at> debbugs.gnu.org (full text, mbox):
> > 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.
>
> `message-send-mail-function' is the variable to customize here, I
> think?
Why? And why is that relevant, even if true?
,----
| send-mail-function is a variable defined in `sendmail.el'.
| Its value is mailclient-send-it
| Original value was sendmail-query-once
|
| This variable can be risky when used as a file-local variable.
|
| Documentation:
| Function to call to send the current buffer as mail.
| The headers should be delimited by a line which is
| not a valid RFC822 header or continuation line,
| that matches the variable `mail-header-separator'.
| This is used by the default mail-sending commands. See also
| `message-send-mail-function' for use with the Message package.
|
| You can customize this variable.
|
| This variable was introduced, or its default value was changed, in
| version 24.1 of Emacs.
`----
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13506
; Package
emacs
.
(Mon, 10 Feb 2014 18:15:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 13506 <at> debbugs.gnu.org (full text, mbox):
> Date: Mon, 10 Feb 2014 09:48:48 -0800 (PST)
> From: Drew Adams <drew.adams <at> oracle.com>
> Cc: 13506 <at> debbugs.gnu.org
>
> > > 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.
> >
> > `message-send-mail-function' is the variable to customize here, I
> > think?
>
> Why? And why is that relevant, even if true?
Because defcustoms don't get overwritten when you re-load their source
package?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13506
; Package
emacs
.
(Mon, 10 Feb 2014 19:05:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 13506 <at> debbugs.gnu.org (full text, mbox):
> > > > 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.
> > >
> > > `message-send-mail-function' is the variable to customize here,
> I
> > > think?
> >
> > Why? And why is that relevant, even if true?
>
> Because defcustoms don't get overwritten when you re-load their
> source package?
Huh? You seem to be making less and less sense, Lars.
If you customize the option AFTER loading emacsbug.el then your
customization is ignored. That is the bug I reported. Dunno
what you are talking about.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13506
; Package
emacs
.
(Mon, 10 Feb 2014 19:06:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 13506 <at> debbugs.gnu.org (full text, mbox):
> Huh? You seem to be making less and less sense, Lars.
Apologies to Lars. I was replying to Eli here.
> If you customize the option AFTER loading emacsbug.el then your
> customization is ignored. That is the bug I reported. Dunno
> what you are talking about.
I don't follow you, Eli. Please elaborate.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13506
; Package
emacs
.
(Mon, 10 Feb 2014 19:14:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 13506 <at> debbugs.gnu.org (full text, mbox):
> Date: Mon, 10 Feb 2014 11:05:47 -0800 (PST)
> From: Drew Adams <drew.adams <at> oracle.com>
> Cc: larsi <at> gnus.org, 13506 <at> debbugs.gnu.org
>
> > Huh? You seem to be making less and less sense, Lars.
>
> Apologies to Lars. I was replying to Eli here.
>
> > If you customize the option AFTER loading emacsbug.el then your
> > customization is ignored. That is the bug I reported. Dunno
> > what you are talking about.
>
> I don't follow you, Eli. Please elaborate.
Perhaps you should show a complete recipe, including the details of
"customize" -- you surely know that this term is used in at least 2
different senses in Emacs.
So: how to reproduce this bug, starting from "emacs -Q", step by step?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13506
; Package
emacs
.
(Thu, 28 Apr 2016 22:00:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 13506 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> Perhaps you should show a complete recipe, including the details of
> "customize" -- you surely know that this term is used in at least 2
> different senses in Emacs.
>
> So: how to reproduce this bug, starting from "emacs -Q", step by step?
More information was requested, but no response was given within a few
years, so I'm closing this bug report. If the problem still exists,
please reopen this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug closed, send any further explanations to
13506 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 28 Apr 2016 22:00:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 27 May 2016 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 24 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.