From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: Bug in count-lines-page? Date: Thu, 30 Aug 2012 12:10:36 +0200 Message-ID: <87hark6677.fsf@googlemail.com> References: <87ligw66uo.fsf@googlemail.com> <87wr0gr9cb.fsf@altern.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1346321284 5583 80.91.229.3 (30 Aug 2012 10:08:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Aug 2012 10:08:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 30 12:08:04 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T71fP-00012M-Vk for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Aug 2012 12:08:04 +0200 Original-Received: from localhost ([::1]:34650 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T71fN-00083T-Hu for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Aug 2012 06:08:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T71fF-00083K-11 for help-gnu-emacs@gnu.org; Thu, 30 Aug 2012 06:07:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T71fD-0006yo-3T for help-gnu-emacs@gnu.org; Thu, 30 Aug 2012 06:07:52 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:39318) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T71fC-0006yj-T4 for help-gnu-emacs@gnu.org; Thu, 30 Aug 2012 06:07:51 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T71f8-0000hu-Aj for help-gnu-emacs@gnu.org; Thu, 30 Aug 2012 12:07:46 +0200 Original-Received: from g231110042.adsl.alicedsl.de ([92.231.110.42]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Aug 2012 12:07:46 +0200 Original-Received: from tjolitz by g231110042.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Aug 2012 12:07:46 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: g231110042.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux) Cancel-Lock: sha1:aVRYRrpzDRjMn+RKX/Aq7wQWq1s= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86590 Archived-At: Bastien writes: Hi Bastien, > Thorsten Jolitz 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