GNU bug report logs -
#17190
24.4.50; fill-flow checks quoted lines after deleting leading space
Previous Next
Reported by: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
Date: Sat, 5 Apr 2014 07:14:02 UTC
Severity: normal
Tags: fixed, notabug
Found in version 24.4.50
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17190 in the body.
You can then email your comments to 17190 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17190
; Package
emacs
.
(Sat, 05 Apr 2014 07:14:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 05 Apr 2014 07:14:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
When I evaluate the below code, I receive unexpected result.
(with-temp-buffer
(require 'flow-fill)
(insert " > ABC \nDEF\n")
(fill-flowed)
;; (mime-display-text/plain-flowed)
(buffer-string))
->
"> ABC
DEF
"
But I expect the below result.
"> ABC DEF
"
--
Kazuhiro Ito
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17190
; Package
emacs
.
(Thu, 15 Aug 2019 00:21:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 17190 <at> debbugs.gnu.org (full text, mbox):
Kazuhiro Ito <kzhr <at> d1.dion.ne.jp> writes:
> When I evaluate the below code, I receive unexpected result.
>
> (with-temp-buffer
> (require 'flow-fill)
> (insert " > ABC \nDEF\n")
> (fill-flowed)
> ;; (mime-display-text/plain-flowed)
> (buffer-string))
>
> ->
> "> ABC
> DEF
> "
> But I expect the below result.
>
> "> ABC DEF
> "
If I'm reading
https://tools.ietf.org/html/rfc2646
right, that's not how this is supposed to work, and `fill-flowed' does
it correctly -- it's supposed to flow together lines that have the same
quotation level, like this:
(with-temp-buffer
(require 'flow-fill)
(insert " > ABC \n> DEF\n")
(fill-flowed)
(buffer-string))
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) notabug.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 15 Aug 2019 00:21:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
17190 <at> debbugs.gnu.org and Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 15 Aug 2019 00:21:05 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17190
; Package
emacs
.
(Thu, 15 Aug 2019 10:01:01 GMT)
Full text and
rfc822 format available.
Message #15 received at 17190 <at> debbugs.gnu.org (full text, mbox):
> > When I evaluate the below code, I receive unexpected result.
> >
> > (with-temp-buffer
> > (require 'flow-fill)
> > (insert " > ABC \nDEF\n")
> > (fill-flowed)
> > ;; (mime-display-text/plain-flowed)
> > (buffer-string))
> >
> > ->
> > "> ABC
> > DEF
> > "
> > But I expect the below result.
> >
> > "> ABC DEF
> > "
>
> If I'm reading
>
> https://tools.ietf.org/html/rfc2646
>
> right, that's not how this is supposed to work, and `fill-flowed' does
> it correctly -- it's supposed to flow together lines that have the same
> quotation level, like this:
Please beware Space-Stuffing at the first line. The first line is not
quoted one. " > ABC " and "DEF" have the same quotation level.
--
Kazuhiro Ito
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17190
; Package
emacs
.
(Fri, 16 Aug 2019 00:00:02 GMT)
Full text and
rfc822 format available.
Message #18 received at 17190 <at> debbugs.gnu.org (full text, mbox):
Kazuhiro Ito <kzhr <at> d1.dion.ne.jp> writes:
> Please beware Space-Stuffing at the first line. The first line is not
> quoted one. " > ABC " and "DEF" have the same quotation level.
Ah, I missed that bit. And:
4.4. Space-Stuffing
In order to allow for unquoted lines which start with ">", and to
protect against systems which "From-munge" in-transit messages
(modifying any line which starts with "From " to ">From "),
Format=Flowed provides for space-stuffing.
Space-stuffing adds a single space to the start of any line which
needs protection when the message is generated. On reception, if the
first character of a line is a space, it is logically deleted. This
occurs after the test for a quoted line, and before the test for a
flowed line.
So `fill-flowed' is definitely doing this wrong -- it just deletes the
space stuffing before it does any of the processing, which is the
opposite of what it should do, really.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Did not alter fixed versions and reopened.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 16 Aug 2019 00:00:05 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17190
; Package
emacs
.
(Fri, 16 Aug 2019 01:02:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 17190 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> So `fill-flowed' is definitely doing this wrong -- it just deletes the
> space stuffing before it does any of the processing, which is the
> opposite of what it should do, really.
I've now reimplemented the function to follow the algorithm proposed by
the RFC more closely in Emacs 27.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Fri, 16 Aug 2019 01:02:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 27.1, send any further explanations to
17190 <at> debbugs.gnu.org and Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Fri, 16 Aug 2019 01:02:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17190
; Package
emacs
.
(Fri, 16 Aug 2019 14:32:01 GMT)
Full text and
rfc822 format available.
Message #30 received at 17190 <at> debbugs.gnu.org (full text, mbox):
> > So `fill-flowed' is definitely doing this wrong -- it just deletes the
> > space stuffing before it does any of the processing, which is the
> > opposite of what it should do, really.
>
> I've now reimplemented the function to follow the algorithm proposed by
> the RFC more closely in Emacs 27.
I confirmed the problem was fixed.
Thank you!
--
Kazuhiro Ito
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 14 Sep 2019 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 284 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.