Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Surendra Singhi <efuzzyone@netscape.net>
Subject: Re: Face - problem!!
Date: Thu, 31 Mar 2005 13:50:39 -0700	[thread overview]
Message-ID: <mzsjwnds.fsf@netscape.net> (raw)
In-Reply-To: <y68psxfbtmf.fsf@contents-vnder-pressvre.mit.edu>

David Z Maze <dmaze@mit.edu> writes:

> Surendra Singhi <efuzzyone@netscape.net> 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


  reply	other threads:[~2005-03-31 20:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-31  0:44 Surendra Singhi
2005-03-31 17:41 ` David Z Maze
2005-03-31 20:50   ` Surendra Singhi [this message]
2005-03-31 21:11     ` Rebecca Ore
2005-03-31 21:39       ` Surendra Singhi
2005-03-31 22:16         ` Rebecca Ore
2005-04-01  6:53           ` Surendra Singhi
2005-03-31 21:56 ` Surendra Singhi

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=mzsjwnds.fsf@netscape.net \
    --to=efuzzyone@netscape.net \
    /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).