[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Non file buffers and default-directory
From: |
Manuel Giraud |
Subject: |
Re: Non file buffers and default-directory |
Date: |
Thu, 27 Apr 2023 17:29:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Eli Zaretskii <eliz@gnu.org> writes:
[...]
> I know it is not easy, right?
Yes, I know.
> Basically, the function(s) that actually send the email will have to
> be broken into two: one that prepares the message, the other which
> actually sends it. It's the latter that needs to run from a separate
> thread. in addition, there should be some callback that marks the
> message as sent, and does whatever else bookkeeping is needed when the
> send succeeds or fails, like, for example, if this is a response,
> marking the original message as one that was replied-to.
Yes this interface seems right... but, and that was my point, you'll
need it in many places. For example, if you work at 'smtpmail-send-it'
level, you would try to make 'smtpmail-via-smtp' async and have a
callback for its bookkeeping. But then, you'll also need a way to add
the bookkeeping of higher level calls (for instance, 'message-send').
I start to see why modifying something to be async in Emacs should be
scrutinize to see if it worth the effort because you'll lose easy
programming and compositing in the process.
Anyway, I'll keep trying for the SMTP sender.
--
Manuel Giraud
- Re: Non file buffers and default-directory, (continued)
- Re: Non file buffers and default-directory, Manuel Giraud, 2023/04/27
- Re: Non file buffers and default-directory, Eli Zaretskii, 2023/04/27
- Re: Non file buffers and default-directory, Tim Landscheidt, 2023/04/27
- Re: Non file buffers and default-directory, Eli Zaretskii, 2023/04/27
- Re: Non file buffers and default-directory, Tim Landscheidt, 2023/04/27
- Re: Non file buffers and default-directory, Tomas Hlavaty, 2023/04/27
- Re: Non file buffers and default-directory, Tim Landscheidt, 2023/04/27
- Re: Non file buffers and default-directory,
Manuel Giraud <=
- Re: Non file buffers and default-directory, Tomas Hlavaty, 2023/04/27
- Re: Non file buffers and default-directory, Manuel Giraud, 2023/04/23
- Re: Non file buffers and default-directory, Eli Zaretskii, 2023/04/23
- Re: Non file buffers and default-directory, Michael Albinus, 2023/04/22
- Re: Non file buffers and default-directory, Manuel Giraud, 2023/04/21
- Re: Non file buffers and default-directory, Michael Albinus, 2023/04/26
- Re: Non file buffers and default-directory, Manuel Giraud, 2023/04/27
Re: Non file buffers and default-directory, Emanuel Berg, 2023/04/19
Re: Non file buffers and default-directory, Emanuel Berg, 2023/04/19