From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/4535 Path: news.gmane.org!not-for-mail From: Andreas Balser Newsgroups: gmane.emacs.gnus.user Subject: referring to local variables Date: Fri, 18 Feb 2005 18:01:52 +0100 Organization: [posted via] Leibniz-Rechenzentrum, Muenchen (Germany) Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138670429 23685 80.91.229.2 (31 Jan 2006 01:20:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:20:29 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:33:55 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!uio.no!feed.news.tiscali.de!news.belwue.de!informatik.tu-muenchen.de!lrz.de!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: math93.mathematik.uni-muenchen.de Original-X-Trace: wsc10.lrz-muenchen.de 1108746111 22684 129.187.111.53 (18 Feb 2005 17:01:51 GMT) Original-X-Complaints-To: news@lrz-muenchen.de Original-NNTP-Posting-Date: 18 Feb 2005 17:01:51 GMT User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:3O4JcnNmwHgDX9nroEzZl68KR0c= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:4676 Original-Lines: 51 X-Gnus-Article-Number: 4676 Tue Jan 17 17:33:55 2006 Xref: news.gmane.org gmane.emacs.gnus.user:4535 Archived-At: 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