Gnus development mailing list
 help / color / mirror / Atom feed
* message.el patch
@ 2004-04-01 21:42 Jan Rychter
  2004-04-01 23:12 ` Jesper Harder
  2004-04-01 23:27 ` Steve Youngs
  0 siblings, 2 replies; 12+ messages in thread
From: Jan Rychter @ 2004-04-01 21:42 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 162 bytes --]

I'd like to propose this small change to message.el, useful for those of
us who do not use a signature separator or who use one that is a little
different.

--J.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: gnus-message-sig.diff --]
[-- Type: text/x-patch, Size: 1666 bytes --]

--- lisp/message.el	8 Mar 2004 06:54:23 -0000	7.14
+++ lisp/message.el	1 Apr 2004 18:12:54 -0000
@@ -404,6 +404,13 @@ for `message-cross-post-insert-note'."
   :link '(custom-manual "(message)Various Message Variables")
   :group 'message-various)
 
+(defcustom message-signature-inserted-separator "-- \n" 
+  "The string that is inserted before the signature to separate it from
+the message body."
+  :type 'string
+  :link '(custom-manual "(message)Various Message Variables")
+  :group 'message-various)
+
 (defcustom message-elide-ellipsis "\n[...]\n\n"
   "*The string which is inserted for elided text."
   :type 'string
@@ -2920,8 +2927,8 @@ Prefix arg means justify as well."
 	(insert "\n"))
       (when message-signature-insert-empty-line
 	(insert "\n"))
-      (insert "-- \n")
+      (insert message-signature-inserted-separator)
       (if (eq signature t)
 	  (insert-file-contents message-signature-file)
 	(insert signature))

--- texi/message.texi	5 Mar 2004 11:24:27 -0000	7.3
+++ texi/message.texi	1 Apr 2004 18:13:18 -0000
@@ -1876,6 +1876,15 @@ the @sc{mule}-to-@acronym{MIME} translat
 Regexp matching the signature separator.  It is @samp{^-- *$} by
 default.
 
+@item message-signature-inserted-separator
+@vindex message-signature-inserted-separator
+The string that separates the inserted signature from the message
+text. It is @samp{-- \n} by default.
+
+Please note that this is different from
+@code{message-signature-separator}, which is a regexp that helps in
+finding when the signature begins.
+
 @item mail-header-separator
 @vindex mail-header-separator
 String used to separate the headers from the body.  It is @samp{--text

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

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

end of thread, other threads:[~2004-04-02 20:44 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-01 21:42 message.el patch Jan Rychter
2004-04-01 23:12 ` Jesper Harder
2004-04-01 23:38   ` Simon Josefsson
2004-04-02  6:18     ` Kai Grossjohann
     [not found]       ` <871xn6ucm6.fsf-bMNBzUkETPBjhzMYmMhXkO8Lp5u2k6RR@public.gmane.org>
2004-04-02  6:34         ` Jochen Küpper
2004-04-01 23:27 ` Steve Youngs
2004-04-02  9:23   ` Jan Rychter
2004-04-02  7:52     ` Adam Sjøgren
2004-04-02  8:42     ` Reiner Steib
2004-04-02 18:36       ` Jan Rychter
2004-04-02 20:44         ` Reiner Steib
2004-04-02  9:05     ` Patrice Neff

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