[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unwind-protect and inhibit-quit

From: Eli Zaretskii
Subject: Re: unwind-protect and inhibit-quit
Date: Fri, 16 Jul 2021 14:19:35 +0300

> From: Thibaut Verron <>
> Date: Fri, 16 Jul 2021 10:10:36 +0200
> Cc: help-gnu-emacs <>
> > You could use inhibit-quit, but that is generally a bad idea from the
> > UI point of view, when invoking potentially long-running functions:
> > you are preventing the user from interrupting that long function.  For
> > example, suppose the FTP command stalls for some reason.
> >
> Now I'm curious too... Would something like this work?
>  (let ((inhibit-quit t))
>    (setq process
>       (let ((inhibit-quit nil))
>          (ftp-setup-buffer host file))))

It might, but I still suggest to bind inhibit-quit non-nil only for
short durations of time and as little as possible.  There be dragons.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]