From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Kevin Vigouroux via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#40671: [DOC] modify literal objects Date: Thu, 16 Apr 2020 21:28:03 +0200 Message-ID: <87v9lzmdrw.fsf@laposte.net> Reply-To: Kevin Vigouroux Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="98829"; mail-complaints-to="usenet@ciao.gmane.io" To: 40671@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 16 22:40:22 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPBJ8-000PcZ-3i for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Apr 2020 22:40:22 +0200 Original-Received: from localhost ([::1]:39112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPBJ7-0004Fp-4F for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Apr 2020 16:40:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32892) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPBIp-0004CM-Ol for bug-gnu-emacs@gnu.org; Thu, 16 Apr 2020 16:40:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jPBIo-0005r1-LM for bug-gnu-emacs@gnu.org; Thu, 16 Apr 2020 16:40:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56135) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jPBIo-0005qg-99 for bug-gnu-emacs@gnu.org; Thu, 16 Apr 2020 16:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jPBIo-0006RX-6t for bug-gnu-emacs@gnu.org; Thu, 16 Apr 2020 16:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kevin Vigouroux Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Apr 2020 20:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40671 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158706957724731 (code B ref -1); Thu, 16 Apr 2020 20:40:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Apr 2020 20:39:37 +0000 Original-Received: from localhost ([127.0.0.1]:39448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPBIO-0006Qo-7a for submit@debbugs.gnu.org; Thu, 16 Apr 2020 16:39:37 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:49510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPABO-0004ek-Jr for submit@debbugs.gnu.org; Thu, 16 Apr 2020 15:28:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51971) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPABM-0002Lt-Tn for bug-gnu-emacs@gnu.org; Thu, 16 Apr 2020 15:28:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jPABJ-0001rO-DB for bug-gnu-emacs@gnu.org; Thu, 16 Apr 2020 15:28:14 -0400 Original-Received: from smtpoutz22.laposte.net ([194.117.213.97]:37395 helo=smtp.laposte.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jPABI-0001mD-UF for bug-gnu-emacs@gnu.org; Thu, 16 Apr 2020 15:28:13 -0400 Original-Received: from smtp.laposte.net (localhost [127.0.0.1]) by lpn-prd-vrout010 (Postfix) with ESMTP id 89DA84B241E for ; Thu, 16 Apr 2020 21:28:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=laposte.net; s=mail0; t=1587065284; bh=q8KfU+TIs9FYwEGP4OnsPMQdzi+dztG0Ta4pxZLbg78=; h=From:To:Subject:Date; b=YG+Jjg/15ql/9awHgu5xwqFrKWiNHQQt5X3m9L4gJ+CJ5SGNOJlkyPICpkvlOm7sT JXu5psFJtMUFkwMyERt5gK/GvlVw7ogsaXmE6YPO+e45286D5DFfwOz4PNjdBdjPzm t4J9jwHLSElAcfxiWTpDF9H9Nn8+AgGtGR9KinXiTd8H5rKwsbeuu9Y+G44UrDzV6C dhaRstWjgDF3Wb0MW9RQ3/hXTBn/Au9NlJ5YQE2sjhsFYNTroggtPqoqQdewFGFVUz aC99I22iOA8MkQGnTYR85uzPg2XCNnJ5072uFphaJbCBNTj/G5dsIzxq2wEeXzvgUS 2AOXF93yIlVlQ== Original-Received: from outgoing-mail.laposte.net (unknown [10.94.128.98]) by lpn-prd-vrout010 (Postfix) with ESMTP id 842114B241C for ; Thu, 16 Apr 2020 21:28:04 +0200 (CEST) Original-Received: from outgoing-mail.laposte.net (localhost.localdomain [127.0.0.1]) by mlpnf0119.laposte.net (SMTP Server) with ESMTP id 4938QD3YZpz1qqj0 for ; Thu, 16 Apr 2020 21:28:04 +0200 (CEST) X-ppbforward: {"queueID":"4938QD3YZpz1qqj0","server":"mlpnf0119"} X-mail-filterd: 0.4.0.2 X-mail-filterd: 0.4.0.2 X-ppbforward: {"queueID":"4938QD27Vvz1qqhy","server":"mlpnf0119"} X-lpn-spamrating: 40 X-lpn-spamlevel: not-spam X-lpn-spamcause: OK, (0)(0000)gggruggvucftvghtrhhoucdtuddrgeduhedrfeehgddufeeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecunfetrffquffvgfdpqfgfvfdpggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehttdertddttddtnecuhfhrohhmpefmvghvihhnucggihhgohhurhhouhiguceokhgvrdhvihhgohhurhhouhigsehlrghpohhsthgvrdhnvghtqeenucffohhmrghinhepshhtrggtkhgvgigthhgrnhhgvgdrtghomhenucfkphepledtrdefvddrudduiedrfedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghlohepsghluhgvmhgrnhdpihhnvghtpeeltddrfedvrdduudeirdeftddpmhgrihhlfhhrohhmpehkvgdrvhhighhouhhrohhugieslhgrphhoshhtvgdrnhgvthdprhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhg X-lpn-mailing: LEGIT Original-Received: from blueman (arennes-256-1-117-30.w90-32.abo.wanadoo.fr [90.32.116.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mlpnf0119.laposte.net (SMTP Server) with ESMTPSA id 4938QD27Vvz1qqhy for ; Thu, 16 Apr 2020 21:28:04 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Mailman-Approved-At: Thu, 16 Apr 2020 16:39:35 -0400 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:178477 Archived-At: Hello! The Emacs Lisp manual often gives the impression that the user can modify literal lists (e.g. 5.6.1 Altering List Elements with `setcar`). LISP> (setq x '(1 2)) (1 2) LISP> (setcar x 4) LISP> x (4 2) However, it is also mentioned that one should not modify the literal objects because of the byte compilation (c.f. 2.7 Equality Predicate). Can we modify literal objects? See Also: https://emacs.stackexchange.com/questions/45820/when-to-use-quote-for-lists-modifying-quoted-lists-in-elisp https://emacs.stackexchange.com/questions/57806/which-lisp-objects-are-byte-compiled Best regards, Kevin Vigouroux.