From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#57179: 29.0.50: 'wrong-number-of-arguments' for function of two arguments called from 'window-scroll-functions' Date: Sat, 13 Aug 2022 22:50:47 +0200 Message-ID: <87sflzook8.fsf@web.de> References: <83y1vskq5e.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14490"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Andrea Greselin , 57179@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 13 22:51:09 2022 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 1oMy69-0003dE-Bz for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Aug 2022 22:51:09 +0200 Original-Received: from localhost ([::1]:52398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMy67-0005a0-O7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Aug 2022 16:51:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40308) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMy62-0005Zs-1k for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 16:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMy61-0000IN-Pd for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 16:51:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oMy61-0005ti-Ha for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 16:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Aug 2022 20:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57179 X-GNU-PR-Package: emacs Original-Received: via spool by 57179-submit@debbugs.gnu.org id=B57179.166042386122664 (code B ref 57179); Sat, 13 Aug 2022 20:51:01 +0000 Original-Received: (at 57179) by debbugs.gnu.org; 13 Aug 2022 20:51:01 +0000 Original-Received: from localhost ([127.0.0.1]:35254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMy60-0005tU-La for submit@debbugs.gnu.org; Sat, 13 Aug 2022 16:51:00 -0400 Original-Received: from mout.web.de ([212.227.17.11]:55959) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMy5x-0005tF-BC for 57179@debbugs.gnu.org; Sat, 13 Aug 2022 16:50:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1660423848; bh=n+uYzsdV9kc/UTMhW/W3LSOa8oF540Z1v5Swaknam4Q=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=b1TDUw1f9kaTlihd8Uj64iGwXeqKyJ1DPnqG7TSZVQNCXAnb2xQoEJekSLTiPQ6Hw 14LIyDLP769IQ/gxcfGCdj7XNO1DiLnhDmcDIZqOh08EtVn8UTAHO83rNooZ/Vkbbi 2mbICU80ydquozuSWs+t42wZkzT5gFYk95BH0/V4= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([84.57.248.18]) by smtp.web.de (mrweb105 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MnX5T-1ngVvZ0kC5-00jJ1C; Sat, 13 Aug 2022 22:50:48 +0200 In-Reply-To: <83y1vskq5e.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 13 Aug 2022 20:30:05 +0300") X-Provags-ID: V03:K1:4aijbMK6k/4wGSXY8Ggv/T9cYRDzmD3sZd8sk2Cj76qaONea4N4 Z9TOGNPN75G+m/cdSvyvVmd9qDlnJkk/bhoCjCGuxNyG4zIREZGLN/J+j43oluvK+r52Nfy d1GiGs5V6RidKZk3YDvg5bIxYr8MZULqFC96Dg3mrtodmw4KzbbRBl/HgLFTYGCtom6NG6T uhzT5FcfliIzr98nO4/sA== X-UI-Out-Filterresults: notjunk:1;V03:K0:aPpSnu5L7D4=:jeINzHh7ViVab7E+Q3uzK1 wrjXNSHcIhHTr9aNNo8w+0KIhVt5jIdzxnoNaE8/gu68+KhMRkpGYH0jA4s9rGBdQNlBGxfuz AG21hPezFN1/Mb0ZxZRSEV6luFVlGNN2Df/ZmPr2XXEuiYK4qA+wsdNyTRBcFdPV4WkZaruTK isLdsqGbn/GqZsqrjhIJRO3JYRaICe5wbfBbYTz7WkeGzWdugEbnkZJu5mz4R6waxXrferOO7 RievcMLp0EnfmdimFbbC9IH2cGfbjAkBfAmeBr28JpJWd3XWDoF/1JuPodiJQ0COeIpqD77hf Zd9tWTg8/6Ag9ESbuttwU4APLL38USzWh7Vdzpj7239+xmybz1KH5lSsYx8O1sWQdlX3U5Vzt pH6NNlqeNnZtbURv9XsSWSRTWRlP1chFKAd9Y1mFPfBk45mq6aCvIQNcZknQlGuKCzYVmq1BD 3chBif3iYgYpmE9S1Ni5tNCRv1a0mTybtSmhM5ZnwOiUzFdNeThRIBpO48xDyWsGNXkCcpZwU xdSkWjcW7Ysyusm+4wACPLtDniHKsr3obplzhi75XQHIoAD8wa3j0kYwS10hPUezPQs7sgcIh hjca4+83H7Xnr8NPT0VKH96T3CXeXKRvOYgHKaMRylfDSBWhyjGQr0uxlPuhPJyiJYUK8YEB1 ZHN9+bmONSu8pVkW4r/r+hxt02JV4o0ZbfQA2Wf++vdVBt1Fu901oUMig+WOzMvHmoP4vWYOR csVjri3GiY1sfVS900nEWaSKMi1qZRZBdRPydyHoPHjBuKJmRBNIg5TWJC6Oqisau9oROFgr 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" Xref: news.gmane.io gmane.emacs.bugs:239596 Archived-At: Eli Zaretskii writes: > The backtrace seems to show that a function that is called is > different from the one you show as your hook function. So I think you > should look closer into how you set up window-scroll-functions. I too have seen this problem just yesterday. There must be something going on, it is unlikely that this is a coincidence. In the backtrace I saw that the function had been called by name with zero arguments. But on top of the backtrace the symbol-function had been shown (a closure). I also wondered about that. I verified that the function was only accessible via `window-scroll-functions'. My code did not use the function in any other place. Some entries below in the backtrace was `redisplay' - so... somehow `redisplay' is sometimes calling functions in `window-scroll-functions' with zero arguments. Maybe the buffer local binding of `window-scroll-functions'. 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. Michael.