Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

emacsclient will not allow two different frames to have the same file open

Tags:

emacs

I have a problem if I do the following:

  1. I start an emacs server ('emacs --daemon')
  2. I start a client ('emacsclient -c') and then open the file, foo.txt.
  3. I start another client ('emacsclient -c') and then attempt to switch to the already open buffer, foo.txt.

On step 3, this buffer will not open in the new frame.

Any ideas on how to allow the same buffer to be visible in two emacsclient frames?

Many thanks

like image 874
Nathan Lippi Avatar asked Dec 05 '25 08:12

Nathan Lippi


1 Answers

It turned out that ido-switch-buffer was the problem.

The following fixed it:

(setq ido-default-buffer-method 'selected-window)
like image 175
Nathan Lippi Avatar answered Dec 08 '25 01:12

Nathan Lippi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!