From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: 31395511: =?utf-8?Q?=22Don=E2=80=99t?= attempt to modify constant strings" Date: Thu, 04 Jun 2020 17:27:32 -0400 Message-ID: References: <871rmvn7ge.fsf@gmail.com> <87lfl36abx.fsf@gmail.com> <1abe5965-b48e-6dee-1516-c5c233f09d01@cs.ucla.edu> <87d06f5m2c.fsf@gmail.com> <87lfl3f5mj.fsf@tcd.ie> <87k10m4l5v.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="100647"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: "Basil L. Contovounesios" , Paul Eggert , =?windows-1252?B?Sm/jbyBU4XZvcmE=?= , emacs-devel To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 04 23:28:19 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jgxPO-000Q3k-9H for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Jun 2020 23:28:18 +0200 Original-Received: from localhost ([::1]:46512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgxPN-0004YT-BW for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Jun 2020 17:28:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgxOo-0003ug-7q for emacs-devel@gnu.org; Thu, 04 Jun 2020 17:27:42 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:55977) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgxOm-0002St-Kc for emacs-devel@gnu.org; Thu, 04 Jun 2020 17:27:41 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id C37C1100525; Thu, 4 Jun 2020 17:27:38 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 3473C100419; Thu, 4 Jun 2020 17:27:37 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1591306057; bh=OG7H3zR1d5XRTtDPLWgl43MQ+Mu7EJvrrD+4KOgrsBk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=e/TIT49JfOQOiRhOkeJKsPt+1Ino+8Y7aTFfFo2n3b3KlPAhlFIRxYhrWLFbLKG9v +3pWMKkWEn6m/7zR/4tmjcPTtZ4Cb3aXYG+QyArRPP+VywSqP3yVee+6xM4EcUxecK hqqTRE6Xrchxt68qf4XY+mtCy7sw+Dw6KotP03ufqomVmNEkMjlcL7ZhvXp62YtHmX 3iT1yB0ttQMiPVJmmOYtUklkBzpK0dbVpxRDQHumXgPEkyl8lgzH6zOesgpkVLdJis KK9WB7JIWSEu+v7M3NK5IffGLZq09YD1iDF3xP86VmqfPZjbzIblilLeb06E25nlEX MXfaVESBPNyaA== Original-Received: from alfajor (unknown [157.52.19.38]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 80CD3120497; Thu, 4 Jun 2020 17:27:36 -0400 (EDT) In-Reply-To: <87k10m4l5v.fsf@gmail.com> (Pip Cet's message of "Thu, 04 Jun 2020 20:43:08 +0000") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/04 17:27:39 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:251865 Archived-At: > To be honest, I'd prefer a mutablep predicate, with a strong warning not > to use it in the way that was suggested: > > (if (mutablep object) > (do-something object) > (do-something (copy object))) Aka (do-something (if (mutablep object) object (copy object))) Stefan