From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9415 Path: news.gmane.org!not-for-mail From: Hadron Newsgroups: gmane.emacs.gnus.user Subject: Re: Adding "face" in conjunction with gnus-posting-styles Date: Mon, 30 Jul 2007 17:26:05 +0200 Organization: http://en.wikipedia.org/wiki/Quark Message-ID: References: <824pju68bp.fsf@googlemail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1185810084 27908 80.91.229.12 (30 Jul 2007 15:41:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2007 15:41:24 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Mon Jul 30 17:41:17 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 1IFXMy-0003OW-Ew for gegu-info-gnus-english@m.gmane.org; Mon, 30 Jul 2007 17:41:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IFXMy-0004PU-2H for gegu-info-gnus-english@m.gmane.org; Mon, 30 Jul 2007 11:41:16 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsserver.news.garr.it!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 58 Original-X-Trace: individual.net r0zqRvyYmJ4XKTZbJig4kAZm0/CMoOoaCSiVXtuUD91D0v9jOk X-Orig-Path: news.individual.net!news Cancel-Lock: sha1:qaJ9KPYiMS6fGVzrH6LcBVPCWu4= sha1:3UrCsj/1ldHULG+XnZtbHUsuJ74= X-Face: 2h#||Cd#d%F*NCm59[_6/{1a@jy%; |j>{D~4^gKg(^i%7j0IK?+,/GmW&:CD5fEKb_! Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEUBAQFeX18kItArui3a MTKtzavJybrGxcW4sbqgoJEo32BqAAAACXBIWXMAAABIAAAASABGyWs+AAAB30lEQVQ4y83UMW/T QBTA8f9ZuKRlyPNUBgRHpO58g5aBPQsrMpWoRJeSCZgIW1lQmRBhsTohMZCZKWKvxAco7VEJkFAl vxQBhTR+DIkTp8AMN1i6+/ne3bPvXcRfWvR/QPJsc/OJ/A7n7+5p/v3e1mlYTHOMXD/ILNRSAymw 6LZUwbVdXUQjB8XNKizmBFXEEOakAhtII1FUUGhNoebOdTqZgb5v7Oi3KWxpBj8TsMOXHASZQL4Q p2t0EQUGV1slOM34mgFa0IjpHpdwFpCUFIBm86QooQ7ueUaGQvSqi0oZCgyA+hVOHEh7DBukg9TA 0cUPVmJ0MkPJBqSGJyBWgoN49H1cRKBrZYJmyBrxLRUEiL26cSgVHV5v5qr0G0tnLiZJuSs0HDmc GCbDZTOzMXjxGNBHFL1c+R86eoxWVVwZ6iEAsrvzRoGAlQkqYfT2BSXBT0M5fOHy3UDxLgGIysyP IUJCBOwjuFo5wzxg4D3LIFaf7KoFUuBDYBt9S3sCP0A/Aisg+AWdgGUI7AGpitQr5+qz9C+lET1c oUd3KmCPbdgrQpjbj9zTmUN96KMlPDdw8zoDtu7t2upqL8w/OFUftr5dP/jiXpfj04qyT/c7j17k f6hByPNK55/eDL8Avva8YfF9tMEAAAAaelRYdEpQRUctQ29sb3JzcGFjZQAAeNozAgAAMwAzERZ+ YwAAACp6VFh0SlBFRy1TYW1wbGluZy1mYWN0b3JzAAB42jOqMNIxrDDUMawwBAARgwLpBsTKKAAA AABJRU5ErkJggg== Original-Xref: shelby.stanford.edu gnu.emacs.gnus:79604 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:9415 Archived-At: David Z Maze writes: > Hadron writes: > >> I currently use the gnus-posting-styles attribute "x-face-file" which >> takes an xface file as a parameter. >> >> I wish to add a "face" > > (Note that X-Face and Face are two different syntaxes; both declare a > 48x48 graphic, but X-Face has a custom format for a black-and-white > bitmap, Face is a base64-encoded color PNG file.) > >> Could someone help me integrate it into gnus-posting-styles so it only >> adds the face header if the group name contains "pattern". > > I might do something like > > (setq hq-face (gnus-face-from-file "~/.xfaces/face.jpeg")) > (setq gnus-posting-styles (("^gnu\\.emacs\\.gnus$" (face hq-face)))) > > Or, alternatively > > (setq hq-face-file-name (expand-file-name "~/.xfaces/face.jpeg)) > (setq gnus-posting-styles > '(("^gnu\\.emacs\\.gnus$" > (face (lambda () (gnus-face-from-file hq-face-file-name)))))) > > The first form should be more efficient in only building the face string > once (at load time); the second form will work if you change the file > name variable or contents of the file while Gnus is running. You could > also inline it into the posting styles variable itself. > > info://gnus/Posting+Styles is pretty informative and has an extended > example you could probably work from. > > --dzm I recently "upgraded" my posting styles to use "rx". Much easier. I now have: (setq gnus-posting-styles `( ( ,(rx(or "linux" "ubuntu" "ecb" "emacs" )) (name "Hadron")(address "hadronquark@googlemail.com") (x-face-file "~/.xfaces/hadron.xface") (organization "http://en.wikipedia.org/wiki/Quark") (face (gnus-face-from-file "~/.xfaces/quark.jpg")) (eval (setq pgg-gpg-user-id "********")) ) ;; *snip other clauses* ) )