Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Andreas Balser <a.ba@gmx.de>
Subject: referring to local variables
Date: Fri, 18 Feb 2005 18:01:52 +0100	[thread overview]
Message-ID: <tlfbrahssxr.fsf@math93.mathematik.uni-muenchen.de> (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


             reply	other threads:[~2005-02-18 17:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-18 17:01 Andreas Balser [this message]
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

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=tlfbrahssxr.fsf@math93.mathematik.uni-muenchen.de \
    --to=a.ba@gmx.de \
    /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).