From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/8706 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.user Subject: Re: `eval' in Posting Styles Date: Sun, 11 Feb 2007 10:48:37 +0100 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1171190631 23282 80.91.229.12 (11 Feb 2007 10:43:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Feb 2007 10:43:51 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sun Feb 11 11:43:43 2007 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HGCBI-0006sk-Hu for gegu-info-gnus-english@m.gmane.org; Sun, 11 Feb 2007 11:43:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGCBI-0006Km-3f for gegu-info-gnus-english@m.gmane.org; Sun, 11 Feb 2007 05:43:40 -0500 Original-Newsgroups: gnu.emacs.gnus X-Face: .*T0'iU(sujq_j9\J>-d4fg; N/1++U#U$_5ii6k.=|"-n'?5O:Hyz&wi'-!I~,}7~GgT=0S /&-R5sbkNy5+Xo1y{Tw2KKxi@Xh"g@]Qc|.U<*]WDd)qvGowFDvfU1F]{EDho:7P0@|oOD=Bc{K4?> WP68K[Mx:}=`ZT'6g4'f+g?;`vri2!)xGy}3:=l'(/Cea0l4lo^H5#@/Z3ev Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux) Cancel-Lock: sha1:MlFmprS6sBr9Chu269ERfCZxpgo= Original-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de Original-X-Trace: news.uni-ulm.de 1171188582 134.60.10.123 (11 Feb 2007 11:09:42 +0100) Original-Lines: 39 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!t-online.de!inka.de!rz.uni-karlsruhe.de!news.uni-ulm.de!viandante.physik.uni-ulm.de!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.gnus:78889 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:8706 Archived-At: On Thu, Feb 08 2007, Kamen TOMOV wrote: > I needed to have a function executed depending on the Posting Style, > e.g. to have a things like that: > > (setq gnus-posting-styles > '(("foo" > (eval 'bar)) > ....)) > > (defun bar () > ....) > > It looks like the base was laid some time ago and I wonder why wasn't > it implemented fully. It works for me. I have some (eval (message "applying posting style for whatever")) expressions in my posting styles and I see the message in *Messages*. Does the following work? (setq gnus-posting-styles '(("foo" (eval (bar))) ....)) Maybe we should add an example in the manual near this: ,----[ (info "(gnus)Posting Styles") ] | If the attribute name is `eval', the form is evaluated, and the | result is thrown away. `---- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/