From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrey Paramonov Newsgroups: gmane.emacs.devel Subject: Re: Changing the default for `send-mail-function' Date: Mon, 27 Jun 2011 15:25:49 +0400 Message-ID: <4E0868BD.6090205@acdlabs.ru> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1309191733 6950 80.91.229.12 (27 Jun 2011 16:22:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Jun 2011 16:22:13 +0000 (UTC) Cc: emacs-devel@gnu.org To: larsi@gnus.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 27 18:22:09 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QbEZc-0004Om-5X for ged-emacs-devel@m.gmane.org; Mon, 27 Jun 2011 18:22:08 +0200 Original-Received: from localhost ([::1]:33492 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbEZb-00047N-3U for ged-emacs-devel@m.gmane.org; Mon, 27 Jun 2011 12:22:07 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qb9xA-0001kl-B0 for emacs-devel@gnu.org; Mon, 27 Jun 2011 07:26:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qb9x8-00060J-KO for emacs-devel@gnu.org; Mon, 27 Jun 2011 07:26:08 -0400 Original-Received: from acdlab.moscow.itn.ru ([80.240.99.126]:49559) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qb9x8-0005zc-1j for emacs-devel@gnu.org; Mon, 27 Jun 2011 07:26:06 -0400 Original-Received: from [127.0.0.1] (acdlab11.acdlabs.ru [82.97.201.11]) by acdlab.Moscow.itn.ru (8.13.8/8.13.8) with ESMTP id p5RBMUev086873; Mon, 27 Jun 2011 15:22:31 +0400 (MSD) (envelope-from paramon@acdlabs.ru) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.9) Gecko/20100825 Thunderbird/3.1.3 Original-References: m34o3bd0ph.fsf@quimbies.gnus.org X-ACDLabs-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: p5RBMUev086873 X-ACDLabs-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-ACDLabs-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (not cached, score=-2.9, required 6, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_00 -1.90) X-ACDLabs-MailScanner-From: paramon@acdlabs.ru X-detected-operating-system: by eggs.gnu.org: FreeBSD 6.x (1) X-Received-From: 80.240.99.126 X-Mailman-Approved-At: Mon, 27 Jun 2011 12:07:49 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:141073 Archived-At: > Yes, but like I said, we would then, in the future, be unable to > change the default again, since all users would by then have a setting > explicitly in .emacs. Now send-mail-function can be one of mailclient-send-it, smtpmail-send-it, etc. One way to keep the ability to change the defaults is to introduce special promptonce-send-it as another possible value for send-mail-function. It would prompt user for configuration once and store actual mail-sending function in separate customizable variable, i.e. promptonce-send-mail-function. This promptonce-send-it should be made the default value for send-mail-function. This way, users' .emacs will have customized promptonce-send-mail-function, but not send-mail-function. Not sure it's worth the complication though, just my 2 cents. Best wishes, Andrey Paramonov