* Bug in count-lines-page?
@ 2012-08-30 9:56 Thorsten Jolitz
2012-08-30 9:57 ` Bastien
0 siblings, 1 reply; 3+ messages in thread
From: Thorsten Jolitz @ 2012-08-30 9:56 UTC (permalink / raw)
To: help-gnu-emacs
Hi List,
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?
--
cheers,
Thorsten
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug in count-lines-page?
2012-08-30 9:56 Bug in count-lines-page? Thorsten Jolitz
@ 2012-08-30 9:57 ` Bastien
2012-08-30 10:10 ` Thorsten Jolitz
0 siblings, 1 reply; 3+ messages in thread
From: Bastien @ 2012-08-30 9:57 UTC (permalink / raw)
To: Thorsten Jolitz; +Cc: help-gnu-emacs
Hi Thorsten,
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.
HTH,
--
Bastien
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug in count-lines-page?
2012-08-30 9:57 ` Bastien
@ 2012-08-30 10:10 ` Thorsten Jolitz
0 siblings, 0 replies; 3+ messages in thread
From: Thorsten Jolitz @ 2012-08-30 10:10 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-08-30 10:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-30 9:56 Bug in count-lines-page? Thorsten Jolitz
2012-08-30 9:57 ` Bastien
2012-08-30 10:10 ` Thorsten Jolitz
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).