From: Chong Yidong <cyd@gnu.org>
To: Leo <sdl.web@gmail.com>
Cc: 11278@debbugs.gnu.org
Subject: bug#11278: 24.0.95; count-screen-lines wrong value for a corner case?
Date: Sat, 21 Apr 2012 18:01:32 +0800 [thread overview]
Message-ID: <877gx9pfnn.fsf@gnu.org> (raw)
In-Reply-To: <m162cvn5mz.fsf@gmail.com> (Leo's message of "Thu, 19 Apr 2012 22:44:04 +0800")
Leo <sdl.web@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.)
next prev parent reply other threads:[~2012-04-21 10:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-19 14:44 bug#11278: 24.0.95; count-screen-lines wrong value for a corner case? Leo
2012-04-21 10:01 ` Chong Yidong [this message]
2019-11-01 19:52 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877gx9pfnn.fsf@gnu.org \
--to=cyd@gnu.org \
--cc=11278@debbugs.gnu.org \
--cc=sdl.web@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.