Sandra

joined 11 months ago
0
Emacs RFC 2646 email flowing (idiomdrottning.org)
submitted 4 months ago* (last edited 4 months ago) by [email protected] to c/[email protected]
 

Emacs RFC 2646 email flowing

Heck it Emacs!

A few months ago I fixed a bug in RFC 2646 handling where the last paragraph wouldn't get reflowed unless I remembered to add a hard newline (that is, a newline with the 'hard text property) after it, at EOT. I needed to hit one extra RET at the end. All other paragraphs would be wrapped, not just the last one.

(I even bugged @[email protected] about it.)

But it still didn't always work and today I tried to get to the bottom of why, spending the entire day debugging it, finally realizing that... It's not even being called when there's only one paragraph in the email. I wasted so much time before realizing that! And then getting to the bottom of why that wasn't happening was the opposite of easy but it turnes out that Gnus by design doesn't call the fill-flowed-encode function when there aren't any hard newlines in the buffer. Which there aren't gonna be if it's a single-paragraph letter ๐Ÿคฆ๐Ÿปโ€โ™€๏ธ

Use-hard-newlines is beyond useless since that's always buffer-local and the text-reflowing is being done in a temp buffer. Instead since 2010 we're supposed to set mml-enable-flowed to true. But don't worry, fans of the messages-are-flowing package, I'm gonna send patches there to reflect that. I have a bunch of other changes to that package too since I've been using that a lot this summer.

This is all in bug#71017 (cursed palindrome!) for people who wanna dig in ๐Ÿ‘ฉ๐Ÿปโ€๐Ÿซ

@[email protected]

[โ€“] [email protected] 1 points 5 months ago

There's also cook's utensil rules in XGE.

@[email protected] @[email protected]

[โ€“] [email protected] 2 points 5 months ago
[โ€“] [email protected] 5 points 11 months ago
[โ€“] [email protected] 7 points 11 months ago (4 children)

Now that the concept has caught on so widely, I've often wished @[email protected] had gone with a less scatological term. But maybe that is part of the reason it caught on ๐Ÿคท๐Ÿปโ€โ™€๏ธ

@[email protected]

[โ€“] [email protected] 150 points 11 months ago (10 children)

That's rich when the Google Play store is full of malware while F-Droid is full of gems.

@technology

[โ€“] [email protected] 1 points 11 months ago

It was such a awesome storyline though! Def made me interested in the game (but probably gonna skip it after all since I don't think I like these kinds of games).

It's good that it's a concluded S1 storyline since a lot of us still have a lot of catching up left to do of Discovery. I just started S02E08.

@RootBeerGuy @startrek