help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: efficiency question on text manipulation using string vs buffer


From: Nikolaj Schumacher
Subject: Re: efficiency question on text manipulation using string vs buffer
Date: Thu, 26 Mar 2009 17:56:49 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (darwin)

Xah Lee <xahlee@gmail.com> wrote:

> I like the version that repeated sets var and repeatedly call replace-
> regexp-in-string. This is conceptually simple and the concept is
> universal among langs. The version calling save-restriction and narrow-
> to-region is emacs specific, requires some specific knowledge about
> emacs/lisp environment to understand.

When working on data coming from a buffer, you should prefer working in
that buffer, though.  The text might contain overlays that can be lost
as well as point and scrolling positions.


regards,
Nikolaj Schumacher




reply via email to

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