[PATCH v2 4/4] emacs: Use the new JSON reply format.
Adam Wolfe Gordon
awg+notmuch at xvx.ca
Tue Jan 17 08:18:21 PST 2012
Hi David,
Thanks for the review. A couple of comments inline:
On Tue, Jan 17, 2012 at 02:04, David Edmondson <dme at dme.org> wrote:
>> + (insert "\n")
>> + (set-buffer-modified-p nil)))
>
> Is this newline always required? Is it the cause of the spurious blank
> line down below?
This is the cause of the spurious blank line, but without it the tests
complain about missing a blank line at the end of the file. There may
be a better way to deal with this - I'll experiment.
>> (defun notmuch-mua-reply (query-string &optional sender reply-all)
>> ...
>> + (insert (format "On %s, %s wrote:\n"
>> + (cdr (assq 'date original-headers))
>> + (cdr (assq 'from original-headers))))
>
> I wonder whether emacs should be regenerating this or not. I'm okay with
> it, but previous discussion was that it should remain the responsibility
> of the CLI.
I like this being generated in the MUA because then it can be
customized easily (e.g. in my later patch). Of course, it would also
be possible to add this as a config option for the CLI and generate it
there, but it feels to me like if there's a line between notmuch and
the MUA, this belongs on the MUA side, especially in MUAs that are
formatting the reply themselves anyway.
I'm happy to hear more discussion on this, and will implement whatever
seems best. I don't actually use the customization myself, it just
strikes me as a useful feature.
More information about the notmuch
mailing list