all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* opening new buffer in active buffer
@ 2013-07-04 14:48 Jannis
  2013-07-04 14:59 ` Peter Dyballa
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Jannis @ 2013-07-04 14:48 UTC (permalink / raw)
  To: help-gnu-emacs

Dear emacs users,


if i have several buffers open in emacs in splitted windows and I hit 
Ctr-X Ctr-B to switch to another buffer, the list of buffers and, hence, 
the new buffer always opens in another buffer window than the one that 
is currently my window. Is there any way to change this so that I always 
stay in the same window? I have figured out a way to first always click 
once in all teh windows where I want the buffer not to open but this 
seems very tedious to me.


Thanks
Jannis



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

* Re: opening new buffer in active buffer
  2013-07-04 14:48 Jannis
@ 2013-07-04 14:59 ` Peter Dyballa
  2013-07-04 23:22 ` Bernardo
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Peter Dyballa @ 2013-07-04 14:59 UTC (permalink / raw)
  To: Jannis; +Cc: help-gnu-emacs


Am 04.07.2013 um 16:48 schrieb Jannis:

> Is there any way to change this so that I always stay in the same window?

Input "o" on the selected buffer's line in the *Buffer List* buffer. This will open the selected buffer in the "o"ther window – I most often do not have so many buffers open…

Another option is to C-x o (i.e. other-window) and then make a choice in the mini-buffer. Typing at least the buffer's first character(s) should enable you to complete the buffer's name and this buffer will take over the window from you started to switch to another buffer. Of course you leave out the first character(s) and press TAB that you can pick an entry from the *completions* list – which will disappear after.

--
Greetings

  Pete

One cannot live by television, video games, top ten CDs, and dumb movies alone.
				– Amiri Baraka, 1999




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

* Re: opening new buffer in active buffer
  2013-07-04 14:48 Jannis
  2013-07-04 14:59 ` Peter Dyballa
@ 2013-07-04 23:22 ` Bernardo
       [not found] ` <mailman.287.1372980412.12400.help-gnu-emacs@gnu.org>
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Bernardo @ 2013-07-04 23:22 UTC (permalink / raw)
  To: help-gnu-emacs

> if i have several buffers open in emacs in splitted windows and I hit 
> Ctr-X Ctr-B to switch to another buffer, the list of buffers and, hence, 
> the new buffer always opens in another buffer window than the one that 
> is currently my window. Is there any way to change this so that I always 
> stay in the same window? 

not sure if i interpret this correctly but maybe adding this to your 
.emacs would help

(add-to-list 'same-window-buffer-names "*Buffer List*")





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

* Re: opening new buffer in active buffer
       [not found] ` <mailman.287.1372980412.12400.help-gnu-emacs@gnu.org>
@ 2013-07-05  1:09   ` Emanuel Berg
  0 siblings, 0 replies; 8+ messages in thread
From: Emanuel Berg @ 2013-07-05  1:09 UTC (permalink / raw)
  To: help-gnu-emacs

Bernardo <bernardo.bacic@pobox.com> writes:

>> if i have several buffers open in Emacs in splitted windows and
>> I hit C-x C-b to switch to another buffer, the list of buffers
>> and, hence, the new buffer always opens in another buffer
>> window than the one that is currently my window. Is there any
>> way to change this so that I always stay in the same window?

> not sure if i interpret this correctly but maybe adding this to
> your .emacs would help
>
> (add-to-list 'same-window-buffer-names "*Buffer List*")

From http://stackoverflow.com/a/1231270

(global-set-key (kbd "C-x C-b") 'buffer-menu)

-- 
Emanuel Berg - programmer (hire me! CV below)
computer projects: http://user.it.uu.se/~embe8573
internet activity: http://home.student.uu.se/embe8573


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

* Re: opening new buffer in active buffer
@ 2013-07-05  7:51 martin rudalics
  2013-07-05 11:51 ` Bernardo
  0 siblings, 1 reply; 8+ messages in thread
From: martin rudalics @ 2013-07-05  7:51 UTC (permalink / raw)
  To: bernardo.bacic; +Cc: help-gnu-emacs

 > (add-to-list 'same-window-buffer-names "*Buffer List*")

The recommended way to do this with Emacs 24 is to customize
`display-buffer-alist'.  Try, for example,

(setq display-buffer-alist '(("*Buffer List*" display-buffer-same-window (nil))))

martin



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

* Re: opening new buffer in active buffer
  2013-07-04 14:48 Jannis
                   ` (2 preceding siblings ...)
       [not found] ` <mailman.287.1372980412.12400.help-gnu-emacs@gnu.org>
@ 2013-07-05 11:28 ` Andreas Röhler
  2013-07-05 16:41 ` Bob Proulx
  4 siblings, 0 replies; 8+ messages in thread
From: Andreas Röhler @ 2013-07-05 11:28 UTC (permalink / raw)
  To: help-gnu-emacs

Am 04.07.2013 16:48, schrieb Jannis:
> Dear emacs users,
>
>
> if i have several buffers open in emacs in splitted windows and I hit Ctr-X Ctr-B to

Just C-x b

should provide it

  switch to another buffer, the list of buffers and, hence, the new buffer always opens
> in another buffer window than the one that is currently my window. Is there any way to change this so that I always stay in the same window? I have figured out a way to
> first always click once in all teh windows where I want the buffer not to open but this seems very tedious to me.
>
>
> Thanks
> Jannis
>
>




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

* Re: opening new buffer in active buffer
  2013-07-05  7:51 opening new buffer in active buffer martin rudalics
@ 2013-07-05 11:51 ` Bernardo
  0 siblings, 0 replies; 8+ messages in thread
From: Bernardo @ 2013-07-05 11:51 UTC (permalink / raw)
  To: help-gnu-emacs

>  > (add-to-list 'same-window-buffer-names "*Buffer List*")
> 
> The recommended way to do this with Emacs 24 is to customize
> `display-buffer-alist'.  Try, for example,
> 
> (setq display-buffer-alist '(("*Buffer List*" display-buffer-same-window 
> (nil))))

interesting, thanks for the tip





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

* Re: opening new buffer in active buffer
  2013-07-04 14:48 Jannis
                   ` (3 preceding siblings ...)
  2013-07-05 11:28 ` Andreas Röhler
@ 2013-07-05 16:41 ` Bob Proulx
  4 siblings, 0 replies; 8+ messages in thread
From: Bob Proulx @ 2013-07-05 16:41 UTC (permalink / raw)
  To: help-gnu-emacs

Jannis wrote:
> if i have several buffers open in emacs in splitted windows and I
> hit Ctr-X Ctr-B to switch to another buffer, the list of buffers
> and, hence, the new buffer always opens in another buffer window
> than the one that is currently my window. Is there any way to change
> this so that I always stay in the same window? I have figured out a
> way to first always click once in all teh windows where I want the
> buffer not to open but this seems very tedious to me.

Have you ever tried electric-buffer-list?  Try it.  You will like it!

  (global-set-key "\C-x\C-b" 'electric-buffer-list) ; originally list-buffers

I love it and wouldn't think of returning to the original list-buffers
routine.

Bob



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

end of thread, other threads:[~2013-07-05 16:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-05  7:51 opening new buffer in active buffer martin rudalics
2013-07-05 11:51 ` Bernardo
  -- strict thread matches above, loose matches on Subject: below --
2013-07-04 14:48 Jannis
2013-07-04 14:59 ` Peter Dyballa
2013-07-04 23:22 ` Bernardo
     [not found] ` <mailman.287.1372980412.12400.help-gnu-emacs@gnu.org>
2013-07-05  1:09   ` Emanuel Berg
2013-07-05 11:28 ` Andreas Röhler
2013-07-05 16:41 ` Bob Proulx

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.