* Re: bug#7596: 23.2.90; fill-flowed with DELETE-SPACE option does not work
[not found] <82bp4vn7wv.wl%kzhr@d1.dion.ne.jp>
@ 2011-01-22 19:31 ` Chong Yidong
2011-01-22 19:48 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Chong Yidong @ 2011-01-22 19:31 UTC (permalink / raw)
To: ding; +Cc: Kazuhiro Ito, 7596
Kazuhiro Ito <kzhr@d1.dion.ne.jp> writes:
> (with-temp-buffer
> (insert "ABC \nDEF")
> (fill-flowed nil t)
> (buffer-string))
> It returns
> "ABC
> DEF"
> But I expect
> "ABCDEF"
> I expect DELETE-SPACE option corresponds to "DelSp" parameter in
> RFC3676 and works so. Plesse see attached patch.
Could a Gnus developer please review Kazuhiro Ito's patch? Thanks.
--- lisp/gnus/flow-fill.el 2010-01-13 08:35:10 +0000
+++ lisp/gnus/flow-fill.el 2010-12-08 10:14:13 +0000
@@ -106,8 +106,6 @@
(forward-line 1))
(goto-char (point-min))
(while (re-search-forward " $" nil t)
- (when delete-space
- (delete-char -1))
(when (save-excursion
(beginning-of-line)
(looking-at "^\\(>*\\)\\( ?\\)"))
@@ -135,6 +133,8 @@
(replace-match (if (string= (match-string 2) " ")
"" "\\2")))
(backward-delete-char -1)
+ (when delete-space
+ (delete-char -1))
(end-of-line))
(unless sig
(condition-case nil
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: bug#7596: 23.2.90; fill-flowed with DELETE-SPACE option does not work
2011-01-22 19:31 ` bug#7596: 23.2.90; fill-flowed with DELETE-SPACE option does not work Chong Yidong
@ 2011-01-22 19:48 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2011-01-22 19:48 UTC (permalink / raw)
To: Chong Yidong; +Cc: ding, Kazuhiro Ito, 7596-close
Chong Yidong <cyd@stupidchicken.com> writes:
>> I expect DELETE-SPACE option corresponds to "DelSp" parameter in
>> RFC3676 and works so. Plesse see attached patch.
>
> Could a Gnus developer please review Kazuhiro Ito's patch? Thanks.
It looks reasonable to me. I've applied the patch.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-22 19:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <82bp4vn7wv.wl%kzhr@d1.dion.ne.jp>
2011-01-22 19:31 ` bug#7596: 23.2.90; fill-flowed with DELETE-SPACE option does not work Chong Yidong
2011-01-22 19:48 ` Lars Ingebrigtsen
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 NNTP newsgroup(s).