From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?0JrQvtC90YHRgtCw0L3RgtC40L0g0JrRg9C70LjQutC+0LI=?= Newsgroups: gmane.emacs.help Subject: Re: Overriding switch to *scratch* buffer after creating new frame with 'emacsclient -c' Date: Thu, 20 Dec 2012 03:43:12 +0300 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d0401682302043504d13e040b X-Trace: ger.gmane.org 1355964205 14255 80.91.229.3 (20 Dec 2012 00:43:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Dec 2012 00:43:25 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 20 01:43:40 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TlUEa-0007sC-2i for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Dec 2012 01:43:36 +0100 Original-Received: from localhost ([::1]:44018 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlUEM-0002s7-HJ for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Dec 2012 19:43:22 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlUEE-0002r5-Qo for help-gnu-emacs@gnu.org; Wed, 19 Dec 2012 19:43:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TlUED-00020L-Px for help-gnu-emacs@gnu.org; Wed, 19 Dec 2012 19:43:14 -0500 Original-Received: from mail-la0-f54.google.com ([209.85.215.54]:60792) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlUED-00020F-I3 for help-gnu-emacs@gnu.org; Wed, 19 Dec 2012 19:43:13 -0500 Original-Received: by mail-la0-f54.google.com with SMTP id j13so2033471lah.13 for ; Wed, 19 Dec 2012 16:43:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ZWvukAcflVAbh/rPWK++h3cQvvBlMVNrhugWjQ/MC8M=; b=w8ojcWe6JWg4q+ZVCZ/+4Sm283A+jbMMpWslPCAeWRR06Yeiq/wVUgRUD/Y11DAXQV c9buYoufpOzWUvv6Pgze3jyxvcASNVtykeLNDFHw6va2AR3Fd3Nk/UqnOcIBpRLV/UNO z833ByOP0BR8SgLaeG89WlBzDcFybqHjBFOHDQCvRezY5URvdY5QJ3G8yoww7Wtl8TMV g2QuGD7NxNBPC5TbELazEyIPVut8PowIkfUWVL3MAMe8bLzEDrMsGqeMq3m3p18mjafi 36EYkowNr2PSS/U9jXq3Pp0FMMaFgD0QAWsKUkRSttu9VDh3NchOUSKowPOH+bFHH+U/ 7nig== Original-Received: by 10.112.50.138 with SMTP id c10mr3062971lbo.104.1355964192260; Wed, 19 Dec 2012 16:43:12 -0800 (PST) Original-Received: by 10.114.1.51 with HTTP; Wed, 19 Dec 2012 16:43:12 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.215.54 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88239 Archived-At: --f46d0401682302043504d13e040b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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. 2012/12/19 =D0=9A=D0=BE=D0=BD=D1=81=D1=82=D0=B0=D0=BD=D1=82=D0=B8=D0=BD =D0= =9A=D1=83=D0=BB=D0=B8=D0=BA=D0=BE=D0=B2 > 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 switch= ed > 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' ? > > --f46d0401682302043504d13e040b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Heh, found, that it I can set `initial-buffer-choice&= #39; to some file-name and it will be opened instead of switching to *scrat= ch*.
But can't specify buffer without underlying file though.<= br>


2012/12/19 =D0=9A=D0=BE=D0=BD=D1=81=D1=82=D0=B0=D0=BD=D1=82= =D0=B8=D0=BD =D0=9A=D1=83=D0=BB=D0=B8=D0=BA=D0=BE=D0=B2 &= lt;zxnotdead@gmail= .com>
If you run command ema= csclient -c the new frame will be created and then selected window(that hav= e cursor and input focus) of this frame is switched to display *scratch* bu= ffer.
I added hook to `after-make-frame-functions', that already p= erform 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'= ; ?


--f46d0401682302043504d13e040b--