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

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

Re: Bug in count-lines-page?


From: Thorsten Jolitz
Subject: Re: Bug in count-lines-page?
Date: Thu, 30 Aug 2012 12:10:36 +0200
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux)

Bastien <bzg@altern.org> writes:

Hi Bastien,

> Thorsten Jolitz <tjolitz@googlemail.com> writes:
>
>> I just used C-x l (count-lines-page) on xterm.c and term.c from the
>> Emacs24 sources with surprising results: 
>>
>> C-x l on
>> term.c buffer: 
>> 512 lines (but last line in buffer is 3670)
>> xterm.x buffer: 
>> 326 lines (but last line in buffer is 10929)
>>
>> Is that a bug?
>
> C-x l counts line in *pages*
>
> Try C-x [ to go to the next page from the beginning of the buffer.

Ah, I see, the name of the function should have told me... 

Marking the whole buffer and then 'M-x count-lines-region' gives the
correct result.

Thanks 

-- 
cheers,
Thorsten




reply via email to

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