GNU bug report logs - #28627
24.5; doc of `copy-sequence'

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Wed, 27 Sep 2017 20:41:01 UTC

Severity: minor

Found in version 24.5

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 28627-done <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Eli Zaretskii <eliz <at> gnu.org>, Drew Adams <drew.adams <at> oracle.com>
Cc: 28627-done <at> debbugs.gnu.org
Subject: RE: bug#28627: 24.5; doc of `copy-sequence'
Date: Sat, 30 Sep 2017 06:44:47 -0700 (PDT)
> > The doc should make clear that there is only one empty-sequence object,
> > for each type of sequence.  In particular, `copy-sequence' does not
> > create a new sequence object if the sequence is empty.
> 
> Thanks.  I didn't feel we should guarantee what we have in the current
> implementation, especially as describing all the details might be
> tedious (does "vectors" include bool-vector or doesn't it?).  So I
> just added a vague statement that copying an empty object may yield
> the same object.  I think this is enough for Lisp programmers to
> produce a valid and future-proof code.

I agree.  What is important is to amend or remove the general
Statement that it always returns a copy of the sequence.

We could (or not) also stipulate that some sequence types have
only one empty-sequence object, which is what `copy-sequence'
returns for that sequence type.




This bug report was last modified 7 years and 289 days ago.

Previous Next


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