GNU bug report logs - #11278
24.0.95; count-screen-lines wrong value for a corner case?

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Leo <sdl.web@HIDDEN>; dated Thu, 19 Apr 2012 15:02:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 11278 <at> debbugs.gnu.org:


Received: (at 11278) by debbugs.gnu.org; 21 Apr 2012 10:02:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 21 06:02:15 2012
Received: from localhost ([127.0.0.1]:45125 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SLX8w-00021p-4a
	for submit <at> debbugs.gnu.org; Sat, 21 Apr 2012 06:02:15 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:48046 ident=Debian-exim)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <cyd@HIDDEN>) id 1SLX8t-00021i-Oc
	for 11278 <at> debbugs.gnu.org; Sat, 21 Apr 2012 06:02:12 -0400
Received: from bb116-14-12-6.singnet.com.sg ([116.14.12.6]:39692 helo=ulysses)
	by fencepost.gnu.org with esmtpsa
	(TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71)
	(envelope-from <cyd@HIDDEN>)
	id 1SLX8O-0003Wa-2w; Sat, 21 Apr 2012 06:01:40 -0400
From: Chong Yidong <cyd@HIDDEN>
To: Leo <sdl.web@HIDDEN>
Subject: Re: bug#11278: 24.0.95;
	count-screen-lines wrong value for a corner case?
References: <m162cvn5mz.fsf@HIDDEN>
Date: Sat, 21 Apr 2012 18:01:32 +0800
In-Reply-To: <m162cvn5mz.fsf@HIDDEN> (Leo's message of "Thu, 19 Apr 2012
	22:44:04 +0800")
Message-ID: <877gx9pfnn.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -6.9 (------)
X-Debbugs-Envelope-To: 11278
Cc: 11278 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)

Leo <sdl.web@HIDDEN> writes:

> Should (count-screen-lines (point) (point) t) return 1 instead of 0?
>
> Otherwise the return value of count-screen-lines when
> COUNT-FINAL-NEWLINE is non-nil takes 0, 2, 3, 4, 5...

I don't think it matters much either way, but if you change it, you need
to check that all the existing users of count-screen-lines won't break.
(Not worth the trouble IMO.)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#11278; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Apr 2012 15:01:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 19 11:01:04 2012
Received: from localhost ([127.0.0.1]:41900 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SKsr2-0001S8-83
	for submit <at> debbugs.gnu.org; Thu, 19 Apr 2012 11:01:04 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56486)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <sdl.web@HIDDEN>) id 1SKsqz-0001Rb-Kl
	for submit <at> debbugs.gnu.org; Thu, 19 Apr 2012 11:01:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <sdl.web@HIDDEN>) id 1SKsqD-0006DK-6M
	for submit <at> debbugs.gnu.org; Thu, 19 Apr 2012 11:00:36 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:48308)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sdl.web@HIDDEN>) id 1SKsqC-00067O-Tt
	for submit <at> debbugs.gnu.org; Thu, 19 Apr 2012 11:00:13 -0400
Received: from eggs.gnu.org ([208.118.235.92]:39584)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sdl.web@HIDDEN>) id 1SKscn-0005UT-4X
	for bug-gnu-emacs@HIDDEN; Thu, 19 Apr 2012 10:46:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <sdl.web@HIDDEN>) id 1SKscb-0001mp-Vg
	for bug-gnu-emacs@HIDDEN; Thu, 19 Apr 2012 10:46:20 -0400
Received: from mail-pz0-f52.google.com ([209.85.210.52]:40276)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sdl.web@HIDDEN>) id 1SKscb-0001mZ-Nc
	for bug-gnu-emacs@HIDDEN; Thu, 19 Apr 2012 10:46:09 -0400
Received: by dake40 with SMTP id e40so10558550dak.39
	for <bug-gnu-emacs@HIDDEN>; Thu, 19 Apr 2012 07:46:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:to:subject:x-debbugs-cc:date:message-id:mime-version
	:content-type; bh=nGBfgZo3FRbAGElihYw85OcUXaWJO8GmYUWQ7QapFQ4=;
	b=LmJb50P1IISRf5X4zMym9v228DTV6QdKTJEXol0XPFRlNzRZc1+YYdkdEmZWCI8+Ik
	xVnBWbz5cKg5ZO7EzsToJSneEpZlZBTqigUG7vGfx8D2GdM525PxCh3q7Cd3ONZf3pOg
	Of01ZyGRwq2keASSKgs4wU18OIoFBw1xuIcO1jD7XOb+DFpI6EsXfWpH3Ni3ObhFyjcs
	eozkSS9TYMiTJRLgPKcN/DLi7oG5fEJdtpkmo+ZxQxU7b+oYUs7tXL2ytKctJOcnPApX
	EHYaElvS038LhofwHX+4eMyI3Fo1cErh5ZiPq8wJNimEdadcsfupEysbDnyRSpyL9gOF
	TIyA==
Received: by 10.68.203.41 with SMTP id kn9mr5202006pbc.75.1334846766887;
	Thu, 19 Apr 2012 07:46:06 -0700 (PDT)
Received: from localhost ([123.123.251.161])
	by mx.google.com with ESMTPS id qb10sm2413626pbb.75.2012.04.19.07.46.00
	(version=TLSv1/SSLv3 cipher=OTHER);
	Thu, 19 Apr 2012 07:46:05 -0700 (PDT)
From: Leo <sdl.web@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.0.95; count-screen-lines wrong value for a corner case?
X-Debbugs-CC: martin rudalics <rudalics@HIDDEN>
Date: Thu, 19 Apr 2012 22:44:04 +0800
Message-ID: <m162cvn5mz.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 208.118.235.17
X-Spam-Score: -6.1 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.1 (------)

Should (count-screen-lines (point) (point) t) return 1 instead of 0?

Otherwise the return value of count-screen-lines when
COUNT-FINAL-NEWLINE is non-nil takes 0, 2, 3, 4, 5...

Leo




Acknowledgement sent to Leo <sdl.web@HIDDEN>:
New bug report received and forwarded. Copy sent to rudalics@HIDDEN, bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to rudalics@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#11278; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.