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: Miles Bader
Subject: Re: Patch: Syntax and Hard Newlines
Date: Wed, 15 Nov 2006 16:26:30 +0900

"Herbert Euler" <address@hidden> writes:
>>       (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.

Why not put it in a defconst?

(defconst xxx-soft-newline (propertize "\n" 'syntax-table '(0)))

...

    (progn (insert-before-markers xxx-soft-newline)
           ...)

-Miles
-- 
"Most attacks seem to take place at night, during a rainstorm, uphill,
 where four map sheets join."   -- Anon. British Officer in WW I




reply via email to

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