[gnu.emacs.gnus] signature file handling

wisner@mica.Berkeley.EDU (Bill Wisner) (07/03/89)

I don't like having two dashes before my signature file. So I added a
variable gnus-signature-separator, which defaults to "--\n" and contains
the string that separates your article from your signature.

This is a very unofficial patch from a very inexpert elisp hack.

Bill Wisner		wisner@mica.berkeley.edu	     ucbvax!mica!wisner
I'm not the NRA either.

Index: gnuspost.el
*** gnuspost.el.~1~	Sat Jul  1 19:38:20 1989
--- gnuspost.el	Sun Jul  2 13:29:39 1989
***************
*** 26,31 ****
--- 26,34 ----
  (defvar gnus-organization-file "/usr/lib/news/organization"
    "*Local news organization file.")
  
+ (defvar gnus-signature-separator "--\n"
+   "*String to place between article text and signature file.")
+ 
  (autoload 'news-reply-mode "rnewspost")
  
  ;;;
***************
*** 330,336 ****
  	    (if (file-exists-p signature)
  		(progn
  		  (goto-char (point-max))
! 		  (insert "--\n")
  		  (insert-file-contents signature)))
  	    ))
        ;; Prepare article headers.
--- 333,340 ----
  	    (if (file-exists-p signature)
  		(progn
  		  (goto-char (point-max))
! 		  (if gnus-signature-separator
! 		      (insert gnus-signature-separator))
  		  (insert-file-contents signature)))
  	    ))
        ;; Prepare article headers.