all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Bug in count-lines-page?
Date: Thu, 30 Aug 2012 12:10:36 +0200	[thread overview]
Message-ID: <87hark6677.fsf@googlemail.com> (raw)
In-Reply-To: 87wr0gr9cb.fsf@altern.org

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	other threads:[~2012-08-30 10:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87hark6677.fsf@googlemail.com \
    --to=tjolitz@googlemail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.