all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#63096: [PATCH] Note that Emacs pauses when handling sentinel errors
@ 2023-04-26 22:04 Spencer Baugh
  2023-04-27  5:35 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Spencer Baugh @ 2023-04-26 22:04 UTC (permalink / raw)
  To: 63096

[-- Attachment #1: Type: text/plain, Size: 515 bytes --]

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'


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Note-that-Emacs-pauses-when-handling-sentinel-errors.patch --]
[-- Type: text/patch, Size: 1272 bytes --]

From bbac7354af6c0c3af717be98bee4d9f1238094c2 Mon Sep 17 00:00:00 2001
From: Spencer Baugh <sbaugh@janestreet.com>
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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* bug#63096: [PATCH] Note that Emacs pauses when handling sentinel errors
  2023-04-26 22:04 bug#63096: [PATCH] Note that Emacs pauses when handling sentinel errors Spencer Baugh
@ 2023-04-27  5:35 ` Eli Zaretskii
  2023-05-02 14:46   ` sbaugh
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2023-04-27  5:35 UTC (permalink / raw)
  To: Spencer Baugh; +Cc: 63096

> From: Spencer Baugh <sbaugh@janestreet.com>
> 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.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#63096: [PATCH] Note that Emacs pauses when handling sentinel errors
  2023-04-27  5:35 ` Eli Zaretskii
@ 2023-05-02 14:46   ` sbaugh
  2023-05-02 15:01     ` Robert Pluim
  0 siblings, 1 reply; 6+ messages in thread
From: sbaugh @ 2023-05-02 14:46 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Spencer Baugh, 63096

[-- Attachment #1: Type: text/plain, Size: 1094 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Spencer Baugh <sbaugh@janestreet.com>
>> 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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Note-that-Emacs-pauses-when-handling-sentinel-errors.patch --]
[-- Type: text/x-patch, Size: 1939 bytes --]

From ce5909f81485d0cfb0e4622251816e83ef422a5c Mon Sep 17 00:00:00 2001
From: Spencer Baugh <sbaugh@catern.com>
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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* bug#63096: [PATCH] Note that Emacs pauses when handling sentinel errors
  2023-05-02 14:46   ` sbaugh
@ 2023-05-02 15:01     ` Robert Pluim
  2023-05-02 15:38       ` sbaugh
  0 siblings, 1 reply; 6+ messages in thread
From: Robert Pluim @ 2023-05-02 15:01 UTC (permalink / raw)
  To: sbaugh; +Cc: Spencer Baugh, Eli Zaretskii, 63096

>>>>> 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
-- 





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#63096: [PATCH] Note that Emacs pauses when handling sentinel errors
  2023-05-02 15:01     ` Robert Pluim
@ 2023-05-02 15:38       ` sbaugh
  2023-05-02 17:52         ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: sbaugh @ 2023-05-02 15:38 UTC (permalink / raw)
  To: Robert Pluim; +Cc: Spencer Baugh, Eli Zaretskii, 63096

[-- Attachment #1: Type: text/plain, Size: 1198 bytes --]

Robert Pluim <rpluim@gmail.com> 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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Note-that-Emacs-pauses-when-handling-sentinel-errors.patch --]
[-- Type: text/x-patch, Size: 1941 bytes --]

From 2d5fe79761683d3d6b84b3d9dacb1a997a7e19fc Mon Sep 17 00:00:00 2001
From: Spencer Baugh <sbaugh@catern.com>
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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* bug#63096: [PATCH] Note that Emacs pauses when handling sentinel errors
  2023-05-02 15:38       ` sbaugh
@ 2023-05-02 17:52         ` Eli Zaretskii
  0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2023-05-02 17:52 UTC (permalink / raw)
  To: sbaugh; +Cc: sbaugh, rpluim, 63096-done

> From: sbaugh@catern.com
> Date: Tue, 02 May 2023 15:38:54 +0000 (UTC)
> Cc: Spencer Baugh <sbaugh@janestreet.com>, Eli Zaretskii <eliz@gnu.org>,
> 	63096@debbugs.gnu.org
> 
> Fixed.

Thanks, installed on the emacs-29 branch, and closing the bug.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-05-02 17:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-26 22:04 bug#63096: [PATCH] Note that Emacs pauses when handling sentinel errors Spencer Baugh
2023-04-27  5:35 ` Eli Zaretskii
2023-05-02 14:46   ` sbaugh
2023-05-02 15:01     ` Robert Pluim
2023-05-02 15:38       ` sbaugh
2023-05-02 17:52         ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.