all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#3876: 23.1.50; count-screen-line does not always use window-start as  default
@ 2009-07-18  3:34 Lennart Borgman
  2011-09-17  6:48 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Lennart Borgman @ 2009-07-18  3:34 UTC (permalink / raw)
  To: emacs-pretest-bug

An easy way to show this is to use org-mode. Do not open heading
lines. Place a heading line at the top of the window. Evaluate

  (count-screen-lines)
  (count-screen-lines (window-start))

The first line seems to use 1 as default, not (window-start).




In GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600)
 of 2009-06-30
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags
-Ic:/g/include -fno-crossjumping'





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

* bug#3876: 23.1.50; count-screen-line does not always use window-start as  default
  2009-07-18  3:34 bug#3876: 23.1.50; count-screen-line does not always use window-start as default Lennart Borgman
@ 2011-09-17  6:48 ` Lars Magne Ingebrigtsen
  2011-09-17  7:37   ` Lennart Borgman
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-09-17  6:48 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: 3876

Lennart Borgman <lennart.borgman@gmail.com> writes:

> An easy way to show this is to use org-mode. Do not open heading
> lines. Place a heading line at the top of the window. Evaluate
>
>   (count-screen-lines)
>   (count-screen-lines (window-start))
>
> The first line seems to use 1 as default, not (window-start).

As the doc string says:

---
Optional arguments BEG and END default to `point-min' and `point-max'
respectively.
---

So I don't think this is a bug.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





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

* bug#3876: 23.1.50; count-screen-line does not always use window-start as default
  2011-09-17  6:48 ` Lars Magne Ingebrigtsen
@ 2011-09-17  7:37   ` Lennart Borgman
  0 siblings, 0 replies; 3+ messages in thread
From: Lennart Borgman @ 2011-09-17  7:37 UTC (permalink / raw)
  To: Lars Magne Ingebrigtsen; +Cc: 3876

On Sat, Sep 17, 2011 at 08:48, Lars Magne Ingebrigtsen <larsi@gnus.org> wrote:
> Lennart Borgman <lennart.borgman@gmail.com> writes:
>
>> An easy way to show this is to use org-mode. Do not open heading
>> lines. Place a heading line at the top of the window. Evaluate
>>
>>   (count-screen-lines)
>>   (count-screen-lines (window-start))
>>
>> The first line seems to use 1 as default, not (window-start).
>
> As the doc string says:
>
> ---
> Optional arguments BEG and END default to `point-min' and `point-max'
> respectively.
> ---
>
> So I don't think this is a bug.

You are right. Thanks.





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

end of thread, other threads:[~2011-09-17  7:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-18  3:34 bug#3876: 23.1.50; count-screen-line does not always use window-start as default Lennart Borgman
2011-09-17  6:48 ` Lars Magne Ingebrigtsen
2011-09-17  7:37   ` Lennart Borgman

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.