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: master f51f963: Fix some side-effecting uses of make-text-button Date: Sun, 07 Jun 2020 11:24:15 -0400 Message-ID: References: <20200604223056.17078.81265@vcs0.savannah.gnu.org> <20200604223058.1850020A26@vcs0.savannah.gnu.org> <87eeqtiy4x.fsf@tcd.ie> <87img51y04.fsf@gmail.com> <5c66eeb5-a513-0443-4316-e41aae118677@cs.ucla.edu> <87img4zjy7.fsf@gmail.com> <170bedfa-7119-4d6a-9d4f-e94ba0f7cc2b@default> <87pnacxbnk.fsf@gmail.com> <205da0f6-2d15-249f-d1e2-ad1ae31002e6@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="89400"; 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" , Drew Adams , Pip Cet , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 07 17:25:00 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 1jhxAR-000N9F-Lz for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Jun 2020 17:24:59 +0200 Original-Received: from localhost ([::1]:52010 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhxAQ-0002Ck-Og for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Jun 2020 11:24:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhx9y-0001lr-RH for emacs-devel@gnu.org; Sun, 07 Jun 2020 11:24:30 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:45262) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhx9x-0006ts-Fb for emacs-devel@gnu.org; Sun, 07 Jun 2020 11:24:30 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 4AE6E1002C8; Sun, 7 Jun 2020 11:24:27 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 82F83100257; Sun, 7 Jun 2020 11:24:21 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1591543461; bh=5obJZWlckIEXzY6oCvCIioWB9bF5Ano5+W1zQBgZnJM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=kEWpUCbMgz3NPWTY0JvWgiYsxACCT+uL9ykzoE3vtsUQo16lpvcXFvUvt6yS4lOA5 iaGNGO49K1jJt0A92HtcK/h7V/u85ORrpw9RZ4+0Kw7+ZDwrQtWOb1AjpPY/qqBAOn C4R0vcMuDJa/t/8JcMpw6g7NNzCCu9zwIADcU23VM1/mg5WU8YTxx1cl+ycYeGK39P ZCCDANrfFSUgdTVDWGQnOIw8jL+8gsHZIsH+HrA8CcyUKnvBBLlacVrOjvpLDCMWRI mrWf6K3arS9GgCkt2CbzVMmOXPfJbF5AQkv/lhvZUUC+gJAe7BrQ0lhoT5Rq9+ZzFr qjzVM1qzQRhtQ== Original-Received: from alfajor (unknown [157.52.17.179]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 2DABC120480; Sun, 7 Jun 2020 11:24:21 -0400 (EDT) In-Reply-To: <205da0f6-2d15-249f-d1e2-ad1ae31002e6@cs.ucla.edu> (Paul Eggert's message of "Sat, 6 Jun 2020 18:40:17 -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/07 11:24:27 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:252012 Archived-At: >> That makes me think there's been a fairly concrete proposal that has >> been made and which I missed (since otherwise, it seems unclear how >> you'd get to these conclusions). Can someone point me to it? > There's no concrete proposal yet, in terms of published code. That being said, > my idea is to change the Elisp interpreter to distinguish constant from mutable > strings, and to have a runtime check in the few primitives (notably aset) that > modify strings. Right, this loos like the easy part. > String literals yield constant strings when evaluated. This seems less obvious. How do you do that? [ I terms of semantics, I guess for strings it's fine but I can imagine some surprises if we try to apply the same idea to some other literals. ] Stefan