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: Fri, 05 Jun 2020 08:44:03 -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> <8e691d13-8db0-2066-8725-ea8afab7c506@cs.ucla.edu> <94615cb2-9eda-7c1d-e55c-f89e007cac80@gmail.com> <8ad00be2-c789-df59-92f9-35a3448d51fd@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="120889"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: =?windows-1252?Q?Cl=E9ment?= Pit-Claudel , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 05 14:44:39 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 1jhBiA-000VK4-7G for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Jun 2020 14:44:38 +0200 Original-Received: from localhost ([::1]:56034 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhBi9-00062u-8g for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Jun 2020 08:44:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhBhh-0005cN-PS for emacs-devel@gnu.org; Fri, 05 Jun 2020 08:44:09 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:28714) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhBhg-0002ql-CT for emacs-devel@gnu.org; Fri, 05 Jun 2020 08:44:08 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id BB79B10033A; Fri, 5 Jun 2020 08:44:06 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id AC1D910024D; Fri, 5 Jun 2020 08:44:04 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1591361044; bh=ijTkjwdBR9P+v2f5jrjhoq7cB9Ri49BmMWXjz1/ucH8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Lfg+CB/f7hO4DQRy4ELr8PEELheQF4dbPE8GapSkQw0zXocaRnvg3HGVyIPuOke9S 1JXl5jxyhMwy3hFN3NGIY218P9WQZiYmyeamHcJLVbmLKi3MPY5xDvW/fpB7dkU0JJ OgpCZRisIhVItn+QMy5BKswOPa4YJBFh3G6Tbe+kp74K/G2jlY8Zpv9nhlNY/UnO29 ADq7u6VD4BUfROJuaxOIVJhj8MNJ4tfvuKMcGBNEFw2DVCAR8yCDw7tUHp+TidKgaK Nl05WA0lZgIpcCOxjBzi3034dfgszaYnf32/J5IESAjgdXYMczSwSAbDsKgOgVpFis ptMwjZCgmhhTw== Original-Received: from alfajor (unknown [157.52.17.179]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 77C88120732; Fri, 5 Jun 2020 08:44:04 -0400 (EDT) In-Reply-To: <8ad00be2-c789-df59-92f9-35a3448d51fd@cs.ucla.edu> (Paul Eggert's message of "Thu, 4 Jun 2020 23:44:59 -0700") 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/05 08:44:07 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:251892 Archived-At: > If memory serves, it wasn't that long ago that the Elisp interpreter prevented > you from doing that sort of funny business on propertized string constants (at > least when they were in pure space), AFAIK there aren't any propertized strings in purespace, because `purecopy` doesn't copy the properties: static Lisp_Object purecopy (Lisp_Object obj) { if (FIXNUMP (obj) || (! SYMBOLP (obj) && PURE_P (XPNTR (obj))) || SUBRP (obj)) return obj; /* Already pure. */ if (STRINGP (obj) && XSTRING (obj)->u.s.intervals) message_with_string ("Dropping text-properties while making string `%s' pure", obj, true); -- Stefan