emacs-devel
[Top][All Lists]
Advanced

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

Re: problem of released-button style mode-line


From: Kenichi Handa
Subject: Re: problem of released-button style mode-line
Date: Thu, 26 Oct 2000 14:26:47 +0900 (JST)

Kenichi Handa <address@hidden> writes:
> Thank you, but it seems that:
>   (pos-visible-in-window-p POS nil t)
> returns t even if the upper part of line at POS is
> non-visible.

It seems that this function can be used only for the current
buffer, but the docstring is vague about this restriction.

In the code of pos_visible_p, you calls start_display but
I thought that the arg W (window) should be that of the
current buffer.

> And, I found one more problem.  
>   (set-window-start WINDOW 1)
> doesn't make the position 1 fully visible if it is already
> partially visible.

Miles Bader <address@hidden> writes:
> That's simply the nature of window-start -- it's where emacs begins
> drawing *any* text in the window, even if it's not fully visible.

> I think you can do `(set-window-vscroll WINDOW 0)' to make the first
> line fully visible.

Thank you for the information.  I didn't know about this
function.

---
Ken'ichi HANDA
address@hidden




reply via email to

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