From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: sendmail-program default is determined at compilation time Date: Mon, 04 Sep 2006 10:19:36 -0400 Message-ID: <871wqryarr.fsf@furball.mit.edu> References: <87zmdjdoj9.fsf@candyboy.here> <87bqpxc2gn.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1157379620 1971 80.91.229.2 (4 Sep 2006 14:20:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 4 Sep 2006 14:20:20 +0000 (UTC) Cc: toby@mi6.gen.nz, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 04 16:20:17 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GKFJ1-0004vk-7E for ged-emacs-devel@m.gmane.org; Mon, 04 Sep 2006 16:20:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKFJ0-0006Il-NQ for ged-emacs-devel@m.gmane.org; Mon, 04 Sep 2006 10:20:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GKFIf-0006Fu-3b for emacs-devel@gnu.org; Mon, 04 Sep 2006 10:19:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKFId-0006F7-Qq for emacs-devel@gnu.org; Mon, 04 Sep 2006 10:19:43 -0400 Original-Received: from [18.72.1.2] (helo=south-station-annex.mit.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GKFTB-0003S9-0S; Mon, 04 Sep 2006 10:30:37 -0400 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id k84EJgle005812; Mon, 4 Sep 2006 10:19:42 -0400 (EDT) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by grand-central-station.mit.edu (8.13.6/8.9.2) with ESMTP id k84EJc6u012994; Mon, 4 Sep 2006 10:19:40 -0400 (EDT) Original-Received: from furball.mit.edu (SYDNEYPACIFIC-TWO-FIFTY-SEVEN.MIT.EDU [18.95.6.2]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id k84EJZo2002283; Mon, 4 Sep 2006 10:19:36 -0400 (EDT) Original-Received: from cyd by furball.mit.edu with local (Exim 3.36 #1 (Debian)) id 1GKFIW-0000lz-00; Mon, 04 Sep 2006 10:19:36 -0400 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Mon\, 04 Sep 2006 05\:50\:19 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Spam-Score: 1.217 X-Scanned-By: MIMEDefang 2.42 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:59318 Archived-At: Richard Stallman writes: > There is one complication: putting sendmail-program in sendmail.el > means that it won't be available unless sendmail.el is loaded (unless > we autoload it, which defeats the purpose of setting its default at > compile time). I don't know if any other parts of Emacs assume it is > available. > > feedmail.el and gnus/message.el use it. I think it is better to make > them load sendmail.el if they need to, than to make startup.el > initialize the variable. That way it won't add to the time > for starting Emacs (such delays add up). > > Could you please DTRT? It's wrong for feedmail.el and message.el to load sendmail.el, since they currently go to some lengths to avoid doing exactly that; however, it's trivial for them to look for sendmail on the fly if sendmail-program isn't bound. I've checked in a fix.