From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 26 18:04:15 2023 Received: (at submit) by debbugs.gnu.org; 26 Apr 2023 22:04:15 +0000 Received: from localhost ([127.0.0.1]:57109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prnFH-0002b9-2j for submit@debbugs.gnu.org; Wed, 26 Apr 2023 18:04:15 -0400 Received: from lists.gnu.org ([209.51.188.17]:55702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prnFC-0002ay-Ds for submit@debbugs.gnu.org; Wed, 26 Apr 2023 18:04:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1prnFB-0005Jv-BV for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2023 18:04:09 -0400 Received: from mxout5.mail.janestreet.com ([64.215.233.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1prnF9-0002Fq-7l for bug-gnu-emacs@gnu.org; Wed, 26 Apr 2023 18:04:09 -0400 From: Spencer Baugh To: bug-gnu-emacs@gnu.org Subject: [PATCH] Note that Emacs pauses when handling sentinel errors Date: Wed, 26 Apr 2023 18:04:05 -0400 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=64.215.233.18; envelope-from=sbaugh@janestreet.com; helo=mxout5.mail.janestreet.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain Tags: patch For emacs-29, since this variable is new in Emacs 29. In GNU Emacs 29.0.60 (build 3, x86_64-pc-linux-gnu, X toolkit, cairo version 1.15.12, Xaw scroll bars) of 2023-03-13 built on igm-qws-u22796a Repository revision: e759905d2e0828eac4c8164b09113b40f6899656 Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: CentOS Linux 7 (Core) Configured using: 'configure --with-x-toolkit=lucid --with-modules --with-gif=ifavailable' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Note-that-Emacs-pauses-when-handling-sentinel-errors.patch >From bbac7354af6c0c3af717be98bee4d9f1238094c2 Mon Sep 17 00:00:00 2001 From: Spencer Baugh Date: Wed, 26 Apr 2023 18:03:15 -0400 Subject: [PATCH] Note that Emacs pauses when handling sentinel errors Noting this behavior and variable here makes it easier to understand the behavior of Emacs when a sentinel has an error. * doc/lispref/processes.texi (Sentinels): Note that Emacs pauses when handling sentinel errors. --- doc/lispref/processes.texi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi index 50e67475d8e..39d1ee64e43 100644 --- a/doc/lispref/processes.texi +++ b/doc/lispref/processes.texi @@ -2159,7 +2159,9 @@ Sentinels programs was running when the sentinel was started. However, if @code{debug-on-error} is non-@code{nil}, errors are not caught. This makes it possible to use the Lisp debugger to debug the -sentinel. @xref{Debugger}. +sentinel. @xref{Debugger}. Additionally, Emacs pauses for +@var{process-error-pause-time} seconds so that the user sees the +error. @xref{Asynchronous Processes} While a sentinel is running, the process sentinel is temporarily set to @code{nil} so that the sentinel won't run recursively. -- 2.30.2 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 27 01:34:59 2023 Received: (at 63096) by debbugs.gnu.org; 27 Apr 2023 05:34:59 +0000 Received: from localhost ([127.0.0.1]:57377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pruHS-0007Ef-P9 for submit@debbugs.gnu.org; Thu, 27 Apr 2023 01:34:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pruHQ-0007EM-0i for 63096@debbugs.gnu.org; Thu, 27 Apr 2023 01:34:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pruHK-0005vi-7X; Thu, 27 Apr 2023 01:34:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=6GHjg8H6k46XauhbfOYLIhTGYdugz8lwNEe/D4aMg+U=; b=m6HPXwQ1iX1v LCSVQg0qL0DWZ9L+E0I8b1GMmuxoytp/1r7HgUZt+e/30ZJo+x/qnQe+v7TUblH+mi5zXqytBgS0N /WcJxoQzkhK+XE65mFQbMLo+qwjSIMOgCKm9Jwv+DW5BhHhIzhYZXKT7vB5kWHhGP1Nldi2IwbeuA BGSzbmQmDceOCVu/GbIC1oCHTpatfOBsd7XE89z2FPiroD1Nkd6RkVbNedZ4rsundan0gbFB9PeDq H81WXymYX+QHDD/zpGjhsv77CAaR+hGIzC98QytFgwOa+ad52l9fgj0JIPauMjpPDzFJa/hWR5zeR 3KVrPPOvA+QWo+pXfkUM0w==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pruHJ-0003Yj-IN; Thu, 27 Apr 2023 01:34:49 -0400 Date: Thu, 27 Apr 2023 08:35:21 +0300 Message-Id: <838redubty.fsf@gnu.org> From: Eli Zaretskii To: Spencer Baugh In-Reply-To: (message from Spencer Baugh on Wed, 26 Apr 2023 18:04:05 -0400) Subject: Re: bug#63096: [PATCH] Note that Emacs pauses when handling sentinel errors References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63096 Cc: 63096@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Spencer Baugh > Date: Wed, 26 Apr 2023 18:04:05 -0400 > > For emacs-29, since this variable is new in Emacs 29. Thanks. > diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi > index 50e67475d8e..39d1ee64e43 100644 > --- a/doc/lispref/processes.texi > +++ b/doc/lispref/processes.texi > @@ -2159,7 +2159,9 @@ Sentinels > programs was running when the sentinel was started. However, if > @code{debug-on-error} is non-@code{nil}, errors are not caught. > This makes it possible to use the Lisp debugger to debug the > -sentinel. @xref{Debugger}. > +sentinel. @xref{Debugger}. Additionally, Emacs pauses for Why "Additionally"? What you are describing is not in addition to what was described before that. > +@var{process-error-pause-time} seconds so that the user sees the > +error. @xref{Asynchronous Processes} If we are mentioning this variable here, let's also mention it where filter functions are described, since it is also relevant to those. From debbugs-submit-bounces@debbugs.gnu.org Tue May 02 10:46:30 2023 Received: (at 63096) by debbugs.gnu.org; 2 May 2023 14:46:30 +0000 Received: from localhost ([127.0.0.1]:44794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptrGv-0006MI-QL for submit@debbugs.gnu.org; Tue, 02 May 2023 10:46:30 -0400 Received: from s.wrqvtzvf.outbound-mail.sendgrid.net ([149.72.126.143]:9806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptrGt-0006M0-Po for 63096@debbugs.gnu.org; Tue, 02 May 2023 10:46:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=catern.com; h=from:subject:in-reply-to:references:mime-version:to:cc:content-type: cc:content-type:from:subject:to; s=s1; bh=aZSQVrVoQVZ1nHuVxSEN+YQDCadGmsUn4b5ggvUmVjs=; b=tYVyK72A4FLAFMyPRc92H71MAdCgVeSvuUHmc8JB6vhZWAm2kgJu2D42vGUt+nbBhLp5 bw/HIyUe81wxZtyFOW/OY7k09+eAFzSG9zjz/dJQNxn+bGyuqPIvxOTmD4Oy4k5y910vzw vnkn/RYEYgRT5vw79hsSMEMPBzTnTFHnWUhK570amhqrvmoRrDhSy7c3yzqwnbToF+f2ui Z/OvIURMTtg34MgJSof63p67Tk13eJhNFFwNkIrI1XS3C4rXbinoINeyV6OuLlqmR109Xy 7C9tNOtn2htsGaIqVr50zIZ4QsbfqxZTu//T1VtM958Oxqqe/lb+zS2DuqibZOog== Received: by filterdrecv-59cb65cf6d-87hlw with SMTP id filterdrecv-59cb65cf6d-87hlw-1-6451223E-3 2023-05-02 14:46:22.08155723 +0000 UTC m=+6016482.192616303 Received: from earth.catern.com (unknown) by geopod-ismtpd-6 (SG) with ESMTP id dMoZeWG9SXqLEICMhohpyA Tue, 02 May 2023 14:46:21.860 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=::1; helo=localhost; envelope-from=sbaugh@catern.com; receiver= Received: from localhost (localhost [IPv6:::1]) by earth.catern.com (Postfix) with ESMTPSA id 51EB660039; Tue, 2 May 2023 10:46:21 -0400 (EDT) From: sbaugh@catern.com Subject: Re: bug#63096: [PATCH] Note that Emacs pauses when handling sentinel errors In-Reply-To: <838redubty.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 27 Apr 2023 08:35:21 +0300") References: <838redubty.fsf@gnu.org> Date: Tue, 02 May 2023 14:46:22 +0000 (UTC) Message-ID: <878re6rdtu.fsf@catern.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-SG-EID: =?us-ascii?Q?ZgbRq7gjGrt0q=2FPjvxk7wM0yQFRdOkTJAtEbkjCkHbKB8=2FGBwvZ2lRW9g6BwgX?= =?us-ascii?Q?ZMaGcgiiRd81RYhklrgmQb3m6XdPmJ8ZcvOd6gQ?= =?us-ascii?Q?mGg6Bi=2F=2FFHRWnMA7TTDZ2SVIQTRD8rPyCBtIbEW?= =?us-ascii?Q?pIj=2FIF6N=2FDF3AjMCGGIqXbHey6+e2OQGb8Q+1GW?= =?us-ascii?Q?VJIaZ7w5Z+zhAvOFgRQjhMaVR+dBSDLaeuA=3D=3D?= To: Eli Zaretskii X-Entity-ID: d/0VcHixlS0t7iB1YKCv4Q== Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Eli Zaretskii writes: >> From: Spencer Baugh >> Date: Wed, 26 Apr 2023 18:04:05 -0400 >> >> For emacs-29, since this variable is new in Emacs 29. > > Thanks. > >> diff --git a/doc/lispref/processes. [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.2 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net [Blocked - see ] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [149.72.126.143 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-Debbugs-Envelope-To: 63096 Cc: Spencer Baugh , 63096@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) --=-=-= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Eli Zaretskii writes: >> From: Spencer Baugh >> Date: Wed, 26 Apr 2023 18:04:05 -0400 >> >> For emacs-29, since this variable is new in Emacs 29. > > Thanks. > >> diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi >> index 50e67475d8e..39d1ee64e43 100644 >> --- a/doc/lispref/processes.texi >> +++ b/doc/lispref/processes.texi >> @@ -2159,7 +2159,9 @@ Sentinels >> programs was running when the sentinel was started. However, if >> @code{debug-on-error} is non-@code{nil}, errors are not caught. >> This makes it possible to use the Lisp debugger to debug the >> -sentinel. @xref{Debugger}. >> +sentinel. @xref{Debugger}. Additionally, Emacs pauses for > > Why "Additionally"? What you are describing is not in addition to > what was described before that. > >> +@var{process-error-pause-time} seconds so that the user sees the >> +error. @xref{Asynchronous Processes} > > If we are mentioning this variable here, let's also mention it where > filter functions are described, since it is also relevant to those. OK, fixed. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Note-that-Emacs-pauses-when-handling-sentinel-errors.patch >From ce5909f81485d0cfb0e4622251816e83ef422a5c Mon Sep 17 00:00:00 2001 From: Spencer Baugh Date: Tue, 2 May 2023 10:42:11 -0400 Subject: [PATCH] Note that Emacs pauses when handling sentinel errors Noting this behavior and variable here makes it easier to understand the behavior of Emacs when a sentinel has an error. * doc/lispref/processes.texi (Filter Functions): Note that Emacs pauses when handling sentinel errors. (Sentinels): Note that Emacs pauses when handling sentinel errors. --- doc/lispref/processes.texi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi index 50e67475d8e..f55ed7887d2 100644 --- a/doc/lispref/processes.texi +++ b/doc/lispref/processes.texi @@ -1755,7 +1755,9 @@ Filter Functions program was running when the filter function was started. However, if @code{debug-on-error} is non-@code{nil}, errors are not caught. This makes it possible to use the Lisp debugger to debug filter -functions. @xref{Debugger}. +functions. @xref{Debugger}. If an error is caught, Emacs pauses for +@var{process-error-pause-time} seconds so that the user sees the +error. @xref{Asynchronous Processes} Many filter functions sometimes (or always) insert the output in the process's buffer, mimicking the actions of the default filter. @@ -2159,7 +2161,9 @@ Sentinels programs was running when the sentinel was started. However, if @code{debug-on-error} is non-@code{nil}, errors are not caught. This makes it possible to use the Lisp debugger to debug the -sentinel. @xref{Debugger}. +sentinel. @xref{Debugger}. If an error is caught, Emacs pauses for +@var{process-error-pause-time} seconds so that the user sees the +error. @xref{Asynchronous Processes} While a sentinel is running, the process sentinel is temporarily set to @code{nil} so that the sentinel won't run recursively. -- 2.38.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue May 02 11:01:36 2023 Received: (at 63096) by debbugs.gnu.org; 2 May 2023 15:01:36 +0000 Received: from localhost ([127.0.0.1]:44802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptrVY-0006zj-2j for submit@debbugs.gnu.org; Tue, 02 May 2023 11:01:36 -0400 Received: from mail-wm1-f44.google.com ([209.85.128.44]:44071) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptrVT-0006zP-Er for 63096@debbugs.gnu.org; Tue, 02 May 2023 11:01:34 -0400 Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-3f199696149so24693475e9.0 for <63096@debbugs.gnu.org>; Tue, 02 May 2023 08:01:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683039685; x=1685631685; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=ANUn0HbZuSUaZKJNymnoX3dwPKFPwGIo7oTtrn5mg0A=; b=GxAQeBFNUAlu+KAm6rRzNJcPWeJoCtk2oZt2WhWGnDHIFehKVQ6UB8Tmi/Bu0bid8T 9kgSYmXckWJR+xJj5D0V4Y7jS0OALGqY+TeCNEMzqZB6jF9Ihi4Ln8sdpfWyxpTiJAb4 rGTt0bils8didjPc1OjnGh/fSuMq9ISU3Jn+phcvgN74lntrq9FAizUuGXLRmrXKCvQn KWn824nDoPI9ZhLUfeGPBXweAvfoRF1SfVH1oqOJ2Mss26yJhG43nRkSw+3ojzKIOI3k agdnYh3zKC7oSl1uQxnLDOZSLsEu0orFulzFXGWYiJnumrREONYeBmaBUNGlTYLA3Y1u q72Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683039685; x=1685631685; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ANUn0HbZuSUaZKJNymnoX3dwPKFPwGIo7oTtrn5mg0A=; b=WRCOjBoZmdu5sprZQy/bGoY3wDQFj9OzI2Kmu6+Akh14Tjs4lYvRLwb7GfBaeon82x V2sDnW6FrrzAiJT3sLZMX+8ZH4ge6egfJucUGvskLhiWcWYCjQG59hIyodokZn5vggYV UF4TXL/dqlespy1E4y7WXEXD9Bfz4tOeh4WjFiKBM45Qo0RSRNr/Haq0HbRN4drFeHmX nbHkO3OkGFsYh0/kcLj1QI4amNJpoy0fm2fDFQh9CNrV/jkWXD7tiB39hXwVhBAKmUrI Y33VrEztBscV3s3XE89tm+LeMgF74jAzbhT2J/mXVLFFDlH5eVCrg8E6n+PBj1NzhRQe cJxg== X-Gm-Message-State: AC+VfDx2kYYZveFIHdUeI190upKpu19KTc/nTUiISLhbSJm5WT90g/JI gLKyrNY6qOKtY8DrnRCrHp1yfTefKGk= X-Google-Smtp-Source: ACHHUZ4mBwg0HazcdRcaxOTwBNz3ZBHb4izzucbU7VkmEzeYMrU1XpXN/3Ygg/508ZKypdaVrgzWlQ== X-Received: by 2002:a1c:f20b:0:b0:3f3:1299:5625 with SMTP id s11-20020a1cf20b000000b003f312995625mr12360974wmc.30.1683039684750; Tue, 02 May 2023 08:01:24 -0700 (PDT) Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id q10-20020a05600c46ca00b003f1957ace1fsm32054216wmo.13.2023.05.02.08.01.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 May 2023 08:01:24 -0700 (PDT) From: Robert Pluim To: sbaugh@catern.com Subject: Re: bug#63096: [PATCH] Note that Emacs pauses when handling sentinel errors In-Reply-To: <878re6rdtu.fsf@catern.com> (sbaugh@catern.com's message of "Tue, 02 May 2023 14:46:22 +0000 (UTC)") References: <838redubty.fsf@gnu.org> <878re6rdtu.fsf@catern.com> Date: Tue, 02 May 2023 17:01:23 +0200 Message-ID: <874jouzsjg.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 63096 Cc: Spencer Baugh , Eli Zaretskii , 63096@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Tue, 02 May 2023 14:46:22 +0000 (UTC), sbaugh@catern.com said: sbaugh> +functions. @xref{Debugger}. If an error is caught, Emacs pauses for sbaugh> +@var{process-error-pause-time} seconds so that the user sees the sbaugh> +error. @xref{Asynchronous Processes} @var{} is for formal parameters to functions (they end up upcased), but this is a variable, so you need @code{} sbaugh> Many filter functions sometimes (or always) insert the output in the sbaugh> process's buffer, mimicking the actions of the default filter. sbaugh> @@ -2159,7 +2161,9 @@ Sentinels sbaugh> programs was running when the sentinel was started. However, if sbaugh> @code{debug-on-error} is non-@code{nil}, errors are not caught. sbaugh> This makes it possible to use the Lisp debugger to debug the sbaugh> -sentinel. @xref{Debugger}. sbaugh> +sentinel. @xref{Debugger}. If an error is caught, Emacs pauses for sbaugh> +@var{process-error-pause-time} seconds so that the user sees the sbaugh> +error. @xref{Asynchronous Processes} Similarly here. Robert -- From debbugs-submit-bounces@debbugs.gnu.org Tue May 02 11:39:03 2023 Received: (at 63096) by debbugs.gnu.org; 2 May 2023 15:39:03 +0000 Received: from localhost ([127.0.0.1]:44862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pts5m-00088f-Lu for submit@debbugs.gnu.org; Tue, 02 May 2023 11:39:03 -0400 Received: from s.wrqvtbkv.outbound-mail.sendgrid.net ([149.72.123.24]:23650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pts5k-00088B-CY for 63096@debbugs.gnu.org; Tue, 02 May 2023 11:39:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=catern.com; h=from:subject:in-reply-to:references:mime-version:to:cc:content-type: cc:content-type:from:subject:to; s=s1; bh=ZNW+obFEpdjFcF3ORypOA8TDFw+RheT+ycf4juWNbd0=; b=anZSO+lcwW7qljZJgXSiSYBfcp1UV6LiV1sT3wIvcLQ//Lswl8RYBcYlKFC5G7AElu7N K99mfoTjIahU55Ih3xLgEdi0dWS4rZCsYcGcYmv1NJ5t1ge+US3y2LgADUzucwDJ/7h4b0 15Ns0zNobjHGn8VG6YSafXUtqnXOUG+2EJiv7RhFpl4EUnusB3d/mptKa3jIX/mkf0MoWP 3JRucCsTFjf/ih5K1jXKNCaycSzEt2R0KRT9CYIgPnxBVxRJjnxFlP4EqYOuaJtymCgEWs xzAT93y1DQthDSjI5vdeJ08godkyakiU2TZX6C6wNSQaZ1GUU7xPPvPL31fw06iA== Received: by filterdrecv-6c845fd887-wtb99 with SMTP id filterdrecv-6c845fd887-wtb99-1-64512E8E-13 2023-05-02 15:38:54.284746842 +0000 UTC m=+6019645.776174721 Received: from earth.catern.com (unknown) by geopod-ismtpd-19 (SG) with ESMTP id lHozFG8OR2eIlX46fLRswg Tue, 02 May 2023 15:38:54.094 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=::1; helo=localhost; envelope-from=sbaugh@catern.com; receiver= Received: from localhost (localhost [IPv6:::1]) by earth.catern.com (Postfix) with ESMTPSA id A552C60068; Tue, 2 May 2023 11:38:53 -0400 (EDT) From: sbaugh@catern.com Subject: Re: bug#63096: [PATCH] Note that Emacs pauses when handling sentinel errors In-Reply-To: <874jouzsjg.fsf@gmail.com> (Robert Pluim's message of "Tue, 02 May 2023 17:01:23 +0200") References: <838redubty.fsf@gnu.org> <878re6rdtu.fsf@catern.com> <874jouzsjg.fsf@gmail.com> Date: Tue, 02 May 2023 15:38:54 +0000 (UTC) Message-ID: <87wn1qpwtu.fsf@catern.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-SG-EID: =?us-ascii?Q?ZgbRq7gjGrt0q=2FPjvxk7wM0yQFRdOkTJAtEbkjCkHbJQEPixBgX834cEEk0Cqz?= =?us-ascii?Q?PzfttiM5KS7KcneoFQuUw5yrCUcEFX7sJA5S7uk?= =?us-ascii?Q?myNwADDsfSIWLeq3+27of7ZYtgWGsSOeao4WmXd?= =?us-ascii?Q?q9y6ODZfcgshaK3PCV+vwWoSr4U9rPY+QBQsXyq?= =?us-ascii?Q?uOYvyqyo11nSDMtaifwbF7qo1Sop0iyiDew=3D=3D?= To: Robert Pluim X-Entity-ID: d/0VcHixlS0t7iB1YKCv4Q== Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Robert Pluim writes: >>>>>> On Tue, 02 May 2023 14:46:22 +0000 (UTC), sbaugh@catern.com said: > sbaugh> +functions. @xref{Debugger}. If an error is caught, Emacs pauses for > sbaugh> +@var{process-error-pause-time} second [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [149.72.123.24 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 1.2 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net [Blocked - see ] 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-Debbugs-Envelope-To: 63096 Cc: Spencer Baugh , Eli Zaretskii , 63096@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) --=-=-= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Robert Pluim writes: >>>>>> On Tue, 02 May 2023 14:46:22 +0000 (UTC), sbaugh@catern.com said: > sbaugh> +functions. @xref{Debugger}. If an error is caught, Emacs pauses for > sbaugh> +@var{process-error-pause-time} seconds so that the user sees the > sbaugh> +error. @xref{Asynchronous Processes} > > @var{} is for formal parameters to functions (they end up > upcased), but this is a variable, so you need @code{} > > sbaugh> Many filter functions sometimes (or always) insert the output in the > sbaugh> process's buffer, mimicking the actions of the default filter. > sbaugh> @@ -2159,7 +2161,9 @@ Sentinels > sbaugh> programs was running when the sentinel was started. However, if > sbaugh> @code{debug-on-error} is non-@code{nil}, errors are not caught. > sbaugh> This makes it possible to use the Lisp debugger to debug the > sbaugh> -sentinel. @xref{Debugger}. > sbaugh> +sentinel. @xref{Debugger}. If an error is caught, Emacs pauses for > sbaugh> +@var{process-error-pause-time} seconds so that the user sees the > sbaugh> +error. @xref{Asynchronous Processes} > > Similarly here. > > Robert Fixed. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Note-that-Emacs-pauses-when-handling-sentinel-errors.patch >From 2d5fe79761683d3d6b84b3d9dacb1a997a7e19fc Mon Sep 17 00:00:00 2001 From: Spencer Baugh Date: Tue, 2 May 2023 11:37:48 -0400 Subject: [PATCH] Note that Emacs pauses when handling sentinel errors Noting this behavior and variable here makes it easier to understand the behavior of Emacs when a sentinel has an error. * doc/lispref/processes.texi (Filter Functions): Note that Emacs pauses when handling sentinel errors. (Sentinels): Note that Emacs pauses when handling sentinel errors. --- doc/lispref/processes.texi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi index 50e67475d8e..c901215d35d 100644 --- a/doc/lispref/processes.texi +++ b/doc/lispref/processes.texi @@ -1755,7 +1755,9 @@ Filter Functions program was running when the filter function was started. However, if @code{debug-on-error} is non-@code{nil}, errors are not caught. This makes it possible to use the Lisp debugger to debug filter -functions. @xref{Debugger}. +functions. @xref{Debugger}. If an error is caught, Emacs pauses for +@code{process-error-pause-time} seconds so that the user sees the +error. @xref{Asynchronous Processes} Many filter functions sometimes (or always) insert the output in the process's buffer, mimicking the actions of the default filter. @@ -2159,7 +2161,9 @@ Sentinels programs was running when the sentinel was started. However, if @code{debug-on-error} is non-@code{nil}, errors are not caught. This makes it possible to use the Lisp debugger to debug the -sentinel. @xref{Debugger}. +sentinel. @xref{Debugger}. If an error is caught, Emacs pauses for +@code{process-error-pause-time} seconds so that the user sees the +error. @xref{Asynchronous Processes} While a sentinel is running, the process sentinel is temporarily set to @code{nil} so that the sentinel won't run recursively. -- 2.38.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue May 02 13:51:51 2023 Received: (at 63096-done) by debbugs.gnu.org; 2 May 2023 17:51:51 +0000 Received: from localhost ([127.0.0.1]:44970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptuAI-0003kQ-V3 for submit@debbugs.gnu.org; Tue, 02 May 2023 13:51:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptuAH-0003jx-2P for 63096-done@debbugs.gnu.org; Tue, 02 May 2023 13:51:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptuA9-0008UY-Q6; Tue, 02 May 2023 13:51:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ev0MEelxwTviJG2hmbyUjAhbgydPvZo1Dq/2tx22MHY=; b=h64jrw5oRy4c nkOhm56Rv/BSlQbB9HMFCl4HCtR02QDF3mtzrWpErRzWnmzrYcgF5ddDmTmTYGoaYmXLtxkm3vs2x LOSzHWMO6NynufcMdePaH4ohO0Aaz8tYr8Tbj/qxWsCFB5c47tfyD4WJ8W2JxUO8TU5V0MjMelE7R I+Dj/4zqIWDE2FzWX0om1IbJnrkM7WCVOWOPigmdv/A8k0aGVjWHUDz0QI8Qt6eeA719GDI1yLaLz 62LjsV2ElhdyUMqfior05LDrWDxcqmbajpkHV1sIzOV+XtsGsmqaRPeWzhhY+UomLkbGOObtuqtzb /1z6xtkEGsoCcDFpYDz3GA==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptuA8-0001xg-Nr; Tue, 02 May 2023 13:51:41 -0400 Date: Tue, 02 May 2023 20:52:27 +0300 Message-Id: <83mt2mmxic.fsf@gnu.org> From: Eli Zaretskii To: sbaugh@catern.com In-Reply-To: <87wn1qpwtu.fsf@catern.com> (sbaugh@catern.com) Subject: Re: bug#63096: [PATCH] Note that Emacs pauses when handling sentinel errors References: <838redubty.fsf@gnu.org> <878re6rdtu.fsf@catern.com> <874jouzsjg.fsf@gmail.com> <87wn1qpwtu.fsf@catern.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63096-done Cc: sbaugh@janestreet.com, rpluim@gmail.com, 63096-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: sbaugh@catern.com > Date: Tue, 02 May 2023 15:38:54 +0000 (UTC) > Cc: Spencer Baugh , Eli Zaretskii , > 63096@debbugs.gnu.org > > Fixed. Thanks, installed on the emacs-29 branch, and closing the bug. From unknown Sun Jun 22 04:35:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 31 May 2023 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator