[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: disable cursor vertical centering after sw2buf
On Mon, 13 Jan 2003 23:46:51 +0100 wrote Christian Storm <cosmic.reaktor@xxxxxx>:
> hi!
> as you might have guessed from the subject, i don't want the
> cursorposition vertically centered in the buffer after switching away and
> coming back via a switching function (see below).
...
> do i have to implement this via create_user_mark() and companions or is
> there a simpler way to do this?
The user mark will not help here, as it doesnot store the window-position.
my apoproach would be to store window_line() in a buffer-local (blocal)
variable and use the info to restore the position in the buffer switched to
with recenter(get_blocal("window_line", 0)).
For a ready solution, you might browse the archive for bw.sl by Klaus
Schmidt.
Günter
--
Milde at ife.et.tu-dresden.de
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.