bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Chong Yidong
Subject: bug#11278: 24.0.95; count-screen-lines wrong value for a corner case?
Date: Sat, 21 Apr 2012 18:01:32 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux)

Leo <address@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.)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]