From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/4816 Path: news.gmane.org!not-for-mail From: Surendra Singhi Newsgroups: gmane.emacs.gnus.user Subject: Re: Face - problem!! Date: Thu, 31 Mar 2005 13:50:39 -0700 Organization: Arizona State University Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138670702 24984 80.91.229.2 (31 Jan 2006 01:25:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:25:02 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:34:21 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed-00.mathworks.com!arclight.uoregon.edu!news.asu.edu!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: machine.dhcp.asu.edu Original-X-Trace: news.asu.edu 1112302236 10770 149.169.179.56 (31 Mar 2005 20:50:36 GMT) Original-X-Complaints-To: postmaster@asu.edu Original-NNTP-Posting-Date: Thu, 31 Mar 2005 20:50:36 +0000 (UTC) User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.13 (Rational FORTRAN, windows-nt) Face: J3BwbW5vcm0nIGlzIG5vdCByZWNvZ25pemVkIGFzIGFuIGludGVybmFsIG9yIGV4dGVybmFs IGNvbW1hbmQsDQpvcGVyYWJsZSBwcm9ncmFtIG9yIGJhdGNoIGZpbGUuDQo= Cancel-Lock: sha1:nl6b7zO8/qvL2v5I7MBdRyHSbfA= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:4957 Original-Lines: 63 X-Gnus-Article-Number: 4957 Tue Jan 17 17:34:21 2006 Xref: news.gmane.org gmane.emacs.gnus.user:4816 Archived-At: David Z Maze writes: > Surendra Singhi writes: > >> I want to insert face into my news posts and I have the following lines in my >> .gnus file >> >> (setq message-required-news-headers >> (nconc message-required-news-headers >> (list '(Face . (lambda () >> (gnus-face-from-file "~/.xemacs/face.jpg")))))) >> >> The value of the variable is also set accordingly to >> >> (From Newsgroups Subject Date Message-ID (optional . Organization) >> (optional . User-Agent) (Face lambda nil >> (gnus-face-from-file "~/.xemacs/face.jpg"))) >> >> But it doesn't seems to have the intended effect. >> >> Am I doing anything wrong, or do I need to set some other variable? > > I don't think you're actually getting the lambda (code) into the list; > instead, you're getting the symbol 'lambda and such into it. Maybe > you mean something more like > > (setq message-required-news-headers > (append message-required-news-headers > (list (cons 'Face (lambda () > (gnus-face-from-file "face.jpg")))))) > > Or, even, > > (defun acquire-gnus-face () (gnus-face-from-file "face.jpg")) > (setq message-required-news-headers > (append message-required-news-headers > '((Face . acquire-gnus-face)))) > Both your method and my method gives the same result i.e., ((Face lambda nil (gnus-face-from-file "face.jpg"))) > (It's not obvious to me that "~/.xemacs/face.jpg" will do what you > want as an argument to gnus-face-from-file; you might need to pass > that through expand-file-name on the way.) Even after using expand-file-name on the way I don't get face field in my messages. The value of the variable is now: (From Newsgroups Subject Date Message-ID (optional . Organization) (optional . User-Agent) (Face lambda nil (gnus-face-from-file (expand-file-name "~/.xemacs/face.jpg")))) Thanks in advance. -- Surendra Singhi www.public.asu.edu/~sksinghi/ "O thou my friend! The prosperity of Crime is like unto the lightning, whose traitorous brilliancies embellish the atmosphere but for an instant, in order to hurl into death's very depths the luckless one they have dazzled." -- Marquis de Sade