From: jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo)
To: ding@gnus.org
Subject: Re: [Patch] Signature for format=flowed
Date: Wed, 15 Oct 2014 21:42:20 -0400 [thread overview]
Message-ID: <87h9z4zt6r.fsf@yale.edu> (raw)
In-Reply-To: <m2bnpdmmjo.fsf@lifelogs.com>
[-- Attachment #1: Type: text/plain, Size: 162 bytes --]
Ted Zlatanov writes:
> Look at the existing ChangeLog and add your entry there, then
> send the full diff.
Ok, let me know if this is okay.
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: 1632 bytes --]
From 563353b183fb05165ae6aeda27466683b927da16 Mon Sep 17 00:00:00 2001
From: "Jorge A. Alfaro Murillo" <jorge.alfaro-murillo@yale.edu>
Date: Wed, 15 Oct 2014 21:33:29 -0400
Subject: [PATCH] Make signature respect format=flowed
* lisp/message.el (message-insert-signature): Use `newline' instead of
inserting explicit "\n".
---
lisp/ChangeLog | 5 +++++
lisp/message.el | 9 +++++----
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 214a8bf..d5fe1e5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2014-10-15 Jorge A. Alfaro-Murillo <jorge.alfaro-murillo@yale.edu> (tiny change)
+
+ * message.el (message-insert-signature): Use `newline' instead of
+ inserting explicit "\n".
+
2014-10-14 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-start.el (gnus-save-newsrc-file-check-timestamp): New option to
diff --git a/lisp/message.el b/lisp/message.el
index 847652f..5ba42b1 100644
--- a/lisp/message.el
+++ b/lisp/message.el
@@ -3575,15 +3575,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
next prev parent reply other threads:[~2014-10-16 1:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-13 16:29 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 [this message]
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=87h9z4zt6r.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).