[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch: Syntax and Hard Newlines

From: Stefan Monnier
Subject: Re: Patch: Syntax and Hard Newlines
Date: Wed, 15 Nov 2006 11:37:42 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux)

>> or change byte-opt.el to mark the `propertize' function with
>> `byte-optimize-pure-func' rather than with `side-effect-free'.
> But then byte-compilation would change the semantics of `propertize'.

Slightly, yes.

>     -- Function: propertize string &rest properties
>         This function returns a copy of STRING [...]

Yes, with byte-optimize-pure-func the result would still be a different
string than the argument, but the result would just always be the same
string rather than creating a new one each time.  As you've noticed this is
already done for `concat' (and this has been the case for a long time
already).  Elisp strings are almost never modified, so it's not
a big problem.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]