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

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

Re: set-window-point


From: Nick Roberts
Subject: Re: set-window-point
Date: Fri, 24 Mar 2006 11:32:22 +1200

>From a thread (14th November 2005)

 >  >     The disassembly buffer appears in its own frame as a dedicated window
 >  >     with frame focus and Emacs makes this window selected.  The cursor is
 >  >     at the start of the buffer and Edebug shows that set-window-point
 >  >     doesn't move it.
 >  > 
 >  > Is the disassembly buffer the current buffer at the time?
 >  > 
 >  > Perhaps the problem case is where the window is selected
 >  > but the buffer is not current.  Can you find out if this is so?
 > 
 > Yes, you're right.  If I use the patch below it works.  Shall I install
 > it, or is it a bug in set-window-point?  If it's not a bug, I think
 > this behaviour should be documented.

I think I was wrong about this.  The function set-window-point seems to only
DTRT if the point being set is visible when the buffer starts at the top of
the window.  It doesn't scroll down to make the point visible, but just
centres the cursor in the window.


-- 
Nick                                           http://www.inet.net.nz/~nickrob




reply via email to

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