emacs-devel
[Top][All Lists]
Advanced

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

Re: Moving cursor on another window


From: Stephen J. Turnbull
Subject: Re: Moving cursor on another window
Date: Wed, 19 Jan 2011 23:24:42 +0900

martin rudalics writes:

 > It depends on what you want.  To move point in a specific window W use
 > (set-window-point W (point-min)).  To move it in all windows showing a
 > buffer B use
 > 
 > (dolist (W (get-buffer-window-list B nil t))
 >    (set-window-point W (point-min)))

I believe that strictly speaking those should be

    (set-window-point W (point-min B))

and

    (dolist (W (get-buffer-window-list B nil t))
      (set-window-point W (point-min B)))

since the current buffer will not necessarily have the same point-min
as B.



reply via email to

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