all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Moving cursor on another window
@ 2011-01-19 13:20 Uday S Reddy
  2011-01-19 13:59 ` martin rudalics
  2011-01-19 15:02 ` Stefan Monnier
  0 siblings, 2 replies; 7+ messages in thread
From: Uday S Reddy @ 2011-01-19 13:20 UTC (permalink / raw)
  To: emacs-devel

This might be a simple issue, but I could'nt find the answer.

If I have multiple windows showing (with different buffers in them), and 
I want to move the cursor in a window other than the current one, how is 
that supposed to be done?  The following pattern of code doesn't seem to 
work:

   (with-current-buffer other-buffer
      (beginning-of-buffer))

It works if the other-buffer is not currently displayed in a window. 
But if it is displayed, the cursor remains unchanged.  I guess there is 
some implicit save-excursion at the top level somewhere.  I can't see 
how to get around it.

Cheers,
Uday




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-01-20 12:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-19 13:20 Moving cursor on another window Uday S Reddy
2011-01-19 13:59 ` martin rudalics
2011-01-19 14:24   ` Stephen J. Turnbull
2011-01-19 14:36     ` martin rudalics
2011-01-19 15:02 ` Stefan Monnier
2011-01-20 12:13   ` Uday S Reddy
2011-01-20 12:52     ` Thierry Volpiatto

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.