Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* referring to local variables
@ 2005-02-18 17:01 Andreas Balser
  2005-02-18 17:46 ` pkd
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Balser @ 2005-02-18 17:01 UTC (permalink / raw)


Dear group,

I would like the signature file to depend on whether I post to
newsgroups or send email, and I would like not to have a signature
separator above the signature file.
This does not work, because I get something wrong about local
variables, I suppose:


In order to have a different signature depending on whether I post to
news-groups or send private email, I have the following:

(setq gnus-posting-styles
      '(("nntp"
         (signature-file "~/.signature.short"))))

I am sending this message with (in gnus 5.10.6, emacs 21.2.1)
(setq message-signature t)


However, I would like my signature file to contain the signature
seperator (see below), and hence, I would rather set

(setq message-signature nil)

(defun ab-sig ()
  (save-excursion
    (goto-char (point-max))
     (insert-file-contents message-signature-file)))

(add-hook 'message-signature-setup-hook 'ab-sig t)


When I do this, this works for email-messages (where
signature-file is not changed), but when I try to post to a newsgroup, 
I get
wrong type of argument: stringp, nil


If I set the message-signature-file variable as group parameter, then
this is ignored by my ab-sig function, although M-x apropos-variable
knows about the local meaning of message-signature-file.


-- 


Andreas

-- 
something funny comes here


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-02-28 19:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-18 17:01 referring to local variables Andreas Balser
2005-02-18 17:46 ` pkd
2005-02-19 23:44   ` François LAGARDE
2005-02-20 16:30     ` pkd
2005-02-28 13:50   ` Andreas Balser
2005-02-28 19:04     ` pkd

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).