all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Overriding switch to *scratch* buffer after creating new frame with 'emacsclient -c'
@ 2012-12-19 13:14 Константин Куликов
  2012-12-20  0:43 ` Константин Куликов
  0 siblings, 1 reply; 11+ messages in thread
From: Константин Куликов @ 2012-12-19 13:14 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 458 bytes --]

If you run command emacsclient -c the new frame will be created and then
selected window(that have cursor and input focus) of this frame is switched
to display *scratch* buffer.
I added hook to `after-make-frame-functions', that already perform
switching to another buffer that I need, but it's then switched to
*scratch*.
Can I somehow override this behaviour, by disabling switching to *scratch*
buffer in new frame, that was created by 'emacsclient -c' ?

[-- Attachment #2: Type: text/html, Size: 545 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: Overriding switch to *scratch* buffer after creating new frame with 'emacsclient -c'
@ 2012-12-20  9:59 martin rudalics
  0 siblings, 0 replies; 11+ messages in thread
From: martin rudalics @ 2012-12-20  9:59 UTC (permalink / raw)
  To: zxnotdead; +Cc: help-gnu-emacs

 > Heh, found, that it I can set `initial-buffer-choice' to some
 > file-name and it will be opened instead of switching to *scratch*.
 > But can't specify buffer without underlying file though.

I wonder which buffer you want to display here if it doesn't correspond
to a file.

martin



^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <CAFkz2yroLhknptDnWyC9B1fbZKEwTCV-T0VttHQiwZoaAW-j6A@mail.gmail.com>]

end of thread, other threads:[~2012-12-22 17:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-19 13:14 Overriding switch to *scratch* buffer after creating new frame with 'emacsclient -c' Константин Куликов
2012-12-20  0:43 ` Константин Куликов
  -- strict thread matches above, loose matches on Subject: below --
2012-12-20  9:59 martin rudalics
     [not found] <CAFkz2yroLhknptDnWyC9B1fbZKEwTCV-T0VttHQiwZoaAW-j6A@mail.gmail.com>
2012-12-20  8:36 ` Константин Куликов
2012-12-20 11:05   ` Overriding switch to *scratch* buffer after creating new frame with 'emacsclient -c' martin rudalics
2012-12-20 12:13     ` Константин Куликов
     [not found]     ` <CAFkz2ypcP-fmRH7jJWdhYRaRVB-VEtn0=5qWYQ_S+QCTmZ=TRQ@mail.gmail.com>
2012-12-20 13:52       ` martin rudalics
2012-12-20 14:46         ` Thien-Thi Nguyen
2012-12-20 17:06           ` Stefan Monnier
2012-12-21 13:10             ` Thien-Thi Nguyen
2012-12-21 15:43               ` Constantin Kulikov
2012-12-22 17:46               ` Stefan Monnier

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.