[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#31688: 26.1.50; Byte compiler confuses two string variables
From: |
Gemini Lasswell |
Subject: |
bug#31688: 26.1.50; Byte compiler confuses two string variables |
Date: |
Sat, 02 Jun 2018 15:52:39 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) |
Noam Postavsky <npostavs@gmail.com> 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.
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Gemini Lasswell, 2018/06/02
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Noam Postavsky, 2018/06/02
- bug#31688: 26.1.50; Byte compiler confuses two string variables,
Gemini Lasswell <=
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Drew Adams, 2018/06/02
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Phil Sainty, 2018/06/02
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Noam Postavsky, 2018/06/02
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Phil Sainty, 2018/06/03
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Andreas Schwab, 2018/06/03
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Phil Sainty, 2018/06/04
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Eli Zaretskii, 2018/06/04
- bug#31688: 26.1.50; Byte compiler confuses two string variables, Andreas Schwab, 2018/06/04