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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11278 in the body.
You can then email your comments to 11278 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to rudalics <at> gmx.at, bug-gnu-emacs <at> gnu.org:
bug#11278; Package emacs. (Thu, 19 Apr 2012 15:02:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo <sdl.web <at> gmail.com>:
New bug report received and forwarded. Copy sent to rudalics <at> gmx.at, bug-gnu-emacs <at> gnu.org. (Thu, 19 Apr 2012 15:02:03 GMT) Full text and rfc822 format available.

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

From: Leo <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.95; count-screen-lines wrong value for a corner case?
Date: Thu, 19 Apr 2012 22:44:04 +0800
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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11278; Package emacs. (Sat, 21 Apr 2012 10:03:02 GMT) Full text and rfc822 format available.

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.)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11278; Package emacs. (Fri, 01 Nov 2019 19:53:01 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Chong Yidong <cyd <at> gnu.org>
Cc: Leo <sdl.web <at> gmail.com>, 11278 <at> debbugs.gnu.org
Subject: Re: bug#11278: 24.0.95; count-screen-lines wrong value for a corner
 case?
Date: Fri, 01 Nov 2019 20:52:47 +0100
tags 11278 + wontfix
close 11278
thanks

Chong Yidong <cyd <at> gnu.org> writes:

> 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.)

With the above reply, I'm closing this as wontfix.

Best regards,
Stefan Kangas




Added tag(s) wontfix. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Fri, 01 Nov 2019 19:53:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 11278 <at> debbugs.gnu.org and Leo <sdl.web <at> gmail.com> Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Fri, 01 Nov 2019 19:53:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 30 Nov 2019 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 121 days ago.

Previous Next


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