Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am not pretty sure whether this is just the correct reproduce process. Based on my observation, when I change between buffers, such as this scenario:

1. I am in Buffer1:position1
2. I switch to Buffer2:position2
3. I switch back to Buffer1

Now I am in Buffer2 after step-2, and I do some edit jobs without using mouse to touch( selected or click ) the buffer content. Then, when I am back to Buffer1, I still in position1.

But If i have ever used mouse to do any action, when I back to Buffer1. I am not in the position1 any more.

So is there any setting/variable about such problem?
What does the mouse( or maybe some other actions ) have changed, which result in changing the original position of another buffer?

This confuses my a long time. Thanks for your help.

share|improve this question
I wonder why you need the mouse if you're using Emacs, however you can use registers to save your position in a file or bookmarks if you want to keep them between sessions. see (info "(emacs) Position Registers") and (info "(emacs) Bookmarks"). – Daimrod Apr 9 '12 at 7:51
I am using emacs under windows, as well as X window under Linux. Sometimes I may use mouse to select something to copy. But I don't think this should affect the position in another buffer which is not show in current window. On the other hand, I don't think the current emacs process is OK even I use mouse, I just want to know how can I make it correct. – winterTTr Apr 9 '12 at 8:16
Are you, perhaps, clicking in the buffer to return to it? If so, you just told emacs where you want the cursor. – jwernerny Apr 10 '12 at 18:39
No, I just do action in buffer2, and never touch buffer1 with mouse. But when I change back, the cursor position changed. I want to know which action will affect the original position in a background buffer. – winterTTr Apr 11 '12 at 0:52
I can't make this happen using version (built from source) on Windows. Is it possible your two buffers have the same backing file? – Fran May 2 '12 at 17:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.