From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85112 Path: news.gmane.org!not-for-mail From: jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo) Newsgroups: gmane.emacs.gnus.general Subject: [Patch] Signature for format=flowed Date: Mon, 13 Oct 2014 12:29:08 -0400 Message-ID: <87d29wq6gb.fsf@yale.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1413217876 3933 80.91.229.3 (13 Oct 2014 16:31:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Oct 2014 16:31:16 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33356@lists.math.uh.edu Mon Oct 13 18:31:09 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 1XdiWZ-0007E7-AF for ding-account@gmane.org; Mon, 13 Oct 2014 18:31:09 +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 1XdiVj-0000uS-No; Mon, 13 Oct 2014 11:30:15 -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 1XdiVh-0000u0-Ph for ding@lists.math.uh.edu; Mon, 13 Oct 2014 11:30:13 -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 1XdiVf-0003Rm-R6 for ding@lists.math.uh.edu; Mon, 13 Oct 2014 11:30:13 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XdiVd-0006Dj-V6 for ding@gnus.org; Mon, 13 Oct 2014 18:30:09 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XdiVd-0006gi-Aa for ding@gnus.org; Mon, 13 Oct 2014 18:30:09 +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 ; Mon, 13 Oct 2014 18:30:09 +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 ; Mon, 13 Oct 2014 18:30:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 59 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:Lf+n00ckkALBc8PsThfNrY8qzqA= X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85112 Archived-At: --=-=-= Content-Type: text/plain; format=flowed Hi, This makes signatures respect hard-new-lines for people that like format=flowed. Best, -- Jorge. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Make-signature-respect-format-flowed.patch >From fd5076b8113cd683e3991537c59eed06c25a6941 Mon Sep 17 00:00:00 2001 From: "Jorge A. Alfaro Murillo" 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 --=-=-=--