From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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 20:30:05 +0300 Message-ID: <83y1vskq5e.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28171"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57179@debbugs.gnu.org To: Andrea Greselin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 13 19:31:34 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 1oMuz0-0007C7-9o for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Aug 2022 19:31:34 +0200 Original-Received: from localhost ([::1]:35358 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oMuyy-0000mg-NF for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Aug 2022 13:31:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMuyV-0000lS-LS for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 13:31:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45281) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oMuyU-0006Is-8W for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 13:31:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oMuyU-0007E8-49 for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2022 13:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Aug 2022 17:31:02 +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.166041183527746 (code B ref 57179); Sat, 13 Aug 2022 17:31:02 +0000 Original-Received: (at 57179) by debbugs.gnu.org; 13 Aug 2022 17:30:35 +0000 Original-Received: from localhost ([127.0.0.1]:35030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMuy3-0007DR-JT for submit@debbugs.gnu.org; Sat, 13 Aug 2022 13:30:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oMuy1-0007D5-7L for 57179@debbugs.gnu.org; Sat, 13 Aug 2022 13:30:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54342) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMuxw-0006Cv-0v; Sat, 13 Aug 2022 13:30:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=ZThNYyfDS8vfKtqgynLxkwTSmU0Oc70nhrB1PEn5H7o=; b=h30UxMTll3Hq7a0Wy0Ux 97FJFl07HnXxgRrAa3G6vy8fERoOMpvarUacAPIv11vysQm297ih/ZUPNKIGpNj/R8tFYhGEYfxGK movWMSBMfQlDaRSlmVZDE19hC4nhKwPxHVUAV6UX64aLBqHe0N0G5JjnhS8SoW5JA6l2aJltYAs6o gjckNfcjz/T5DvHzdEKC+32T4sr9Vq2HOwUpoQQyGN0AK78gem+GpJvmvYCjEwF+25hJ6hWFoAr7H gCHvhUIsjItzFKX7NlOeO4HHoxIP9MpMNU7XmDr0HVT9+6okbG7nTizMHOpPW4bUNX6Q0k56wI7Q8 hh2kzASgz3Iv4Q==; Original-Received: from [87.69.77.57] (port=3785 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oMuxs-0006MR-AV; Sat, 13 Aug 2022 13:30:27 -0400 In-Reply-To: (message from Andrea Greselin on Sat, 13 Aug 2022 18:17:54 +0200) 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:239575 Archived-At: > From: Andrea Greselin > Date: Sat, 13 Aug 2022 18:17:54 +0200 > > It's worked until I upgraded from v. 28.1 (from Fedora’s repos) to > 29.0.50 (commit 6de88b6b02). Now I get > > Error in window-scroll-functions (my-recenter-after-jump): > (wrong-number-of-arguments (lambda (window _window-start-after) "Recenter > the point after a non-scroll command brings it out of view. > This function is meant to be called from the hook > ‘window-scroll-functions’." (let ((save-selected-window--state > (internal--before-with-selected-window window))) (save-current-buffer > (unwind-protect (progn (select-window (car save-selected-window--state) 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.