[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
point when modifying other buffers
From: |
Daniel Carvalho |
Subject: |
point when modifying other buffers |
Date: |
Wed, 6 Jan 2010 14:53:49 +0000 |
hi
I want a lisp program to make changes to other buffer without visually
switching to it.
(with-current-buffer my-other-buffer
(insert "abc\n")
)
this keeps a temporary cursor while the elisp program runs but doesn't
move the buffer "real" position.
How can I make it change the buffer position?
(insert-before-markers "abc\n") works in this case, but it is not a
generic solution
I could use something like
(set-window-point window position)
but only if there is a window displaying the buffer!
I would like to listen for clarifications on this subjet, and if there
are better solutions
thanks
lDanie
- point when modifying other buffers,
Daniel Carvalho <=