From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie 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: Mon, 15 Aug 2022 12:24:31 +0000 Message-ID: References: <83y1vskq5e.fsf@gnu.org> <87sflzook8.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33766"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 57179-done@debbugs.gnu.org To: Michael Heerdegen , Andrea Greselin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 15 14:25:20 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 1oNZ9j-0008eE-J6 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Aug 2022 14:25:19 +0200 Original-Received: from localhost ([::1]:42212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNZ9i-0003Nj-6m for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Aug 2022 08:25:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39600) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNZ9S-0003NT-IJ for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 08:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51406) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNZ9S-0000GX-7Q for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 08:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oNZ9S-0007vE-1H for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2022 08:25:02 -0400 Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Aug 2022 12:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 57179 X-GNU-PR-Package: emacs Mail-Followup-To: 57179@debbugs.gnu.org, acm@muc.de, greselin.andrea@gmail.com Original-Received: via spool by 57179-done@debbugs.gnu.org id=D57179.166056628030412 (code D ref 57179); Mon, 15 Aug 2022 12:25:01 +0000 Original-Received: (at 57179-done) by debbugs.gnu.org; 15 Aug 2022 12:24:40 +0000 Original-Received: from localhost ([127.0.0.1]:41155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oNZ96-0007uS-4x for submit@debbugs.gnu.org; Mon, 15 Aug 2022 08:24:40 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:18416 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1oNZ94-0007uG-JO for 57179-done@debbugs.gnu.org; Mon, 15 Aug 2022 08:24:39 -0400 Original-Received: (qmail 50152 invoked by uid 3782); 15 Aug 2022 12:24:32 -0000 Original-Received: from acm.muc.de (p4fe1586f.dip0.t-ipconnect.de [79.225.88.111]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 15 Aug 2022 14:24:32 +0200 Original-Received: (qmail 12998 invoked by uid 1000); 15 Aug 2022 12:24:31 -0000 Content-Disposition: inline In-Reply-To: <87sflzook8.fsf@web.de> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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:239792 Archived-At: Hello, Michael and Andrea. Thanks for testing my patch. I have just committed the patch to master, and I am closing the bug with this post. On Sat, Aug 13, 2022 at 22:50:47 +0200, Michael Heerdegen wrote: > 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. -- Alan Mackenzie (Nuremberg, Germany).