help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: unwind-protect and inhibit-quit


From: Thibaut Verron
Subject: Re: unwind-protect and inhibit-quit
Date: Fri, 16 Jul 2021 10:10:36 +0200

>
> > That paragraph also mentions that “there is no easy way to fix this
> > bug”.  Is that statement still true or can this issue be resolved by
> > setting “inhibit-quit” in current Emacs versions:
>
> 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))))



reply via email to

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