From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/73489 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Allow message-default-headers to be a function (was: [gnus git] branch master updated: =1= message: Allow message-default-headers to be a function) Date: Sat, 23 Oct 2010 17:40:51 +0200 Message-ID: <87aam4ncho.fsf@marauder.physik.uni-ulm.de> References: Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1287848497 30911 80.91.229.12 (23 Oct 2010 15:41:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 23 Oct 2010 15:41:37 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M21859@lists.math.uh.edu Sat Oct 23 17:41:36 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P9gDt-0005iK-4I for ding-account@gmane.org; Sat, 23 Oct 2010 17:41:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1P9gDN-00028a-00; Sat, 23 Oct 2010 10:41:01 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1P9gDL-00028J-3J for ding@lists.math.uh.edu; Sat, 23 Oct 2010 10:40:59 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P9gDJ-00018R-Ch for ding@lists.math.uh.edu; Sat, 23 Oct 2010 10:40:58 -0500 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P9gDI-0004pd-00 for ; Sat, 23 Oct 2010 17:40:56 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.175]) by mail.uni-ulm.de (8.14.3/8.14.2) with ESMTP id o9NFetUi011088 for ; Sat, 23 Oct 2010 17:40:55 +0200 (MEST) Original-Received: from localhost (localhost [127.0.0.1]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 0DA841066D for ; Sat, 23 Oct 2010 17:40:55 +0200 (CEST) X-Face: P05mdcZT&lL[-s2=mw~RsllZ0zZAb?vdE}.s (Julien Danjou's message of "Thu, 21 Oct 2010 15:16:42 +0200") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) X-DCC-STAT_FI_X86_64_VIRTUAL-Metrics: poseidon 1245; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:73489 Archived-At: > +2010-10-21 Julien Danjou > + > + * message.el (message-setup-1): Allow message-default-headers to be a > + function. > + > --- a/lisp/message.el > +++ b/lisp/message.el > @@ -1183,9 +1183,10 @@ It is a vector of the following headers: > :error "All header lines must be newline terminated") > > (defcustom message-default-headers "" > - "*A string containing header lines to be inserted in outgoing messages. > -It is inserted before you edit the message, so you can edit or delete > -these lines." > + "A string containing header lines to be inserted in outgoing messages. > +It is inserted before you edit the message, so you can edit or > +delete these lines. If set to a function, it is called and its > +result is inserted." If it can be a string or a function, the first line of the doc string should not say "A string". Same for the manual: > --- a/texi/message.texi > +++ b/texi/message.texi > @@ -1451,7 +1451,7 @@ Allegedly. > @item message-default-headers > @vindex message-default-headers > This string is inserted at the end of the headers in all message > -buffers. > +buffers. If set to a function, the returned results is inserted. ,---- | (defcustom message-default-headers "" | "A string containing header lines to be inserted in outgoing messages. | It is inserted before you edit the message, so you can edit or | delete these lines. If set to a function, it is called and its | result is inserted." | :version "23.2" | :group 'message-headers | :link '(custom-manual "(message)Message Headers") | :type 'message-header-lines) `---- The custom type is wrong now, isn't it? Could you fix it, please? > --- a/todo > +++ b/todo [...] > -* allow message-default-headers to be a function. > - Could you explain why it is useful? Is there another reason than "it was listed in todo"? ;-) What about `message-default-mail-headers' and `message-default-news-headers'? Should they be changed as well? Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/