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: Overriding switch to *scratch* buffer after creating new frame with 'emacsclient -c' Date: Wed, 19 Dec 2012 16:14:50 +0300 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d043bdc583eb30404d1346683 X-Trace: ger.gmane.org 1355922903 22518 80.91.229.3 (19 Dec 2012 13:15:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Dec 2012 13:15:03 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 19 14:15:19 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 1TlJUU-0006SS-9n for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Dec 2012 14:15:18 +0100 Original-Received: from localhost ([::1]:46984 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlJUE-00077C-WD for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Dec 2012 08:15:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlJU9-00076b-Gg for help-gnu-emacs@gnu.org; Wed, 19 Dec 2012 08:14:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TlJU4-00073O-7F for help-gnu-emacs@gnu.org; Wed, 19 Dec 2012 08:14:57 -0500 Original-Received: from mail-wg0-f51.google.com ([74.125.82.51]:50178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlJU4-00072p-0b for help-gnu-emacs@gnu.org; Wed, 19 Dec 2012 08:14:52 -0500 Original-Received: by mail-wg0-f51.google.com with SMTP id gg4so886285wgb.18 for ; Wed, 19 Dec 2012 05:14:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ipufNTwJFcAUT+37U4yg5L7W3tWPmGi+R38HzHM/05o=; b=ztgA9G80Rc+yzDciQCUqfWH5ibrg0yMJrpoJkJdjgBkrQUsLCE6rgOLVKiyMaXRF61 diTdJADGRyqT6uZB0UKADbNUuOLW2aSibu9/8fiYuVALRRCXazhc0DW3jBB5bDf1ULnp Y88dlk0+WD2nBkz//dlFcoCxdmywqK8/oE839Pbts+dDciZu588dQPhDkTS2uU5qMx9Y uM1xYB6uxJllW5XvyTQYxwXvoQNdud6JsfEhAtigmQ9uwPCrBpOmhIxsxKbO5sTzn5gF 8I23guuR+N+36aSRfGMRfieYm1+p5IKJGXfUpiHM81EDOEuJfRxIFfp9/NwhHEuG7B8O K4zw== Original-Received: by 10.180.96.41 with SMTP id dp9mr10629171wib.8.1355922890732; Wed, 19 Dec 2012 05:14:50 -0800 (PST) Original-Received: by 10.217.47.138 with HTTP; Wed, 19 Dec 2012 05:14:50 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 74.125.82.51 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:88218 Archived-At: --f46d043bdc583eb30404d1346683 Content-Type: text/plain; charset=UTF-8 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' ? --f46d043bdc583eb30404d1346683 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
If you run command emacsclient -c the new frame will = be created and then selected window(that have cursor and input focus) of th= is frame is switched to display *scratch* buffer.
I added hoo= k to `after-make-frame-functions', that already perform switching to an= other 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'= ; ?

--f46d043bdc583eb30404d1346683--