From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: sbaugh@catern.com Newsgroups: gmane.emacs.bugs Subject: bug#63096: [PATCH] Note that Emacs pauses when handling sentinel errors Date: Tue, 02 May 2023 15:38:54 +0000 (UTC) Message-ID: <87wn1qpwtu.fsf@catern.com> References: <838redubty.fsf@gnu.org> <878re6rdtu.fsf@catern.com> <874jouzsjg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30918"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Spencer Baugh , Eli Zaretskii , 63096@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 02 17:40:23 2023 Return-path: Envelope-to: geb-bug-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 1pts74-0007pg-FY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 May 2023 17:40:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pts6m-0007f7-R9; Tue, 02 May 2023 11:40:04 -0400 Original-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 1pts6l-0007ea-3g for bug-gnu-emacs@gnu.org; Tue, 02 May 2023 11:40:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pts6k-0006Zl-CP for bug-gnu-emacs@gnu.org; Tue, 02 May 2023 11:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pts6k-0008AR-8d for bug-gnu-emacs@gnu.org; Tue, 02 May 2023 11:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: sbaugh@catern.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 May 2023 15:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63096 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 63096-submit@debbugs.gnu.org id=B63096.168304194331293 (code B ref 63096); Tue, 02 May 2023 15:40:02 +0000 Original-Received: (at 63096) by debbugs.gnu.org; 2 May 2023 15:39:03 +0000 Original-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 Original-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== Original-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 Original-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= Original-Received: from localhost (localhost [IPv6:::1]) by earth.catern.com (Postfix) with ESMTPSA id A552C60068; Tue, 2 May 2023 11:38:53 -0400 (EDT) In-Reply-To: <874jouzsjg.fsf@gmail.com> (Robert Pluim's message of "Tue, 02 May 2023 17:01:23 +0200") X-SG-EID: ZgbRq7gjGrt0q/Pjvxk7wM0yQFRdOkTJAtEbkjCkHbJQEPixBgX834cEEk0CqzPzfttiM5KS7KcneoFQuUw5yrCUcEFX7sJA5S7ukmyNwADDsfSIWLeq3+27of7ZYtgWGsSOeao4WmXdq9y6ODZfcgshaK3PCV+vwWoSr4U9rPY+QBQsXyquOYvyqyo11nSDMtaifwbF7qo1Sop0iyiDew== X-Entity-ID: d/0VcHixlS0t7iB1YKCv4Q== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260942 Archived-At: --=-=-= 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 --=-=-=--