From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel Subject: `hard-newline' changes trigger format=flowed in Gnus Followup-To: gmane.emacs.devel Date: Tue, 29 Nov 2005 21:41:25 +0100 Message-ID: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1133296981 17016 80.91.229.2 (29 Nov 2005 20:43:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2005 20:43:01 +0000 (UTC) Cc: Chong Yidong Original-X-From: ding-owner+m9963@lists.math.uh.edu Tue Nov 29 21:42:56 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EhCJ6-0002ye-O2 for ding-account@gmane.org; Tue, 29 Nov 2005 21:42:33 +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 1EhCJ2-0000GV-00; Tue, 29 Nov 2005 14:42:28 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EhCIY-0000GQ-00 for ding@lists.math.uh.edu; Tue, 29 Nov 2005 14:41:58 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1EhCIR-00078W-Cd for ding@lists.math.uh.edu; Tue, 29 Nov 2005 14:41:57 -0600 Original-Received: from mail.uni-ulm.de ([134.60.1.1]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EhCIL-0008Fe-00 for ; Tue, 29 Nov 2005 21:41:45 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by mail.uni-ulm.de (8.13.4/8.13.4) with ESMTP id jATKfPw2002494; Tue, 29 Nov 2005 21:41:26 +0100 (MET) Original-Received: by bridgekeeper.physik.uni-ulm.de (Postfix, from userid 170) id C18A110C8B; Tue, 29 Nov 2005 21:41:25 +0100 (CET) Original-To: Emacs development , Mail-Followup-To: Emacs development , X-Face: .*T0'iU(sujq_j9\J>-d4fg;N/1++U#U$_5ii6k.=|"-n'?5O:Hyz&wi'-!I~,}7~GgT=0S /&-R5sbkNy5+Xo1y{Tw2KKxi@Xh"g@]Qc|.U<*]WDd)qvGowFDvfU1F]{EDho:7P0@|oOD=Bc{K4?> WP68K[Mx:}=`ZT'6g4'f+g?;`vri2!)xGy}3:=l'(/Cea0l4lo^H5#@/Z3ev User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-DCC-sgs_public_dcc_server-Metrics: gemini 1199; Body=3 Fuz1=3 Fuz2=3 X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61431 gmane.emacs.devel:46772 Archived-At: Hi, the changes related to `hard-newline' seem to provoke undesired behavior in Gnus. I can't reproduce the problem with an older CVS build (before `hard-newline' was introduced): "GNU Emacs 22.0.50.1 (i386-mingw-nt5.1.2600) of 2005-06-26 on NONIQPC". I can work around the problem by setting (setq hard-newline "\n") so I'm quite sure the problem is triggered by the `hard-newline' changes. Bug description: When copying some lines from the mail header (in Gnus' message mode) into the mail body, some of the newlines seem to be marked as `hard'. When sending (or previewing) the message, the function `fill-flowed-encode' detects the hard newlines and the whole message is encodes as format=flowed which leads to an unexpected output. To reproduce, save the following lines to `flow-fill_test.el' and start emacs with "emacs -Q -l flow-fill_test.el". --8<---------------cut here---------------start------------->8--- (gnus-slave-no-server 1) (setq temp-address "foo@bar.invalid") (gnus-msg-mail temp-address "test on hard-newlines" `(("From" ,temp-address))) (with-current-buffer (get-buffer (format "*mail to %s*" temp-address)) (insert-buffer-substring (current-buffer) (point-min) (- (point-max) 13)) (insert "...\nfoo\nbar\nbaz\nzab\n") (mml-preview)) --8<---------------cut here---------------end--------------->8--- The message buffer looks like this: ,---- | From: foo@bar.invalid | To: foo@bar.invalid | Subject: test on hard-newlines | --text follows this line-- | From: foo@bar.invalid | To: foo@bar.invalid | Subject: test on hard-newlines | --text follows... | foo | bar | baz | zab `---- Whereas in the preview buffer and the sent message, I get: ,---- | From: foo@bar.invalid | Subject: test on hard-newlines | To: foo@bar.invalid | Date: Tue, 29 Nov 2005 21:21:36 +0100 | | From: foo@bar.invalid | To: foo@bar.invalid Subject: test on hard-newlines | --text follows... foo bar baz zab `---- Apparently the newlines in the From and Subject lines are hard and the newline in the To line and all other lines aren't. I don't know if (and how) this bug should be fixed Gnus (`gnus/flow-fill.el' or `gnus/message.el'?) or in Emacs. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/