unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* count-lines-page
@ 2010-08-22 18:31 Christoph
  2010-08-22 19:38 ` count-lines-page Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph @ 2010-08-22 18:31 UTC (permalink / raw)
  To: emacs-devel

Bug #6825 (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6825) points out 
some peculiar behavior of what-page. This is actually caused by the 
count-lines-page function.

I am wondering if this behavior is intended or a bug itself.

emacs -Q
open a buffer, type test
C-a

i.e.
test
^ point

M-x count-lines-page
Output: Page has 1 lines (0 + 1) (means: 0 before, 1 after)

C-f

i.e.

test
  ^ point

M-x count-lines-page
Output: Page has 1 lines (1 + 1) (means: 1 before, 1 after)

Does this make sense? There is only 1 line in the buffer. How can there 
be 1 before and 1 after?

Christoph




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-24 23:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-22 18:31 count-lines-page Christoph
2010-08-22 19:38 ` count-lines-page Glenn Morris
2010-08-24 22:56   ` count-lines-page Stephen Berman
2010-08-24 23:18     ` count-lines-page Stephen Berman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).