From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#5643: message-send-mail-function does not inherit from send-mail-function Date: Wed, 24 Feb 2010 13:44:36 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1267041029 6547 80.91.229.12 (24 Feb 2010 19:50:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Feb 2010 19:50:29 +0000 (UTC) To: 5643@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 24 20:50:25 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NkNFU-0000cs-B2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Feb 2010 20:50:25 +0100 Original-Received: from localhost ([127.0.0.1]:33148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkNFP-0001YL-Uw for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Feb 2010 14:50:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NkMMO-0004p7-UN for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2010 13:53:25 -0500 Original-Received: from [140.186.70.92] (port=52939 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkMMO-0004oA-1H for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2010 13:53:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NkMMJ-0001Xp-A2 for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2010 13:53:23 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37832) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkMMH-0001Xg-1N for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2010 13:53:19 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NkMEJ-0001ZN-3i; Wed, 24 Feb 2010 13:45:03 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Feb 2010 18:45:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5643 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: X-Debbugs-Original-To: submit@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.12670370835997 (code B ref -1); Wed, 24 Feb 2010 18:45:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Feb 2010 18:44:43 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkMDy-0001Yg-U5 for submit@debbugs.gnu.org; Wed, 24 Feb 2010 13:44:43 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkMDx-0001Ya-DG for submit@debbugs.gnu.org; Wed, 24 Feb 2010 13:44:41 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NkMDs-0007Xy-U6; Wed, 24 Feb 2010 13:44:36 -0500 X-Spook: CipherTAC-2000 Ansar al-Islam Yukon INS secure CBNRC X-Ran: ?Pj/M?vgrx&fk~u4p3lqcHt0' List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35283 Archived-At: Current trunk on GNU/Linux: emacs -Q --eval "(progn (setq send-mail-function 'smtpmail-send-it) (require 'message))" C-h v message-send-mail-function RET Its value is message-send-mail-with-sendmail The fact that message-send-mail-function does not respect the value of send-mail-function at all is unhelpful. It will be especially confusing for people upgrading from Emacs 23.1 who have customized send-mail-function. I suggest a patch like the following: *** lisp/gnus/message.el 2010-02-24 03:12:54 +0000 --- lisp/gnus/message.el 2010-02-24 18:41:04 +0000 *************** *** 675,681 **** (error "Don't know how to send mail. Please customize `message-send-mail-function'"))))) ;; Useful to set in site-init.el ! (defcustom message-send-mail-function (message-send-mail-function) "Function to call to send the current buffer as mail. The headers should be delimited by a line whose contents match the variable `mail-header-separator'. --- 675,686 ---- (error "Don't know how to send mail. Please customize `message-send-mail-function'"))))) ;; Useful to set in site-init.el ! (defcustom message-send-mail-function ! (case send-mail-function ! (smtpmail-send-it 'message-smtpmail-send-it) ! (feedmail-send-it 'feedmail-send-it) ! (mailclient-send-it 'message-send-mail-with-mailclient) ! (t (message-send-mail-function))) "Function to call to send the current buffer as mail. The headers should be delimited by a line whose contents match the variable `mail-header-separator'. *************** *** 698,704 **** :tag "Use Mailclient package") (function :tag "Other")) :group 'message-sending ! :version "23.1" ;; No Gnus :initialize 'custom-initialize-default :link '(custom-manual "(message)Mail Variables") :group 'message-mail) --- 703,709 ---- :tag "Use Mailclient package") (function :tag "Other")) :group 'message-sending ! :version "23.2" :initialize 'custom-initialize-default :link '(custom-manual "(message)Mail Variables") :group 'message-mail)