From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#28627: 24.5; doc of `copy-sequence' Date: Sat, 30 Sep 2017 06:44:47 -0700 (PDT) Message-ID: <22d8099a-7e00-4155-8979-2c42318c0788@default> References: <> <<83h8vk49sw.fsf@gnu.org>> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1506779115 5089 195.159.176.226 (30 Sep 2017 13:45:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 30 Sep 2017 13:45:15 +0000 (UTC) Cc: 28627-done@debbugs.gnu.org To: Eli Zaretskii , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 30 15:45:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyI4o-0000b1-BX for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Sep 2017 15:45:06 +0200 Original-Received: from localhost ([::1]:39381 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dyI4u-0004H0-3B for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Sep 2017 09:45:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dyI4l-0004Gl-LX for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2017 09:45:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dyI4k-0008MD-4e for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2017 09:45:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59728) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dyI4k-0008M7-1w for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2017 09:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dyI4j-0003fU-Rr for bug-gnu-emacs@gnu.org; Sat, 30 Sep 2017 09:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Sep 2017 13:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28627 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28627-done@debbugs.gnu.org id=D28627.150677909714077 (code D ref 28627); Sat, 30 Sep 2017 13:45:01 +0000 Original-Received: (at 28627-done) by debbugs.gnu.org; 30 Sep 2017 13:44:57 +0000 Original-Received: from localhost ([127.0.0.1]:40176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyI4f-0003ey-5B for submit@debbugs.gnu.org; Sat, 30 Sep 2017 09:44:57 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:39476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyI4d-0003em-G7 for 28627-done@debbugs.gnu.org; Sat, 30 Sep 2017 09:44:55 -0400 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v8UDinID029821 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 30 Sep 2017 13:44:49 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v8UDim9w027857 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 30 Sep 2017 13:44:48 GMT Original-Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id v8UDimFB027516; Sat, 30 Sep 2017 13:44:48 GMT In-Reply-To: <<83h8vk49sw.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4588.0 (x86)] X-Source-IP: userv0022.oracle.com [156.151.31.74] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137682 Archived-At: > > 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. >=20 > 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.