emacs-devel
[Top][All Lists]
Advanced

[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 09:03:09 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux)

>> (progn (insert-before-markers (propertize "\n" 'syntax-table '(0)))
>> ...)

> Will this create a lot of temporary string object
> with "\n" as content and '(syntax-table (0)) as
> property?  This may cause problem when the
> file is large.

Then just do:

 (progn (insert-before-markers (eval-when-compile
                                (propertize "\n" 'syntax-table '(0))))
 ...)

or change byte-opt.el to mark the `propertize' function with
`byte-optimize-pure-func' rather than with `side-effect-free'.


        Stefan




reply via email to

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