From unknown Tue Aug 19 03:00:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54842: 28.1; Args out of range: 0, 0 Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Apr 2022 19:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54842 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 54842@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164961748222826 (code B ref -1); Sun, 10 Apr 2022 19:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Apr 2022 19:04:42 +0000 Received: from localhost ([127.0.0.1]:41508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndcrZ-0005w6-RX for submit@debbugs.gnu.org; Sun, 10 Apr 2022 15:04:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:58484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndcrZ-0005vz-Be for submit@debbugs.gnu.org; Sun, 10 Apr 2022 15:04:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndcrZ-0007xE-7H for bug-gnu-emacs@gnu.org; Sun, 10 Apr 2022 15:04:41 -0400 Received: from [78.47.144.35] (port=44624 helo=metalevel.at) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndcrX-0007QV-A2 for bug-gnu-emacs@gnu.org; Sun, 10 Apr 2022 15:04:40 -0400 Received: from mts-Mac-mini.localdomain (localhost [127.0.0.1]) by metalevel.at (Postfix) with ESMTP id 27B619C74C for ; Sun, 10 Apr 2022 21:04:36 +0200 (CEST) Received: by mts-Mac-mini.localdomain (Postfix, from userid 501) id CC9341CEE68F; Sun, 10 Apr 2022 21:06:26 +0200 (CEST) From: Markus Triska Date: Sun, 10 Apr 2022 21:06:26 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 78.47.144.35 (failed) Received-SPF: none client-ip=78.47.144.35; envelope-from=triska@metalevel.at; helo=metalevel.at X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) To reproduce this issue, please start Emacs with: $ emacs -Q --eval '(setq kill-ring-max 0)' And, in the then arising *scratch* buffer, do: C-p C-p C-k C-k Resulting in the error: Args out of range: 0, 0 This used to work without error in Emacs 26.1 and earlier. I think the regression was introduced in commit 74ff5ade800, where, in simple.el, the test: (= (length cur) 0) was replaced by: (string= cur "") The former test works also if cur is nil, whereas the latter and now current test raises the above mentioned error if cur is nil. If possible, could you restore the previous behaviour, so that Emacs again works reliably in such cases? Thank you and all the best! Markus In GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu) of 2022-04-10 built on mt-computer System Description: Debian Configured using: 'configure --with-x-toolkit=no --with-gif=ifavailable --with-tiff=ifavailable --with-gnutls=ifavailable' Configured features: FREETYPE GMP JPEG MODULES NOTIFY INOTIFY OLDXMENU PDUMPER PNG SECCOMP SOUND THREADS X11 XDBE XFT XIM XPM ZLIB From unknown Tue Aug 19 03:00:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#54842: 28.1; Args out of range: 0, 0 Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Apr 2022 10:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54842 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Markus Triska Cc: 54842@debbugs.gnu.org Received: via spool by 54842-submit@debbugs.gnu.org id=B54842.164967369815646 (code B ref 54842); Mon, 11 Apr 2022 10:42:02 +0000 Received: (at 54842) by debbugs.gnu.org; 11 Apr 2022 10:41:38 +0000 Received: from localhost ([127.0.0.1]:42690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndrUI-00044I-2X for submit@debbugs.gnu.org; Mon, 11 Apr 2022 06:41:38 -0400 Received: from quimby.gnus.org ([95.216.78.240]:34718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndrUG-000444-KI for 54842@debbugs.gnu.org; Mon, 11 Apr 2022 06:41:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=F0eRkIh+hXsZxqMq3CtUzr01BddsN5ra5YxY7qJmb/Q=; b=Dn/9eCPvXnKpDXepyB3bjMJjth azPR1+VXPaTjmD0LhKapW5Vdh8Sd2VVeXoIpwCcuRNM4pft0ws9efsKYM4ybYWTEBrPgTUdWG6oBM u5FweTdwUvSPF4pF386+oKc4sFBUbbZBYK4MwVss5UUvFtBg4uQFizbU76kUIxZEJUXc=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ndrU7-0001yP-U6; Mon, 11 Apr 2022 12:41:30 +0200 From: Lars Ingebrigtsen References: Date: Mon, 11 Apr 2022 12:41:25 +0200 In-Reply-To: (Markus Triska's message of "Sun, 10 Apr 2022 21:06:26 +0200") Message-ID: <87o817c36y.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Markus Triska writes: > This used to work without error in Emacs 26.1 and earlier. I think the > regression was introduced in commit 74ff5ade800, where, in simple.el, > the test: > > (= (length cur) 0) > > was replaced by: [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Markus Triska writes: > This used to work without error in Emacs 26.1 and earlier. I think the > regression was introduced in commit 74ff5ade800, where, in simple.el, > the test: > > (= (length cur) 0) > > was replaced by: > > (string= cur "") > > The former test works also if cur is nil, whereas the latter and now > current test raises the above mentioned error if cur is nil. > > If possible, could you restore the previous behaviour, so that Emacs > again works reliably in such cases? Yup; I've now made that fix on the emacs-28 branch, so it'll be in Emacs 28.2. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 11 06:41:44 2022 Received: (at control) by debbugs.gnu.org; 11 Apr 2022 10:41:44 +0000 Received: from localhost ([127.0.0.1]:42693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndrUO-00044Z-B3 for submit@debbugs.gnu.org; Mon, 11 Apr 2022 06:41:44 -0400 Received: from quimby.gnus.org ([95.216.78.240]:34732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ndrUM-00044G-Mg for control@debbugs.gnu.org; Mon, 11 Apr 2022 06:41:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=zIqzGWt1TmyNkaYyT237EzNYpvjp30+PG19aks6Y54U=; b=sXamURL3sTlrzPkT9ausVDFyQ5 /qrWK+9CMJThN7rInUAIIq0oHXPfMpLhvgozgr6XkQGHsf6QCsBNzPzll0+GppQ2wC0ntRnRkoEv9 /xWE/LHzjisuemeIfk/+sXwL9XNy1Zu20C1Bl9k17bteJU2ns/mYJrWP64/Q79BWRD1w=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ndrUE-0001yZ-VO for control@debbugs.gnu.org; Mon, 11 Apr 2022 12:41:36 +0200 Date: Mon, 11 Apr 2022 12:41:34 +0200 Message-Id: <87mtgrc36p.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #54842 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 54842 28.2 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 54842 28.2 quit