GNU bug report logs -
#57179
29.0.50: 'wrong-number-of-arguments' for function of two arguments called from 'window-scroll-functions'
Previous Next
Full log
Message #17 received at 57179 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Michael Heerdegen <michael_heerdegen <at> 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 <at> muc.de> 2022-08-11)
like this:
[0001-Test-for-57179.patch (text/x-diff, inline)]
From ffb7c3d558b599bcc84f1bf4fb4388569892d927 Mon Sep 17 00:00:00 2001
From: Michael Heerdegen <michael_heerdegen <at> 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
[Message part 3 (text/plain, inline)]
seems to fix my incarnation of this problem. Can it be that? CC'ing
Alan (the author).
TIA,
Michael.
This bug report was last modified 2 years and 336 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.