GNU bug report logs - #54842
28.1; Args out of range: 0, 0

Previous Next

Package: emacs;

Reported by: Markus Triska <triska <at> metalevel.at>

Date: Sun, 10 Apr 2022 19:05:01 UTC

Severity: normal

Found in version 28.1

Fixed in version 28.2

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Markus Triska <triska <at> metalevel.at>
Cc: 54842 <at> debbugs.gnu.org
Subject: bug#54842: 28.1; Args out of range: 0, 0
Date: Mon, 11 Apr 2022 12:41:25 +0200
Markus Triska <triska <at> metalevel.at> 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




This bug report was last modified 3 years and 102 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.