unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Emacs switches frame when changing buffer
@ 2007-06-27 17:08 ChristofferC
  2007-06-27 17:52 ` Tassilo Horn
  0 siblings, 1 reply; 2+ messages in thread
From: ChristofferC @ 2007-06-27 17:08 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

Let's say that I have two Emacs frames open. In one of them I've
opened ~/.emacs. If I then go to the other frame and execute the
command "C-x b .emacs", the frame with the already opened file will be
activated. I want the buffer to open in the frame that I execute the
command in. How do I change this behaviour?

The weird thing is that if I execute the command "M-x switch-to-
buffer .emacs", it works as I want it to work. I've tried to bind
switch-to-buffer to another key combination than C-x b, but then I got
the "wrong" behaviour again.

/Christoffer Carlborg

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

* Re: Emacs switches frame when changing buffer
  2007-06-27 17:08 Emacs switches frame when changing buffer ChristofferC
@ 2007-06-27 17:52 ` Tassilo Horn
  0 siblings, 0 replies; 2+ messages in thread
From: Tassilo Horn @ 2007-06-27 17:52 UTC (permalink / raw)
  To: help-gnu-emacs

ChristofferC <Christoffer.Carlborg@gmail.com> writes:

Hi Christoffer,

> Let's say that I have two Emacs frames open. In one of them I've
> opened ~/.emacs. If I then go to the other frame and execute the
> command "C-x b .emacs", the frame with the already opened file will be
> activated. I want the buffer to open in the frame that I execute the
> command in. How do I change this behaviour?

For ido these two variable control this behavior.

,----[ C-h v ido-default-buffer-method RET ]
| ido-default-buffer-method is a variable defined in `ido.el'.
| Its value is maybe-frame
| 
| Documentation:
| *How to switch to new buffer when using `ido-switch-buffer'.
| See `ido-default-file-method' for details.
`----

,----[ C-h v ido-default-file-method RET ]
| ido-default-file-method is a variable defined in `ido.el'.
| Its value is maybe-frame
| 
| Documentation:
| *How to visit a new file when using `ido-find-file'.
| Possible values:
| `selected-window' Show new file in selected window
| `other-window'	  Show new file in another window (same frame)
| `display'	  Display file in another window without selecting to it
| `other-frame'	  Show new file in another frame
| `maybe-frame'	  If a file is visible in another frame, prompt to ask if you
| 		  you want to see the file in the same window of the current
|   		  frame or in the other frame
| `raise-frame'     If a file is visible in another frame, raise that
| 		  frame; otherwise, visit the file in the same window
`----

If you don't use ido-mode, I have no clue how to do it.

Bye,
Tassilo
-- 
A morning without coffee is like something without something else.

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

end of thread, other threads:[~2007-06-27 17:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-27 17:08 Emacs switches frame when changing buffer ChristofferC
2007-06-27 17:52 ` Tassilo Horn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).