From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62082 Path: news.gmane.org!not-for-mail From: Ralf Angeli Newsgroups: gmane.emacs.gnus.general Subject: Quoted empty lines and format=flowed Date: Fri, 24 Feb 2006 10:50:23 +0100 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1140774842 10301 80.91.229.2 (24 Feb 2006 09:54:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Feb 2006 09:54:02 +0000 (UTC) Original-X-From: ding-owner+m10610=ding+2daccount=gmane.org@lists.math.uh.edu Fri Feb 24 10:54:01 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FCZe9-0004EL-Aa for ding-account@gmane.org; Fri, 24 Feb 2006 10:53:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FCZe8-0006E7-03 for ding-account@gmane.org; Fri, 24 Feb 2006 03:53:56 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FCZaz-0006Dy-00 for ding@lists.math.uh.edu; Fri, 24 Feb 2006 03:50:41 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FCZax-0004YT-Be for ding@lists.math.uh.edu; Fri, 24 Feb 2006 03:50:41 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FCZav-0006qm-00 for ; Fri, 24 Feb 2006 10:50:37 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FCZaq-0003Vc-5d for ding@gnus.org; Fri, 24 Feb 2006 10:50:32 +0100 Original-Received: from dialin-212-144-208-019.pools.arcor-ip.net ([212.144.208.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Feb 2006 10:50:32 +0100 Original-Received: from angeli by dialin-212-144-208-019.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Feb 2006 10:50:32 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 76 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dialin-212-144-208-019.pools.arcor-ip.net Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAANlBMVEUAAAD7+vVSPEL+/v79 /v1rDy/y7uQtAhK3tbD99doDAALV08n////+//78/fw7ARdgBieLg4LQmlLpAAACPklEQVR4nK2V 27KrMAiGTUCC0OLi/V92kRitp73HziwuOq3m4+cQ6PD60oY/AVCZEzwHkBXZ6Tmgikmc7yVuAGQD UOLHCqgEL7DnCpCYEFUfK1TCs9tz4AXokvEL4AUq5RuFF5DIF30IwES+SLoSRZ73Ifyri+To3xMA AMxlkDCPjsMZugLEWYZmkp3p/wAaeRl2JsXJENDwCgBgXKAiMhyIkMk5+zYeGwBG7J4P/ltYzYPk lfgAfD7bFSQEQpfxBCSpb6+Aa6SQONMZsOxK6VOifn6ZiigG2xEA1Vp0SOR7Ii/NI+d1PlbAFg+Y i+5z8SWQuO3GR6A7AM/Jd0A/FQrYR3YD+m02xF1MkQL0Htk/gKbfzvbrtD6lUw601hksWlVy9LBW XxT603OVMHZjfQfI4XeKLZCdtEgmeLfz5z7U3WJtFMKvTrnGw1OMReHaHd4i3t0lj2LzEk98cVeN 4ntDM8IFiLzbK9cprH0spl52ue+BGLTC05252/sGwJTp9vw0MV2Aeo/IWwjcTav58t1OOcTgx6YY R47jyqafFFRtV6INqLM8VvMIim2fCZsnvABA42pRTdoB5DEJ7yMQs/8535iltDUbrx4OC60BqcYT TSg/4425nUIC4Hhc2kzLDeJ4DimNTaBviZD5mRs3N8VMh3+KCqwC22IRiQfzOEvfsEcgbt1HYNuQ s5RwUtdYOQFv06reHB/2V/1dgXWGVmAVCFdyPF+ntMQK8RNAY6/pvKUd80AxERXKsZsOwC94/1VQ /4fx6QAAAABJRU5ErkJggg== Cancel-Lock: sha1:Jm1GBSO/u0JhgW55SVal7VZlBeg= X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62082 Archived-At: --=-=-= Hi, this is actually an old problem (see the discussion following on ding) which bit me again because one cannot disable the treatment of format=flowed messages by means of `mm-fill-flowed' with the Gnus version in current CVS Emacs. (Reiner told me that he will change this.) The problem itself is a bogus line break when a message is displayed which includes a quoted empty line with a trailing space followed by a long line with no trailing space. As an example I attached a small file which can be used for testing with `emacs -Q -l flow-fill test.txt -eval "(fill-flowed)"'. The result should look like this >>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx >>xxxxxxxxxxxxxxxxxxxxxxxxxxxxx. > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx? > Xxx > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx? while I would have expected this >>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx >>xxxxxxxxxxxxxxxxxxxxxxxxxxxxx. > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx? Xxx > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx? If I understand RFC3676 correctly one could get rid of this problem by removing space-stuffing not only at the start of lines but also after quote marks. While it would conform to RFC3676 I am not sure if people would like to have quoted text be displayed without spacing between quote marks and text. Thus, the following patch removes space-stuffing only for quoted empty lines: --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- /usr/src/gnus/lisp/flow-fill.el.~7.15.~ 2006-02-22 15:51:58 +0100 +++ /usr/src/gnus/lisp/flow-fill.el 2006-02-24 10:20:04 +0100 @@ -103,7 +103,7 @@ (set-buffer (or (current-buffer) buffer)) (goto-char (point-min)) ;; Remove space stuffing. - (while (re-search-forward "^ " nil t) + (while (re-search-forward "^\\( \\|>+ $\\)" nil t) (delete-char -1) (forward-line 1)) (goto-char (point-min)) --=-=-= I am aware that this is rather a band-aid than a real fix, but anyway. If something like that is acceptable I can provide a ChangeLog entry as well. -- Ralf --=-=-= Content-Disposition: attachment; filename=test.txt >>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx >>xxxxxxxxxxxxxxxxxxxxxxxxxxxxx. > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx? Xxx > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx? --=-=-=--