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#33998: 27.0.50; cl-delete does not delete the first list element Date: Mon, 7 Jan 2019 09:28:54 -0800 (PST) Message-ID: References: <87muodud4d.fsf@aia00054aia.gr> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1546882091 29726 195.159.176.226 (7 Jan 2019 17:28:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2019 17:28:11 +0000 (UTC) Cc: 33998@debbugs.gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= , Deus Max Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 07 18:28:06 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ggYh4-0007bw-B1 for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Jan 2019 18:28:06 +0100 Original-Received: from localhost ([127.0.0.1]:56561 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggYjA-0006sH-Tv for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Jan 2019 12:30:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggYj0-0006q4-3Z for bug-gnu-emacs@gnu.org; Mon, 07 Jan 2019 12:30:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ggYix-0008Dn-2I for bug-gnu-emacs@gnu.org; Mon, 07 Jan 2019 12:30:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49635) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ggYiw-0008Cc-U8 for bug-gnu-emacs@gnu.org; Mon, 07 Jan 2019 12:30:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ggYiw-0001p1-K1 for bug-gnu-emacs@gnu.org; Mon, 07 Jan 2019 12:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Jan 2019 17:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33998 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33998-submit@debbugs.gnu.org id=B33998.15468821456906 (code B ref 33998); Mon, 07 Jan 2019 17:30:02 +0000 Original-Received: (at 33998) by debbugs.gnu.org; 7 Jan 2019 17:29:05 +0000 Original-Received: from localhost ([127.0.0.1]:48916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ggYi1-0001nK-6D for submit@debbugs.gnu.org; Mon, 07 Jan 2019 12:29:05 -0500 Original-Received: from userp2130.oracle.com ([156.151.31.86]:55960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ggYhz-0001mk-PM for 33998@debbugs.gnu.org; Mon, 07 Jan 2019 12:29:04 -0500 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x07H9k5P061237; Mon, 7 Jan 2019 17:28:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=9k0uxrc9H504PUs7KqvDqhwPu1iZWYY1v8Hsx+VTDAs=; b=VAUCvvV0tcSiLOzOlSx4vmVGJZUK8B0e+YcfNODo9G9tRYlhlSyQYLAbwP4QQzyHyGoI o8G4ErDWowrZrcgkDeexTArtEjWVCClCPy2JljhXEDJMBecW9vm81st/aEbqhz2hvKsu O/MC+cX4o98YbExbtBIw37yfRHFMcpO+4LWbsaM+ARyvRi95WzWW3lUSlUT9wP6459ln P3TuY8lY+E/gTy3odau0ilP5KLr6qX7SKGTthom7JwNEq9KmPKoxjinUsycr6j2DaYk2 xjH3EJNDRcVXa5CLa7m/5LAXxfJFW8f/0kJU3r00O1LJlukxgwFy1F9y19mVpHdSpuGP Eg== Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2ptm0ty431-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 07 Jan 2019 17:28:57 +0000 Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x07HSuGQ002515 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 7 Jan 2019 17:28:56 GMT Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x07HStl0002687; Mon, 7 Jan 2019 17:28:55 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4783.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9129 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=787 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901070149 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: 209.51.188.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:154225 Archived-At: > So, cumbersome as it is, you should always use: ^^^^^^^^^^^^^ > (setq seq (cl-delete thing seq)) FWIW, this is not really true. `cl-delete' deletes THING from the _value_ of SEQ. You might or you might not want variable SEQ to have the updated value. A variable and its value are two different things. IOW, that's one common, and important, use case, but this is not some always-do-this rule for users. The manual takes pains to explain this stuff carefully. It's better to just refer to the manual to help users understand it. (And you did that, which is great.)