>>>> "Pema" == Pekka Marjola <pema(a)iki.fi>
writes:
Pema>
Pema> The NEWS file claims that vertical-motion is corrected in 21.0. Then
Pema> how I can use the new position (see below)?
Pema>
Pema> (defun test-v-m (&optional buf)
Pema> (let* ((buf (or buf (current-buffer)))
Pema> (win (get-buffer-window buf t)))
Pema> (save-excursion
Pema> (set-buffer buf)
Pema> (goto-char (point-min))
Pema> (princ (point))
Pema> (princ " ")
Pema> (vertical-motion 1 win)
Pema> (point))))
^^^^^^^
try: (window-point win)
you may also want set-window-point above
greg
Pema>
Pema> ; Run in *scratch*
Pema> (test-v-m)
Pema> -> 1 28
Pema>
Pema> (test-v-m (get-buffer "*mail to xemacs-beta(a)xemacs.org*"))
Pema> -> 1 1
Pema>
Pema> 20.4 gives different results for the second test...
Pema>
Pema> --
Pema> Pekka Marjola * pema(a)iki.fi *
http://www.iki.fi/pema/ * PGPid 0x2865206D
Pema>