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

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Thu, 19 Apr 2012 15:02:02 UTC

Severity: minor

Tags: wontfix

Found in version 24.0.95

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 11278 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> gnu.org>
To: Leo <sdl.web <at> gmail.com>
Cc: 11278 <at> debbugs.gnu.org
Subject: Re: bug#11278: 24.0.95;
	count-screen-lines wrong value for a corner case?
Date: Sat, 21 Apr 2012 18:01:32 +0800
Leo <sdl.web <at> gmail.com> 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.)




This bug report was last modified 5 years and 203 days ago.

Previous Next


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