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

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

Re: creating a function that works for active region or whole buffer


From: Luca Ferrari
Subject: Re: creating a function that works for active region or whole buffer
Date: Fri, 1 Feb 2013 11:36:49 +0100

On Mon, Jan 28, 2013 at 3:02 PM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
> goto-line and line-number-at-pos are expensive operations that count
> (and re-count and re-re-count every time) the number of LF chars from
> the beginning of the buffer.
>

I'm using them only at the beginning of the function, and therefore
once per function call, that does not sound very expensive to me. What
do you suggest instead?

Luca



reply via email to

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