From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Gemini Lasswell Newsgroups: gmane.emacs.bugs Subject: bug#31688: 26.1.50; Byte compiler confuses two string variables Date: Sat, 02 Jun 2018 15:52:39 -0700 Message-ID: <87o9gsztqg.fsf@runbox.com> References: <87a7sdkrft.fsf@runbox.com> <87po199id0.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1527979931 2131 195.159.176.226 (2 Jun 2018 22:52:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 2 Jun 2018 22:52:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) Cc: 31688@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 03 00:52:07 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPFNW-0000QM-Ln for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jun 2018 00:52:06 +0200 Original-Received: from localhost ([::1]:32988 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPFPc-0004Wr-2p for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Jun 2018 18:54:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPFPS-0004WW-BY for bug-gnu-emacs@gnu.org; Sat, 02 Jun 2018 18:54:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPFPP-0002cN-8k for bug-gnu-emacs@gnu.org; Sat, 02 Jun 2018 18:54:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51736) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fPFPO-0002c8-TS for bug-gnu-emacs@gnu.org; Sat, 02 Jun 2018 18:54:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fPFPO-0008KQ-Eo for bug-gnu-emacs@gnu.org; Sat, 02 Jun 2018 18:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gemini Lasswell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Jun 2018 22:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31688 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31688-submit@debbugs.gnu.org id=B31688.152797998331928 (code B ref 31688); Sat, 02 Jun 2018 22:54:02 +0000 Original-Received: (at 31688) by debbugs.gnu.org; 2 Jun 2018 22:53:03 +0000 Original-Received: from localhost ([127.0.0.1]:59633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPFOR-0008Iu-0w for submit@debbugs.gnu.org; Sat, 02 Jun 2018 18:53:03 -0400 Original-Received: from aibo.runbox.com ([91.220.196.211]:38270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPFOO-0008IR-Jg for 31688@debbugs.gnu.org; Sat, 02 Jun 2018 18:53:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=rbselector1; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From; bh=RknzOO4we/NPlqhO0kmxVvUlHvSIQ2NapW0sWKXpfmc=; b=gsE+AJz4G5JC4ubmrFUhimTZQG ZooSDR/FdFxxekOuiK7MOaDzRUkSVdY8DEsKD2weU+igexLG0x98MllbYyVlYCmcrKJszg4XQD3LJ 9TqqJAyEHrEG9T+Sg3s0ydmxfeLm7lwarwBVkeAG2cQlkhYZRSNuI0UqzsMv6qAD0/IBy1LVt/OP/ tvCi5cK9Wf0JnFA9QG4sZ30K33ptVHPqfTUtvZFs1JIxy2yP38jufgt7AEaX7IqKVk0W/yMznCMmq jbtJtStkPsbGXnOisiXej5S4oDIwmIt/Bal9cLGhRWtIan7AZvZ9Ky0PEDOUDSecPCdofi+cTW4KV TI7qdnMA==; Original-Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1fPFOM-0002QN-BN; Sun, 03 Jun 2018 00:52:59 +0200 Original-Received: from c-24-22-244-161.hsd1.wa.comcast.net ([24.22.244.161] helo=sockeye) by mailfront10.runbox.com with esmtpsa (uid:179284 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1fPFOF-0000Pz-DO; Sun, 03 Jun 2018 00:52:52 +0200 In-Reply-To: <87po199id0.fsf@gmail.com> (Noam Postavsky's message of "Sat, 02 Jun 2018 14:02:51 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:146880 Archived-At: Noam Postavsky writes: > I don't think this is a bug, the compiler coalesces equal string > literals. `put-text-property' modifies the string destructively, so you > shouldn't use it on literals, for the same reason you shouldn't use > destructive operations on quoted list literals. Thanks for the explanation. I've just searched the Elisp reference looking for any any warnings not to use destructive functions on literals, and didn't find anything. Did I miss it? If not, it seems to me that the node "Self-Evaluating Forms" would be a good place to discuss the subject.