Gnus development mailing list
 help / color / mirror / Atom feed
From: jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo)
To: ding@gnus.org
Subject: [Patch] Signature for format=flowed
Date: Mon, 13 Oct 2014 12:29:08 -0400	[thread overview]
Message-ID: <87d29wq6gb.fsf@yale.edu> (raw)

[-- 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


             reply	other threads:[~2014-10-13 16:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-13 16:29 Jorge A. Alfaro-Murillo [this message]
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

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=87d29wq6gb.fsf@yale.edu \
    --to=jorge.alfaro-murillo@yale.edu \
    --cc=ding@gnus.org \
    /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).