all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "Dirk-Jan C. Binnema" <djcb@djcbsoftware.nl>, emacs-devel@gnu.org
Subject: Re: changes to message-send-and-exit in Emacs 26
Date: Sat, 30 Sep 2017 03:11:56 +0100	[thread overview]
Message-ID: <87a81dc4ur.fsf@linaro.org> (raw)
In-Reply-To: <83lgkx796o.fsf@gnu.org>


Eli Zaretskii <eliz@gnu.org> writes:

>> From: Alex Bennée <alex.bennee@linaro.org>
>> Date: Thu, 28 Sep 2017 19:42:07 +0100
>>
>> I'm trying to track down what is happening in Emacs when I call
>> message-send-and-exit to send an email from mu4e. I mailed emacs-user:
>>
>>   Subject: Changes to message-mode and encoding in Emacs26
>>   Date: Tue, 26 Sep 2017 16:41:03 +0100
>>   Message-ID: <87tvzpcvsg.fsf@linaro.org>
>>
>> but I suspect the details of encoding need some input from developers.
>> So in brief why does the act of sending an email result in:
>>
>>             character: é (displayed as é) (codepoint 233, #o351, #xe9)
>>     preferred charset: unicode-bmp (Unicode Basic Multilingual Plane (U+0000..U+FFFF))
>> code point in charset: 0xE9
>>                script: latin
>>                syntax: w 	which means: word
>>              category: .:Base, L:Left-to-right (strong), c:Chinese, j:Japanese, l:Latin, v:Viet
>>              to input: type "C-x 8 RET e9" or "C-x 8 RET LATIN SMALL LETTER E WITH ACUTE"
>>           buffer code: #xC3 #xA9
>>             file code: #xC3 #xA9 (encoded by coding system utf-8-unix)
>>               display: terminal code #xC3 #xA9
>>
>> ending up as:
>>
>>             character:  (displayed as ) (codepoint 4194243, #o17777703, #x3fffc3)
>>     preferred charset: eight-bit (Raw bytes 128-255)
>> code point in charset: 0xC3
>>                syntax: w 	which means: word
>>              category: L:Left-to-right (strong)
>>              to input: type "C-x 8 RET 3fffc3"
>>           buffer code: #xC3
>>             file code: not encodable by coding system utf-8-unix
>>               display: not encodable for terminal
>>
>> Any pointers?
>
> I'm guessing that message-send-and-exit calls message-send in this
> case.  Then my suggestion would be to step through that function in
> Edebug and see how the message text is communicated to mu4e and how it
> is encoded in the process.

Looking at Alexis' follow-up link I suspect the bug described in:

  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25645

Looking at the backtrace there it looks like mu4e is involved in the Fcc
handling to ensure the sent email ends up in the right Maildir after it
is sent.

Looking at the mu4e code it looks like it hooks into message-send-hook
but weirdly as I compose this reply this doesn't seem to be set.

> In general, I'd suggest to bring some mu4e developer on board of this
> discussion, and ask them to describe how mu4e plugs into
> message-send-and-exit.

I've CC'd Dirk who may be able to shed more like on the hooks into
message-send.

Looking at the Fcc code it doesn't look like it does anything funky to
the encoding although it does trigger a (write-file) after adding the
Fcc header.

--
Alex Bennée



      reply	other threads:[~2017-09-30  2:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-28 18:42 changes to message-send-and-exit in Emacs 26 Alex Bennée
2017-09-29 16:37 ` Eli Zaretskii
2017-09-30  2:11   ` Alex Bennée [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a81dc4ur.fsf@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=djcb@djcbsoftware.nl \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.