Gnus development mailing list
 help / color / mirror / Atom feed
* [Patch] Signature for format=flowed
@ 2014-10-13 16:29 Jorge A. Alfaro-Murillo
  2014-10-14 19:43 ` Ted Zlatanov
  0 siblings, 1 reply; 8+ messages in thread
From: Jorge A. Alfaro-Murillo @ 2014-10-13 16:29 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 107 bytes --]

Hi, 

This makes signatures respect hard-new-lines for people that like 
format=flowed.

Best,
-- 
Jorge.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Make-signature-respect-format-flowed.patch --]
[-- Type: text/x-diff, Size: 1178 bytes --]

From fd5076b8113cd683e3991537c59eed06c25a6941 Mon Sep 17 00:00:00 2001
From: "Jorge A. Alfaro Murillo" <jorge.alfaro-murillo@yale.edu>
Date: Mon, 13 Oct 2014 12:21:12 -0400
Subject: [PATCH] Make signature respect format=flowed

* lisp/gnus/message.el (message-insert-signature): Change (insert
"\n") for (newline)
---
 lisp/gnus/message.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index ca0280c..9f5da80 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -3531,15 +3531,16 @@ Message buffers and is not meant to be called directly."
       (goto-char (point-max))
       ;; Insert the signature.
       (unless (bolp)
-	(insert "\n"))
+	(newline))
       (when message-signature-insert-empty-line
-	(insert "\n"))
-      (insert "-- \n")
+	(newline))
+      (insert "-- ")
+      (newline)
       (if (eq signature t)
 	  (insert-file-contents signature-file)
 	(insert signature))
       (goto-char (point-max))
-      (or (bolp) (insert "\n")))))
+      (or (bolp) (newline)))))
 
 (defun message-insert-importance-high ()
   "Insert header to mark message as important."
-- 
2.1.0


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

end of thread, other threads:[~2014-10-16 12:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-13 16:29 [Patch] Signature for format=flowed Jorge A. Alfaro-Murillo
2014-10-14 19:43 ` Ted Zlatanov
2014-10-14 19:52   ` Jorge A. Alfaro-Murillo
2014-10-14 20:02     ` Ted Zlatanov
2014-10-14 20:48       ` Jorge A. Alfaro-Murillo
2014-10-15 14:31         ` Ted Zlatanov
2014-10-16  1:42           ` Jorge A. Alfaro-Murillo
2014-10-16 12:46             ` Ted Zlatanov

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