From: Nikolaj Schumacher <me@nschum.de>
To: Xah Lee <xahlee@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: efficiency question on text manipulation using string vs buffer
Date: Thu, 26 Mar 2009 17:56:49 +0100 [thread overview]
Message-ID: <m2wsacb4tq.fsf@nschum.de> (raw)
In-Reply-To: <95d6eb8d-59c8-4d49-8844-5cd85a84a2f7@z16g2000prd.googlegroups.com> (Xah Lee's message of "Tue, 24 Mar 2009 19:56:34 -0700 (PDT)")
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
prev parent reply other threads:[~2009-03-26 16:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-24 1:41 efficiency question on text manipulation using string vs buffer Xah Lee
2009-03-24 20:19 ` Nikolaj Schumacher
[not found] ` <mailman.3920.1237926004.31690.help-gnu-emacs@gnu.org>
2009-03-24 22:26 ` Xah Lee
2009-03-25 2:34 ` Kevin Rodgers
[not found] ` <mailman.3935.1237948501.31690.help-gnu-emacs@gnu.org>
2009-03-25 2:56 ` Xah Lee
2009-03-26 3:07 ` Kevin Rodgers
2009-03-26 16:56 ` Nikolaj Schumacher [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2wsacb4tq.fsf@nschum.de \
--to=me@nschum.de \
--cc=help-gnu-emacs@gnu.org \
--cc=xahlee@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).