From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#40671: [DOC] modify literal objects Date: Tue, 28 Apr 2020 01:17:46 -0700 Organization: UCLA Computer Science Department Message-ID: <10b89e6f-6fa6-f855-65b6-3361a74472d3@cs.ucla.edu> References: <87o8rnasfk.fsf@web.de> <9e6c138d-cb9f-6075-34df-a8d1d931343b@cs.ucla.edu> <871rofxbz9.fsf@web.de> <93463227-33a8-85a0-fd19-8b29b75997f3@yandex.ru> <969b3497-0afd-d104-6792-d744d31548fa@cs.ucla.edu> <2935ec84-bdea-2e20-01b9-8ed08cc61c6c@yandex.ru> <669981e5-f601-5c18-1a8b-ee316ad001ec@cs.ucla.edu> <4b8b7e98-029e-58ac-59ff-6cd984b7eb85@yandex.ru> <530d3597-aaaa-f019-bafa-8229d13e7248@yandex.ru> <60b88f52-c50d-c57a-9ce5-495e6157d36e@cs.ucla.edu> <0721d8c1-4fe3-335c-7dbc-171487cb648a@yandex.ru> <6d1015da-0dc1-376c-f84b-5e3ee3149213@cs.ucla.edu> <286139d2-bbe1-2d5a-bec1-f781666376f1@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="121549"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cc: Michael Heerdegen , Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , ke.vigouroux@laposte.net, 40671@debbugs.gnu.org, Richard Stallman To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 28 10:54:24 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 1jTM0W-000VSK-4d for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Apr 2020 10:54:24 +0200 Original-Received: from localhost ([::1]:47354 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTM0U-000552-TU for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Apr 2020 04:54:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53344) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTLwJ-0003ms-Mg for bug-gnu-emacs@gnu.org; Tue, 28 Apr 2020 04:52:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTLvS-0004kG-Ta for bug-gnu-emacs@gnu.org; Tue, 28 Apr 2020 04:50:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55486) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTLRJ-0003fU-TK for bug-gnu-emacs@gnu.org; Tue, 28 Apr 2020 04:18:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jTLRJ-0007bd-NP for bug-gnu-emacs@gnu.org; Tue, 28 Apr 2020 04:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Apr 2020 08:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40671 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 40671-submit@debbugs.gnu.org id=B40671.158806187929229 (code B ref 40671); Tue, 28 Apr 2020 08:18:01 +0000 Original-Received: (at 40671) by debbugs.gnu.org; 28 Apr 2020 08:17:59 +0000 Original-Received: from localhost ([127.0.0.1]:38799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTLRG-0007bN-Uz for submit@debbugs.gnu.org; Tue, 28 Apr 2020 04:17:59 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:46620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTLRB-0007b5-7c for 40671@debbugs.gnu.org; Tue, 28 Apr 2020 04:17:57 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id BCA21160052; Tue, 28 Apr 2020 01:17:47 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id ZRsU-SqJ8a8I; Tue, 28 Apr 2020 01:17:47 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id E77B516008E; Tue, 28 Apr 2020 01:17:46 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id mXEGtX9Gc7hB; Tue, 28 Apr 2020 01:17:46 -0700 (PDT) Original-Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id B110D160052; Tue, 28 Apr 2020 01:17:46 -0700 (PDT) Autocrypt: addr=eggert@cs.ucla.edu; prefer-encrypt=mutual; keydata= LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCgptUUlOQkV5QWNtUUJFQURB QXlIMnhvVHU3cHBHNUQzYThGTVpFb243NGRDdmM0K3ExWEEySjJ0QnkycHdhVHFmCmhweHhk R0E5Smo1MFVKM1BENGJTVUVnTjh0TFowc2FuNDdsNVhUQUZMaTI0NTZjaVNsNW04c0thSGxH ZHQ5WG0KQUF0bVhxZVpWSVlYL1VGUzk2ZkR6ZjR4aEVtbS95N0xiWUVQUWRVZHh1NDd4QTVL aFRZcDVibHRGM1dZRHoxWQpnZDdneDA3QXV3cDdpdzdlTnZub0RUQWxLQWw4S1lEWnpiRE5D UUdFYnBZM2VmWkl2UGRlSStGV1FONFcra2doCnkrUDZhdTZQcklJaFlyYWV1YTdYRGRiMkxT MWVuM1NzbUUzUWpxZlJxSS9BMnVlOEpNd3N2WGUvV0szOEV6czYKeDc0aVRhcUkzQUZINmls QWhEcXBNbmQvbXNTRVNORnQ3NkRpTzFaS1FNcjlhbVZQa25qZlBtSklTcWRoZ0IxRApsRWR3 MzRzUk9mNlY4bVp3MHhmcVQ2UEtFNDZMY0ZlZnpzMGtiZzRHT1JmOHZqRzJTZjF0azVlVThN Qml5Ti9iClowM2JLTmpOWU1wT0REUVF3dVA4NGtZTGtYMndCeHhNQWhCeHdiRFZadWR6eERa SjFDMlZYdWpDT0pWeHEya2wKakJNOUVUWXVVR3FkNzVBVzJMWHJMdzYrTXVJc0hGQVlBZ1Jy NytLY3dEZ0JBZndoU In-Reply-To: <286139d2-bbe1-2d5a-bec1-f781666376f1@yandex.ru> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:179206 Archived-At: On 4/27/20 8:05 PM, Dmitry Gutov wrote: > I'm not sure which problematic cases you mean, then. Ones related to pu= re space? That's one issue. Earlier versions of Emacs also had trouble if you modif= ied list structures while executing them. I've squashed some of those issues = more recently but would not be surprised if some remain. I don't know how much optimization the byte compiler did in earlier versi= ons, but if it did anything like what it does now, that's also a source of pro= blems. > =C2=A0=C2=A0=C2=A0 Although all numbers are constants and all markers a= re > =C2=A0 mutable, some types contain both constant and mutable members.=C2= =A0 These > =C2=A0 types include conses, vectors, strings, and symbols.=C2=A0 For e= xample, the > =C2=A0 string > =C2=A0 literal @code{"aaa"} yields a constant string, whereas the funct= ion > =C2=A0 call @code{(make-string 3 ?a)} yields a mutable string that can = be > =C2=A0 changed via later calls to @code{aset}. >=20 > It makes one think that 'aset' can't be called on "aaa". That it will e= ither > fail to change the value, or signal an error. Whereas the result is tha= t the > value is changed, no errors or warnings. 'aset' *shouldn't* be called on "aaa". We could replace "a constant string" with "a constant string that should = not be changed"; would that help? > It feels like you're just side-stepping the arguments, one after anothe= r.=20 There's certainly no intent to side-step. And I don't sense that there's = really much disagreement here: we both agree that the current behavior is unfort= unate, the major point of disagreement is about terminology in the documentation= .