[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Efficiently getting the line at point
From: |
Eli Zaretskii |
Subject: |
Re: Efficiently getting the line at point |
Date: |
Fri, 18 Sep 2009 18:02:57 +0300 |
> From: =?ISO-8859-1?Q?Nordl=F6w?= <per.nordlow@gmail.com>
> Date: Fri, 18 Sep 2009 07:30:19 -0700 (PDT)
>
> I thought Emacs had an internal O(1) lookup table for the positions
> of line beginnings of a buffer or file.
It doesn't. line-number-at-pos is what you are looking for.