From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60837 Path: news.gmane.org!not-for-mail From: Jari Aalto Newsgroups: gmane.emacs.gnus.general Subject: [patch] CVS 2005-08-29: gnus-msg.el::gnus-msg.el - make lambda ARG optional Date: Mon, 29 Aug 2005 18:02:09 +0300 Organization: Private Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1125329218 1633 80.91.229.2 (29 Aug 2005 15:26:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Aug 2005 15:26:58 +0000 (UTC) Original-X-From: ding-owner+M9369=ding+2Daccount=gmane.org@lists.math.uh.edu Mon Aug 29 17:26:55 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E9lUm-0006Di-1L for ding-account@gmane.org; Mon, 29 Aug 2005 17:24:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1E9lUl-0006VO-01 for ding-account@gmane.org; Mon, 29 Aug 2005 10:24:23 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1E9l9f-0006HR-00 for ding@lists.math.uh.edu; Mon, 29 Aug 2005 10:02:35 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1E9l9d-0000ZO-AQ for ding@lists.math.uh.edu; Mon, 29 Aug 2005 10:02:33 -0500 Original-Received: from fep06-0.kolumbus.fi ([193.229.0.57] helo=fep06-app.kolumbus.fi) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1E9l9Y-0007kb-00 for ; Mon, 29 Aug 2005 17:02:28 +0200 Original-Received: from cante.net ([81.197.0.130]) by fep06-app.kolumbus.fi with ESMTP id <20050829150227.SXXR27547.fep06-app.kolumbus.fi@cante.net> for ; Mon, 29 Aug 2005 18:02:27 +0300 Original-To: Emacs Gnus-L User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (windows-nt) X-Spam-Score: -4.8 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60837 Archived-At: Here is small change. The option can be NIL, so it can be made &optional. It help during debugging posts, when one can do: (funcall message-post-method) 2005-08-29 Jari Aalto * gnus-msg.el (gnus-inews-add-send-actions): Made `message-post-method' lambda parameter ARG `&optional'. diff -r f5697f6e0a9d lisp/gnus-msg.el --- a/lisp/gnus-msg.el Mon Aug 29 14:48:04 2005 +++ b/lisp/gnus-msg.el Mon Aug 29 17:58:27 2005 @@ -515,7 +515,7 @@ (gnus-make-local-hook 'message-header-hook) (add-hook 'message-header-hook 'gnus-agent-possibly-save-gcc nil t)) (setq message-post-method - `(lambda (arg) + `(lambda (&optional arg) (gnus-post-method arg ,gnus-newsgroup-name))) (setq message-newsreader (setq message-mailer (gnus-extended-version))) (message-add-action