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 14:46:22 +0000 (UTC) Message-ID: <878re6rdtu.fsf@catern.com> References: <838redubty.fsf@gnu.org> 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="32512"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Spencer Baugh , 63096@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 02 16:47: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 1ptrHl-0008Cg-VC for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 May 2023 16:47:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptrHV-00060m-L8; Tue, 02 May 2023 10:47:05 -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 1ptrHT-00060M-5Y for bug-gnu-emacs@gnu.org; Tue, 02 May 2023 10:47: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 1ptrHS-0002kj-T7 for bug-gnu-emacs@gnu.org; Tue, 02 May 2023 10:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ptrHS-0006N7-AO for bug-gnu-emacs@gnu.org; Tue, 02 May 2023 10:47: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 14:47: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.168303879024450 (code B ref 63096); Tue, 02 May 2023 14:47:02 +0000 Original-Received: (at 63096) by debbugs.gnu.org; 2 May 2023 14:46:30 +0000 Original-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 Original-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== Original-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 Original-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= Original-Received: from localhost (localhost [IPv6:::1]) by earth.catern.com (Postfix) with ESMTPSA id 51EB660039; Tue, 2 May 2023 10:46:21 -0400 (EDT) In-Reply-To: <838redubty.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 27 Apr 2023 08:35:21 +0300") X-SG-EID: ZgbRq7gjGrt0q/Pjvxk7wM0yQFRdOkTJAtEbkjCkHbKB8/GBwvZ2lRW9g6BwgXZMaGcgiiRd81RYhklrgmQb3m6XdPmJ8ZcvOd6gQmGg6Bi//FHRWnMA7TTDZ2SVIQTRD8rPyCBtIbEWpIj/IF6N/DF3AjMCGGIqXbHey6+e2OQGb8Q+1GWVJIaZ7w5Z+zhAvOFgRQjhMaVR+dBSDLaeuA== 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:260934 Archived-At: --=-=-= 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 --=-=-=--