From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thibaut Verron Newsgroups: gmane.emacs.help Subject: Re: unwind-protect and inhibit-quit Date: Fri, 16 Jul 2021 10:10:36 +0200 Message-ID: References: <875yxbr4lr.fsf@sperrhaken.name> <83eeby680s.fsf@gnu.org> Reply-To: thibaut.verron@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10565"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 16 10:11:55 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m4Iws-0002Tj-HP for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 16 Jul 2021 10:11:54 +0200 Original-Received: from localhost ([::1]:35846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m4Iwr-0006Oj-In for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 16 Jul 2021 04:11:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57310) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4Ivs-0005YB-PN for help-gnu-emacs@gnu.org; Fri, 16 Jul 2021 04:10:52 -0400 Original-Received: from mail-yb1-xb30.google.com ([2607:f8b0:4864:20::b30]:41775) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m4Ivq-0001P0-MD; Fri, 16 Jul 2021 04:10:52 -0400 Original-Received: by mail-yb1-xb30.google.com with SMTP id a16so13504095ybt.8; Fri, 16 Jul 2021 01:10:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=QHltW6MEc48D6aD1G6fb5W50q/t3JFOwlI4tupEi/y0=; b=QB/Qxpj72Wa+gs40F+/P6a5CGPrDjZetHzxcn93tQ5SRB701YmBkbiDhdb3hj0kOG1 2lpTBe5rcFfF/cKgZte94mVYuzfhsEiSfWH7mJ9gXupuFoPf8dJhRBn6D61mbBwvVzQG fqXVwtuVxQkbmsnaMt3s3Dbd/2xFV4gDKEmjAmIxK8CtQoTCW62HLCSl5QfdemjyXKed 9XZIhlEL7TGXjRXIAb9nxUZHJiLQ613nMKvcJ0Nk4MWlGDOvfPMki/dJrbqRPDKApPcr WvuIV5XqABE+eVdpgbPKNTjYf6uzCzK/mSBRMYlKvCZxvJrno75hDTwGjZBB/GS5x/qF aF3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc:content-transfer-encoding; bh=QHltW6MEc48D6aD1G6fb5W50q/t3JFOwlI4tupEi/y0=; b=n/UQj/jp743UM6L/taMrjZiCvff7Sm3LnzCetjg38D1dz0aWScPE2o/vWMJWFP5PIg fi2bxqb15UAIeey/t0Panh+O5+TRZuavdBXnAw1dmJwM+Y343bCBh8f5DrSWZVpoibKt z+Et/alhDU3Bk6e43pZvH3115comlQEsxiIZ8BZYkz2T9mkk/1HIwkbyCUZluF1NHUu7 wHXD/2OGr+WuOTKvGetkKjZTil6h/K6cW8ylMYupjcYS9GHxLL2sq6YqAsDGGSACcdl2 mEOWSB9w15Pwat9PoJTk5lPboRQfVNWM5+HnUOE2Ib6o+v1IJqDe0Nh+Br2ohQq4pnt7 8l7Q== X-Gm-Message-State: AOAM531+U0G/bqwHI4xtubP+xhJUA15Fxi4wfgWHX9ycjXbbim5vGJkz xJXfPe5lfuGHO8IHS2NOhp74eWBOi5+7oIaPzPUS2qDOSYhGSPr+DaI= X-Google-Smtp-Source: ABdhPJz2tfQ5aPV6H4rBVL2IpoCThw1XhrV3ypWzVCaX1qplWw8BDXlLpzPegiLlLDiWo4L0gPvR6pKweQuzU6BClq8= X-Received: by 2002:a25:a4a5:: with SMTP id g34mr10917724ybi.473.1626423048513; Fri, 16 Jul 2021 01:10:48 -0700 (PDT) In-Reply-To: <83eeby680s.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::b30; envelope-from=thibaut.verron@gmail.com; helo=mail-yb1-xb30.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:131738 Archived-At: > > > That paragraph also mentions that =E2=80=9Cthere is no easy way to fix = this > > bug=E2=80=9D. Is that statement still true or can this issue be resolv= ed by > > setting =E2=80=9Cinhibit-quit=E2=80=9D 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))))