From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79956 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C5=81ukasz?= Stelmach Newsgroups: gmane.emacs.gnus.general Subject: [PATCH] remove only empty lines Date: Tue, 20 Sep 2011 21:56:11 +0200 Message-ID: <87y5xj9eec.fsf%lukasz.stelmach@iem.pw.edu.pl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1316548710 13909 80.91.229.12 (20 Sep 2011 19:58:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 20 Sep 2011 19:58:30 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28250@lists.math.uh.edu Tue Sep 20 21:58:27 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R66SY-0006j5-2T for ding-account@gmane.org; Tue, 20 Sep 2011 21:58:26 +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 1R66RH-0002fO-Be; Tue, 20 Sep 2011 14:57:07 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1R66RG-0002fF-6O for ding@lists.math.uh.edu; Tue, 20 Sep 2011 14:57:06 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1R66RE-0004yP-0k for ding@lists.math.uh.edu; Tue, 20 Sep 2011 14:57:05 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1R66RA-0001Al-FO for ding@gnus.org; Tue, 20 Sep 2011 21:57:00 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R66R9-00065m-UL for ding@gnus.org; Tue, 20 Sep 2011 21:56:59 +0200 Original-Received: from 77-255-53-24.adsl.inetia.pl ([77.255.53.24]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Sep 2011 21:56:59 +0200 Original-Received: from lukasz.stelmach by 77-255-53-24.adsl.inetia.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Sep 2011 21:56:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 58 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 77-255-53-24.adsl.inetia.pl User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:x3Q8p3AEDv2JOA9YLRZNICUTgZM= X-Spam-Score: -5.4 (-----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79956 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi. There is a very little problem with the current implementation of message-indent-citation function. In a signature like mine, with an empty line in the middle, the empty line gets removed. The following patch fixes the problem. The "(unless (eolp)..." expression is pointless right after (goto-char (point-max)). =2D-8<---------------cut here---------------start------------->8--- diff --git a/lisp/message.el b/lisp/message.el index 1fcd12f..cc8e73b 100644 =2D-- a/lisp/message.el +++ b/lisp/message.el @@ -3723,10 +3723,9 @@ However, if `message-yank-prefix' is non-nil, insert= that prefix on each line." (message-delete-line)) ;; Delete blank lines at the end of the buffer. (goto-char (point-max)) =2D (unless (eolp) =2D (insert "\n")) =2D (while (and (zerop (forward-line -1)) =2D (looking-at "$")) + (beginning-of-line) + (while (and (looking-at "$") + (zerop (forward-line -1))) (message-delete-line))) ;; Do the indentation. (if (null message-yank-prefix) =2D-8<---------------cut here---------------end--------------->8--- =2D-=20 Mi=C5=82ego dnia, =C5=81ukasz Stelmach ... Winogrona w pop=C5=82ochu tul=C4=85 si=C4=99 do po=C5=82=C3=B3wek cytry= n. Jazda... --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQEcBAEBAgAGBQJOePAAAAoJEBFmoRRqPFDwCE4H+wQOQhT42NZQUVUIg7tbfYdP trJpAIK2UNlXPdv6itAazsghj5q7dRxfjAUFmwILBrUUsL3xOsivD4EfONgTfnzE 0Ojr0ZQQazNqUViVNhTuFimSP+uQYmi9jqQ4HyUhIf/0y++dQVnFH5SsPVRbFWwk 1ELQNljNfo/zCmxfKd3nncAtgArXiIlpNX3G8UnxKTq/DrKldkkpILHaKfNk+C5s nJwN4zvR2HJRosB8svfK0AuBZEZYtwxabng/OAupAjT/2UTMbmRU/kT6BVQ8qdLE /KYEeAvl6zWG3lLV9s/QKokXOFQvrZCsQz3RPIuz0C4E4sHM/WM5XVCzDmPfMh4= =WspI -----END PGP SIGNATURE----- --=-=-=--