[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#57179: 29.0.50: 'wrong-number-of-arguments' for function of two argu
From: |
Michael Heerdegen |
Subject: |
bug#57179: 29.0.50: 'wrong-number-of-arguments' for function of two arguments called from 'window-scroll-functions' |
Date: |
Sun, 14 Aug 2022 02:19:31 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Michael Heerdegen <michael_heerdegen@web.de> writes:
> Please tell whether this information suffices and you already have some
> idea or if I should try to create a recipe. I guess this must be
> related to a recent change from within the last few days.
Reverting a part of
48215c41d1 New debugging facility: backtraces from errors in Lisp called
from redisplay (Alan Mackenzie <acm@muc.de> 2022-08-11)
like this:
From ffb7c3d558b599bcc84f1bf4fb4388569892d927 Mon Sep 17 00:00:00 2001
From: Michael Heerdegen <michael_heerdegen@web.de>
Date: Sun, 14 Aug 2022 02:14:58 +0200
Subject: [PATCH] Test for #57179
---
src/xdisp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/xdisp.c b/src/xdisp.c
index 719b131baa..47eaddabce 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -18221,8 +18221,8 @@ run_window_scroll_functions (Lisp_Object window, struct
text_pos startp)
{
specpdl_ref count = SPECPDL_INDEX ();
specbind (Qinhibit_quit, Qt);
- safe_run_hooks_2
- (Qwindow_scroll_functions, window, make_fixnum (CHARPOS (startp)));
+ run_hook_with_args_2 (Qwindow_scroll_functions, window,
+ make_fixnum (CHARPOS (startp)));
unbind_to (count, Qnil);
SET_TEXT_POS_FROM_MARKER (startp, w->start);
/* In case the hook functions switch buffers. */
--
2.30.2
seems to fix my incarnation of this problem. Can it be that? CC'ing
Alan (the author).
TIA,
Michael.