messages-are-flowing
messages-are-flowing copied to clipboard
soft newlines not represented properly
This may be a user error, but wanted to file this just in case.
I expected this mode to be able to put a space before newlines for soft lines. It almost sounded like 'use-hard-newlines should do just that.
It wasn't working for me, and I ended up doing something like the answer in:
https://emacs.stackexchange.com/questions/19296/retooling-fill-paragraph-to-append-trailing-spaces
which formatted the soft lines correctly.
So, questions:
- is
messages-are-flowing
intended to provide the behavior of spaces before newlines for soft newlines? - if so, is it broken?
- if not, any interest in incorporating something like the above stackexchange answer into this mode? I think that would allow this mode to be a boxed solution for emacs and format=flowed
Spaces before soft newlines are added by the function fill-flowed-encode
, in the module flow-fill.el
. This is supposed to be done by message-mode
before the message is sent, assuming that the variable mml-enable-flowed
is true. Is that how you're using it? If not, extending messages-are-flowing
to cover that use case might be a good idea.
I'm using mutt and emacs (in message mode) to compose these messages, and it appears there isn't any post-processing before sending. I guess that's the difference. Thanks for clarifying.
So you're using server-mode
to invoke Emacs from mutt? In that case, this might just work:
(add-hook 'server-done-hook 'fill-flowed-encode)
I guess it would make sense for messages-are-flowing
to do that if it detects that the current buffer is a server buffer...
Very interesting idea, I'll play with that! Presumably the hook would need to make sure it only activates with message-mode
/ mail-mode
or similar.
Any interest in a pull request that defines another hook to add "live" line end spaces while editing in emacs?
I think it would be a great addition to this package for people who compose email in emacs and pass it unmodified to their mailer (mutt, for example).