From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: =?UTF-8?Q?Re=3a_master_3139551=3a_Don=e2=80=99t_attempt_to_modify_c?= =?UTF-8?Q?onstant_strings?= Date: Mon, 18 May 2020 00:54:34 +0300 Message-ID: References: <20200517052512.20679.37725@vcs0.savannah.gnu.org> <20200517052513.C95BC20A2C@vcs0.savannah.gnu.org> <20162b4a-3527-5c5d-3b7f-fb0e67a70d88@yandex.ru> <02b0ee0f-c386-f51a-f8d2-ef338fcec1bc@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="13401"; 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: emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 18 00:02:08 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 1jaRMF-0003Mz-Vy for ged-emacs-devel@m.gmane-mx.org; Mon, 18 May 2020 00:02:07 +0200 Original-Received: from localhost ([::1]:46244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jaRME-0002oA-Qs for ged-emacs-devel@m.gmane-mx.org; Sun, 17 May 2020 18:02:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33510) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaRF2-0000PK-5h for emacs-devel@gnu.org; Sun, 17 May 2020 17:54:41 -0400 Original-Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:35415) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jaRF1-0004bl-5G for emacs-devel@gnu.org; Sun, 17 May 2020 17:54:39 -0400 Original-Received: by mail-wr1-x42e.google.com with SMTP id j5so9623690wrq.2 for ; Sun, 17 May 2020 14:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=C8ATXLm68+F8nDnj6sdgWXk+XPdCYHOGC/2ojotxQY8=; b=Ku6UcjFUCkzp8Gp1kI7VVr7YZICkzppSrW3pvEUlfuNSo+yrY9/xmBu/Giex0iTYUR yFo+V03DQJ+nNxqkj1eOOW02a7W08qE6B8Wm2dZoHWZOc6T7Gp0fsAsofJi2BS4pSdZW wYLyDW3hx9r7PgIyHdDce97Xu9CQKoCBRj1U4d6Nn2ksxU1eVYQMQuQx2dH6EYT6qHT3 ShVADdoCINM10UFyFX2I8gmuBcYL7w6iMg7Jf0v18M7BKw4vv3CVVcYXQNBVRsSkARUm v8NfyTdB5i9yKLKPqWvN5DjC1cBF0L7tysZx0+wF6x5VJFNqA7RJOE443SjWkK2k5tq6 fsSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=C8ATXLm68+F8nDnj6sdgWXk+XPdCYHOGC/2ojotxQY8=; b=E7crTojNkXDRJlRSGxPxvRNIxBHKiPrHfoZDJY+7T/UMwIwNhkOw32Cl1RvB4mQ1lj WlnJDDTrSoEnyM6kwIZKRq1uyDyrx6oQzmit/Q8PijC2G1MTkpvGwmiMSqPfuuAcovKj iybqRT5pw4tEWws3Jgw0/2LbM6kqMtKZGE3stRDONXn5vUPJELbso5EylnL3DfQPIL3C KeHThCjorEOsPBxjuG+6q7BHq/wyxVfHZNS4OnE1yilheVh3P/LDpPYEPPd6fhtGmBNh rTImtblQbZdg0lNFJSlC5hfPs7HwLlE5OeGYjeytwUYM+oQytKjz5TDeT44h/3naiGwu lLpQ== X-Gm-Message-State: AOAM530ByMAJ5zu1udq+KwYC+vnPj69pCX/sVL3mLLZgzCmJj46CqFsu 8Kcb3TldYx/S9ipKzAEOBwpOdrE/4fg= X-Google-Smtp-Source: ABdhPJxKD1N40hTor5XAfTJBfaE+DmT0BgRp1hJDvblWmmnEVa7QatZhE9pXFeejWZSEfDKiX1Zw/g== X-Received: by 2002:adf:de05:: with SMTP id b5mr15900128wrm.299.1589752477437; Sun, 17 May 2020 14:54:37 -0700 (PDT) Original-Received: from [192.168.0.3] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id f123sm13923409wmf.44.2020.05.17.14.54.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 17 May 2020 14:54:37 -0700 (PDT) In-Reply-To: <02b0ee0f-c386-f51a-f8d2-ef338fcec1bc@cs.ucla.edu> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=raaahh@gmail.com; helo=mail-wr1-x42e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-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:250675 Archived-At: On 18.05.2020 00:36, Paul Eggert wrote: >> A cache normally doesn't mutate the values, it only holds on to them. > This cache mutates its values, unfortunately. Perhaps it should call (copy-sequence val) itself, then? That would be a good development practice.