Gnus development mailing list
 help / color / mirror / Atom feed
From: Steinar Bang <steinar@bang.priv.no>
Subject: posting styles and regexps in variables
Date: 27 Nov 1998 12:15:46 +0100	[thread overview]
Message-ID: <wh4srlgzdp.fsf@viffer.oslo.metis.no> (raw)

Pterodactyl Gnus v0.54, XEmacs 20.4 "Emerald" [Lucid] (i386-pc-linux) 

I tried to use variables holding regexps in gnus-posting-styles, but
it looks like a variable symbol always evaluates to true:

(setq gnus-posting-styles
      '((".*"
	 (signature-file "~/.signature")
	 (organization "NCR METIS"))
	(mc-newsgroups
	 (address "sb@dod.no")
	 (organization "Denizens of Doom, Norway Chapter"))
	(private-newsgroups
	 (address "steinar@bang.priv.no")
	 (organization "Anarchists Guild"))
;	(hobby-newsgroups
;	 (signature-file "~/.signature-hobby"))
	))

In this case, the last setting of signature-file and address is the
one always chosen.  When I had an X-Home-Page setting in the three
uncommented entries, all three headers showed up in the message
buffer. 

Is there a way to evaluate what a variable symbol refers to as a
string/regexp?  Or do I have to work with naked strings here?

Thanx!


- Steinar


             reply	other threads:[~1998-11-27 11:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-27 11:15 Steinar Bang [this message]
1998-11-28  0:01 ` Lars Magne Ingebrigtsen
1998-11-30  8:18   ` Steinar Bang
1998-11-30 12:35     ` Kai.Grossjohann

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=wh4srlgzdp.fsf@viffer.oslo.metis.no \
    --to=steinar@bang.priv.no \
    /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).