GNU bug report logs - #79330
misleading ring-convert-sequence-to-ring

Previous Next

Package: emacs;

Reported by: Liu Hui <liuhui1610 <at> gmail.com>

Date: Thu, 28 Aug 2025 10:48:02 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Liu Hui <liuhui1610 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: misleading ring-convert-sequence-to-ring
Date: Thu, 28 Aug 2025 18:47:00 +0800
The docstring of ring-convert-sequence-to-ring says it "convert
sequence SEQ to a ring", but it actually ignores any item equal to the
first item, which is not mentioned:

ELISP> (ring-convert-sequence-to-ring '(a a a))
(2 1 . [nil nil a])

ELISP> (ring-convert-sequence-to-ring '(a b c a b c))
(1 5 . [nil c b c b a])

I think either the function or the docstring need to be fixed.




This bug report was last modified 3 days ago.

Previous Next


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