[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Non file buffers and default-directory
From: |
Eli Zaretskii |
Subject: |
Re: Non file buffers and default-directory |
Date: |
Thu, 27 Apr 2023 09:05:16 +0300 |
> From: Emanuel Berg <incal@dataswamp.org>
> Date: Tue, 25 Apr 2023 19:54:56 +0200
>
> Eli Zaretskii wrote:
>
> > Thanks. This is promising, but it also means that some
> > changes are needed in smtpmail-send-it to avoid the bad and
> > the ugly part. (And further discussions should probably move
> > to emacs-devel.)
> >
> > Thank you for doing this, I think it will be a very
> > important feature when it becomes available.
>
> How do you do a defun with any/arbitrary Elisp code and call
> it without Emacs becoming nonresponsive executing the code, no
> matter how simple/complex, for the duration of the time the
> code is executing?
You use Lisp threads. If done correctly, Emacs will respond to user
input while another thread is waiting for a sub-process (in this case,
network connection to the SMTP server) to produce output. See the
node "Threads" in the ELisp Reference manual.
> Note that if this period is prolonged because of
> "non-nonresponsive" interactive activity outside of this code,
> such a prolongment, slim or big, is okay in this sense
> (prevent nonresponsiveness), as that is another issue.
Parse error.
- Re: Non file buffers and default-directory, (continued)
- Re: Non file buffers and default-directory, Manuel Giraud, 2023/04/22
- Re: Non file buffers and default-directory, Michael Albinus, 2023/04/23
- Re: Non file buffers and default-directory, Eli Zaretskii, 2023/04/23
- Re: Non file buffers and default-directory, Manuel Giraud, 2023/04/23
- Re: Non file buffers and default-directory, Eli Zaretskii, 2023/04/23
- Thread for smtpmail-send-it (was: Non file buffers and default-directory), Manuel Giraud, 2023/04/23
- Re: Thread for smtpmail-send-it (was: Non file buffers and default-directory), Eli Zaretskii, 2023/04/23
- Re: Non file buffers and default-directory, Manuel Giraud, 2023/04/25
- Re: Non file buffers and default-directory, Eli Zaretskii, 2023/04/25
- Re: Non file buffers and default-directory, Emanuel Berg, 2023/04/25
- Re: Non file buffers and default-directory,
Eli Zaretskii <=
- Re: Non file buffers and default-directory, Emanuel Berg, 2023/04/28
- Re: Non file buffers and default-directory, Eli Zaretskii, 2023/04/28
- 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, 2023/04/27