unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: 13506@debbugs.gnu.org
Subject: bug#13506: 24.3.50; loading emacsbug.el ignores customized `send-mail-function'
Date: Sun, 20 Jan 2013 02:35:10 -0800	[thread overview]
Message-ID: <3703816BC57C4CA099762841DDD14BC4@us.oracle.com> (raw)

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'
 

 






             reply	other threads:[~2013-01-20 10:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-20 10:35 Drew Adams [this message]
2014-02-10  7:07 ` bug#13506: 24.3.50; loading emacsbug.el ignores customized `send-mail-function' Lars Ingebrigtsen
2014-02-10 17:48   ` Drew Adams
2014-02-10 18:14     ` Eli Zaretskii
     [not found] <<3703816BC57C4CA099762841DDD14BC4@us.oracle.com>
     [not found] ` <<8738jr4fae.fsf@building.gnus.org>
     [not found]   ` <<bca6c1a3-09d8-4f33-b9a5-6ad005c66783@default>
     [not found]     ` <<83sirqu96c.fsf@gnu.org>
2014-02-10 19:04       ` Drew Adams
2014-02-10 19:05         ` Drew Adams
2014-02-10 19:13           ` Eli Zaretskii
2016-04-28 21:59             ` Lars 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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3703816BC57C4CA099762841DDD14BC4@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=13506@debbugs.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).