From: Reiner Steib <reinersteib+gmane@imap.cc>
Cc: Chong Yidong <cyd@stupidchicken.com>
Subject: `hard-newline' changes trigger format=flowed in Gnus
Date: Tue, 29 Nov 2005 21:41:25 +0100 [thread overview]
Message-ID: <v94q5v9oga.fsf@marauder.physik.uni-ulm.de> (raw)
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/
next reply other threads:[~2005-11-29 20:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-29 20:41 Reiner Steib [this message]
2005-11-29 21:08 ` `hard-newline' changes trigger format=flowed in Gnus Romain Francoise
2005-11-29 21:10 ` David Koppelman
2005-11-29 22:18 ` Chong Yidong
2005-11-30 13:35 ` Per Abrahamsen
2005-11-29 23:56 ` Chong Yidong
2005-11-30 15:10 ` Reiner Steib
2005-11-30 16:30 ` Sam Steingold
2005-11-30 20:23 ` Reiner Steib
2005-11-30 22:17 ` Sam Steingold
2005-12-01 17:48 ` Reiner Steib
2005-11-30 20:31 ` David Koppelman
2005-12-01 17:44 ` Reiner Steib
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=v94q5v9oga.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.de \
--cc=cyd@stupidchicken.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).