From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 26 08:08:14 2013 Received: (at submit) by debbugs.gnu.org; 26 Mar 2013 12:08:14 +0000 Received: from localhost ([127.0.0.1]:45785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UKSfh-0000UZ-VV for submit@debbugs.gnu.org; Tue, 26 Mar 2013 08:08:14 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47192) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UKSfb-0000UL-MU for submit@debbugs.gnu.org; Tue, 26 Mar 2013 08:08:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKSdH-0008Lk-4a for submit@debbugs.gnu.org; Tue, 26 Mar 2013 08:05:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:54519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKSdH-0008LZ-2H for submit@debbugs.gnu.org; Tue, 26 Mar 2013 08:05:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKSdD-0007dS-Lb for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2013 08:05:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKSdA-0008Jl-Fd for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2013 08:05:35 -0400 Received: from mail-pd0-f179.google.com ([209.85.192.179]:42104) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKSdA-0008JX-9U for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2013 08:05:32 -0400 Received: by mail-pd0-f179.google.com with SMTP id x11so93738pdj.24 for ; Tue, 26 Mar 2013 05:05:30 -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=RfK4IlWIKhGRAqYI2c7xWLOtNFBqXAVHpcTblMeXhnA=; b=QkwkoJbyvgwQH6VMRGh7p7Jjk3551piHQxjOjMpAGYD5Es0M+n99UPNcTxJgS98jE5 H1S3oGHBzaChO8a+K+Dw0iijnBreh/tfYE/ovwidOPGN+RhuOlivy1velWvxyIFcpo2z JF4UrZhqimH+k/a00avM2B1RylUl5BnK4Ilhy5ktjdw72akdWAlfEFeFhnoACLjg5cOg XJi22iku8FPWunxChF5mt/9e9MwB1xrLPe3dxAUMidEXASgXBrZEvjm7xrAlJcfThtFF 2PwBDs09HeRbk6oSAGDiPsym4CNPYw01C/GIlvYKxR4e7sbGlMbNpWPkL+5TY8YTxit+ lZPQ== X-Received: by 10.66.146.70 with SMTP id ta6mr23258341pab.108.1364299530687; Tue, 26 Mar 2013 05:05:30 -0700 (PDT) Received: from [192.168.1.104] ([180.160.161.193]) by mx.google.com with ESMTPS id ve7sm18976821pab.11.2013.03.26.05.05.27 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Mar 2013 05:05:29 -0700 (PDT) Message-ID: <51518F05.4010202@gmail.com> Date: Tue, 26 Mar 2013 20:05:26 +0800 From: Arthur Tu User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 24.3; set-frame-height/width don't work when called first time on daemon mode Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) Sorry I come up with this bug again. I found that i can't reply to my previous bug report. I have the following function added to after-frame-created-functions. (defun my:set-frame-size (&optional frame) (interactive) (unless frame (setq (selected-frame) frame)) (if (display-graphic-p) (progn (tool-bar-mode -1) (message "set frame size") ;; This should be an emacs bug. ;; i have to add a fake operation on frame here. ;; (set-frame-height frame 29) ;; 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 (set-frame-height frame (/ (- (x-display-pixel-height) 200) (frame-char-height))) ;; 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) (set-frame-width frame 120) (set-frame-width frame 80)) ))) (add-hook after-frame-created-functions my:set-frame-size) I have serveral experiments. 1. If i use the code shown before, after 'emacsclient -c -a ""', every emacsclient frame can set width corrently and its height stay unchanged. 2. If i move the part of set width code before set height code, height can be changed correctly while width can't. 3. If i add a fake (set-frame-height(or width) whatever), like that commented by me, I can set both height and width. 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: Lisp Interaction Minor modes in effect: shell-dirtrack-mode: t cygwin-terminal-clipboard-mode: t yas-global-mode: t yas-minor-mode: t global-auto-complete-mode: t auto-complete-mode: t global-semanticdb-minor-mode: t global-semantic-idle-scheduler-mode: t semantic-mode: t global-ede-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 From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 29 21:18:01 2013 Received: (at control) by debbugs.gnu.org; 30 Mar 2013 01:18:01 +0000 Received: from localhost ([127.0.0.1]:51706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ULkQi-0001YY-MN for submit@debbugs.gnu.org; Fri, 29 Mar 2013 21:18:00 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:40852) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ULkQf-0001YQ-OY for control@debbugs.gnu.org; Fri, 29 Mar 2013 21:17:59 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1ULkO6-0005Xn-Iv for control@debbugs.gnu.org; Fri, 29 Mar 2013 21:15:18 -0400 Date: Fri, 29 Mar 2013 21:15:18 -0400 Message-Id: Subject: control message for bug 14049 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.5 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.5 (-----) merge 14056 14049 From unknown Sat Jun 14 18:46:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 20 Oct 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator