From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#54842: 28.1; Args out of range: 0, 0 Date: Sun, 10 Apr 2022 21:06:26 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29697"; mail-complaints-to="usenet@ciao.gmane.io" To: 54842@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 10 21:05:52 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 1ndcsi-0007YW-Fu for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Apr 2022 21:05:52 +0200 Original-Received: from localhost ([::1]:42742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndcsh-000801-3f for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Apr 2022 15:05:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58766) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndcru-0007zM-RN for bug-gnu-emacs@gnu.org; Sun, 10 Apr 2022 15:05:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47611) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ndcru-0007Su-5D for bug-gnu-emacs@gnu.org; Sun, 10 Apr 2022 15:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ndcrt-0005wl-Vy for bug-gnu-emacs@gnu.org; Sun, 10 Apr 2022 15:05:01 -0400 X-Loop: help-debbugs@gnu.org 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-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164961748222826 (code B ref -1); Sun, 10 Apr 2022 19:05:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Apr 2022 19:04:42 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) Original-Received: by mts-Mac-mini.localdomain (Postfix, from userid 501) id CC9341CEE68F; Sun, 10 Apr 2022 21:06:26 +0200 (CEST) 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-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:229682 Archived-At: 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