From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85141 Path: news.gmane.org!not-for-mail From: jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo) Newsgroups: gmane.emacs.gnus.general Subject: Re: [Patch] Signature for format=flowed Date: Wed, 15 Oct 2014 21:42:20 -0400 Message-ID: <87h9z4zt6r.fsf@yale.edu> References: <87d29wq6gb.fsf@yale.edu> <87mw8yh1im.fsf@yale.edu> <87fveqgyxx.fsf@yale.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1413423913 29078 80.91.229.3 (16 Oct 2014 01:45:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Oct 2014 01:45:13 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33385@lists.math.uh.edu Thu Oct 16 03:45:03 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xea7i-0007AV-7G for ding-account@gmane.org; Thu, 16 Oct 2014 03:45:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Xea73-0008T3-BJ; Wed, 15 Oct 2014 20:44:21 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Xea71-0008Sj-7a for ding@lists.math.uh.edu; Wed, 15 Oct 2014 20:44:19 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1Xea6z-0003Nv-SV for ding@lists.math.uh.edu; Wed, 15 Oct 2014 20:44:18 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1Xea6x-00058b-LY for ding@gnus.org; Thu, 16 Oct 2014 03:44:15 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xea6x-0006mV-EX for ding@gnus.org; Thu, 16 Oct 2014 03:44:15 +0200 Original-Received: from nat-130-132-173-32.central.yale.edu ([130.132.173.32]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Oct 2014 03:44:15 +0200 Original-Received: from jorge.alfaro-murillo by nat-130-132-173-32.central.yale.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Oct 2014 03:44:15 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 74 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nat-130-132-173-32.central.yale.edu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:VhBXn/8m5Ae3BmNeEWyfnJT0lcI= X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85141 Archived-At: --=-=-= Content-Type: text/plain; format=flowed 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. --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Make-signature-respect-format-flowed.patch >From 563353b183fb05165ae6aeda27466683b927da16 Mon Sep 17 00:00:00 2001 From: "Jorge A. Alfaro Murillo" 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 (tiny change) + + * message.el (message-insert-signature): Use `newline' instead of + inserting explicit "\n". + 2014-10-14 Teodor Zlatanov * 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 --=-=-=--