From: Markus Triska <triska@metalevel.at>
To: 54842@debbugs.gnu.org
Subject: bug#54842: 28.1; Args out of range: 0, 0
Date: Sun, 10 Apr 2022 21:06:26 +0200 [thread overview]
Message-ID: <m2wnfwu5al.fsf@metalevel.at> (raw)
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
next reply other threads:[~2022-04-10 19:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-10 19:06 Markus Triska [this message]
2022-04-11 10:41 ` bug#54842: 28.1; Args out of range: 0, 0 Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2wnfwu5al.fsf@metalevel.at \
--to=triska@metalevel.at \
--cc=54842@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).