From: Reiner Steib <reinersteib+gmane@imap.cc>
To: info-gnus-english@gnu.org
Subject: Re: `eval' in Posting Styles
Date: Sun, 11 Feb 2007 10:48:37 +0100 [thread overview]
Message-ID: <v98xf5vxca.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <uhctwly8w.fsf@evrocom.net>
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/
next prev parent reply other threads:[~2007-02-11 9:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-08 10:50 Kamen TOMOV
2007-02-11 9:48 ` Reiner Steib [this message]
2007-02-12 7:40 ` Kamen TOMOV
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=v98xf5vxca.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.de \
--cc=info-gnus-english@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).