From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Arthur Tu Newsgroups: gmane.emacs.bugs Subject: bug#13956: 24.3; An initial frame already exists before reading .emacs on daemon mode Date: Thu, 14 Mar 2013 17:27:46 +0800 Message-ID: <51419812.9080009@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1363276217 20698 80.91.229.3 (14 Mar 2013 15:50:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Mar 2013 15:50:17 +0000 (UTC) To: 13956@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 14 16:50:42 2013 Return-path: Envelope-to: geb-bug-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 1UGAQO-0001cv-KB for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Mar 2013 16:50:36 +0100 Original-Received: from localhost ([::1]:40306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGAQ2-00088V-4N for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Mar 2013 11:50:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGAPm-0007p5-Vz for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2013 11:50:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGAPf-00052U-Jt for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2013 11:49:58 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGAPf-000529-EN for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2013 11:49:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UGAQo-0004Wp-Hf for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2013 11:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arthur Tu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Mar 2013 15:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13956 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.136327623717363 (code B ref -1); Thu, 14 Mar 2013 15:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Mar 2013 15:50:37 +0000 Original-Received: from localhost ([127.0.0.1]:54271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGAQN-0004Vz-0j for submit@debbugs.gnu.org; Thu, 14 Mar 2013 11:50:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:32854) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UG4TX-0002cd-Cd for submit@debbugs.gnu.org; Thu, 14 Mar 2013 05:29:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UG4SB-0003U1-HY for submit@debbugs.gnu.org; Thu, 14 Mar 2013 05:28:11 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:55844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG4SB-0003Tx-EF for submit@debbugs.gnu.org; Thu, 14 Mar 2013 05:28:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG4S7-0003zw-QJ for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2013 05:28:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UG4S0-0003RV-KP for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2013 05:27:59 -0400 Original-Received: from mail-pd0-f175.google.com ([209.85.192.175]:47136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UG4S0-0003RP-BJ for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2013 05:27:52 -0400 Original-Received: by mail-pd0-f175.google.com with SMTP id r11so36983pdi.20 for ; Thu, 14 Mar 2013 02:27:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:disposition-notification-to:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=MDsrzrGxwJBz4Np2xn6utitoYciT8f+JuA4paAU0Eoc=; b=vVzFo871CtmgQMWJhFtnvKECLJH7DQh0fNkrjBlHVTVf+HsJyNcqLm0lwW7V+bD43B 5yS/X5aFfSCKDzj9foSRpnDF3XQXHNEDOqgluwpn9VMopbjb7WjmH19vcWq4rAZZngEB DG15XierqCFC7bKKP3xUT/wluu5plkmV8g4/Xszag+zg3mokM22HRfzomRbWFDPDgR2i 61XgmZzd/vBzcwZRndQV01BmevUc8shw8/IYIBl+eTdTVn0UAqU+QCvbmU9rX5oefW9F VbrE4gmeQ/IQUZyxWkZ59EXILUyNlhhLcvtQxydu2GASB4LcKaQNaQRbZuiH5Z20hroM l9XQ== X-Received: by 10.68.143.167 with SMTP id sf7mr4087436pbb.21.1363253270847; Thu, 14 Mar 2013 02:27:50 -0700 (PDT) Original-Received: from [192.168.1.104] ([180.160.159.99]) by mx.google.com with ESMTPS id qb10sm2386510pbb.43.2013.03.14.02.27.48 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Mar 2013 02:27:50 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Thu, 14 Mar 2013 11:50:33 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:72475 Archived-At: I want to call emacsclient to edit my file after start emacs server once manually. I have following code in my .emacs: (defun set-frame () (interactive) ;;(setq initial-frame-alist '((width . 80) (height . 20) (menu-bar-lines . 1))) (progn ;; use 120 char wide window for largeish displays ;; and smaller 80 column windows for smaller displays ;; pick whatever numbers make sense for you (if (> (x-display-pixel-width) 1280) (add-to-list 'default-frame-alist (cons 'width 120)) (add-to-list 'default-frame-alist (cons 'width 120))) ;; for the height, subtract a couple hundred pixels ;; from the screen height (for panels, menubars and ;; whatnot), then divide by the height of a char to ;; get the height we want (add-to-list 'default-frame-alist (cons 'height (/ (- (x-display-pixel-height) 250) (frame-char-height)))) )) (add-hook 'after-init-hook ;; ask user whether to restore desktop at start-up (lambda () (if initial-window-system (set-frame) (add-hook 'server-visit-hook 'set-frame)))) However, the first emacsclient frame can't be set to the size i want. I don't know if this bug is in cygwin branch only or global. Help please. In GNU Emacs 24.3.1 (i686-pc-cygwin) of 2013-03-11 on fiona Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure '--srcdir=/home/kbrown/src/cygemacs/emacs-24.3-1/src/emacs-24.3' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--libexecdir=/usr/lib' '--datadir=/usr/share' '--localstatedir=/var' '--sysconfdir=/etc' '--datarootdir=/usr/share' '--docdir=/usr/share/doc/emacs' '-C' '--with-w32' 'CC=gcc' 'CFLAGS=-ggdb -O2 -pipe -fdebug-prefix-map=/home/kbrown/src/cygemacs/emacs-24.3-1/build=/usr/src/debug/emacs-24.3-1 -fdebug-prefix-map=/home/kbrown/src/cygemacs/emacs-24.3-1/src/emacs-24.3=/usr/src/debug/emacs-24.3-1' 'LDFLAGS=-L/usr/lib/ncursesw' 'LIBS=' 'CPPFLAGS=-I/usr/include/ncursesw'' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: yas-global-mode: t yas-minor-mode: t google-this-mode: t global-auto-complete-mode: t auto-complete-mode: t cygwin-terminal-clipboard-mode: t show-paren-mode: t global-linum-mode: t linum-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-f h o ~ ~ h o . e C-v C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p C-p C-n C-l C-l C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n M-x r e p o r C-g M-x t o o l = b a - b a r M-x r e p o r Recent messages: [yas] Loading for `c-mode', just-in-time: (yas--load-directory-1 /home/Arthur/.emacs.d/elpa/yasnippet-20130218.2229/snippets/c-mode (quote c-mode) (quote (cc-mode)))! [yas] Loading compiled snippets from /home/Arthur/.emacs.d/elpa/yasnippet-20130218.2229/snippets/c-mode [yas] Loading for `cc-mode', just-in-time: (yas--load-directory-1 /home/Arthur/.emacs.d/elpa/yasnippet-20130218.2229/snippets/cc-mode (quote cc-mode) (quote (text-mode)))! [yas] Loading compiled snippets from /home/Arthur/.emacs.d/elpa/yasnippet-20130218.2229/snippets/cc-mode When done with a buffer, type C-x # When done with this frame, type C-x 5 0 [3 times] byte-code: Beginning of buffer [7 times] Quit Making completion list... Tool-Bar mode disabled Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr cus-start cus-load emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils flymake-cursor byte-opt warnings bytecomp byte-compile cconv flymake compile comint ansi-color ring cc-langs cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs server yasnippet help-mode easymenu google-this auto-complete-config auto-complete cl-macs gv popup cl auto-complete-autoloads flymake-css-autoloads flymake-cursor-autoloads flymake-php-autoloads flymake-python-pyflakes-autoloads flymake-shell-autoloads flymake-easy-autoloads google-this-autoloads google-translate-autoloads guess-offset-autoloads haskell-mode-autoloads mmm-mode-autoloads php-mode-autoloads popup-autoloads w32-browser-autoloads yasnippet-autoloads package cygwin-terminal-clipboard easy-mmode flex-mode derived tsdh-dark-theme edmacro kmacro avoid time-date paren uniquify linum ido advice help-fns cl-lib advice-preload tooltip ediff-hook vc-hooks lisp-float-type mwheel w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind w32 multi-tty emacs)