From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 25 10:59:04 2013 Received: (at submit) by debbugs.gnu.org; 25 Mar 2013 14:59:04 +0000 Received: from localhost ([127.0.0.1]:44841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UK8rW-0008Of-7F for submit@debbugs.gnu.org; Mon, 25 Mar 2013 10:59:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50891) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <09300720307@fudan.edu.cn>) id 1UJkrz-0005kB-0C for submit@debbugs.gnu.org; Sun, 24 Mar 2013 09:21:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <09300720307@fudan.edu.cn>) id 1UJkpr-0005P0-Kj for submit@debbugs.gnu.org; Sun, 24 Mar 2013 09:19:46 -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.8 required=5.0 tests=BAYES_00,FROM_LOCAL_DIGITS, FROM_LOCAL_HEX,RCVD_IN_DNSWL_LOW,RDNS_NONE autolearn=no version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:50225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <09300720307@fudan.edu.cn>) id 1UJkpr-0005Os-HS for submit@debbugs.gnu.org; Sun, 24 Mar 2013 09:19:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <09300720307@fudan.edu.cn>) id 1UJkpn-000368-60 for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2013 09:19:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <09300720307@fudan.edu.cn>) id 1UJkpj-0005No-T8 for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2013 09:19:39 -0400 Received: from [202.120.224.10] (port=40489 helo=fudan.edu.cn) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <09300720307@fudan.edu.cn>) id 1UJkph-0005MF-UR for bug-gnu-emacs@gnu.org; Sun, 24 Mar 2013 09:19:35 -0400 Received: from [10.147.129.19] (unknown [10.147.129.19]) by app1 (Coremail) with SMTP id uFypXZCLkGqQ+E5RQNLfAw--.16332S2; Sun, 24 Mar 2013 20:58:56 +0800 (CST) Message-ID: <514EF885.1010009@fudan.edu.cn> Date: Sun, 24 Mar 2013 20:58:45 +0800 From: =?UTF-8?B?5raC5Z2a?= <09300720307@fudan.edu.cn> 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-width didn't work in daemon mode Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: uFypXZCLkGqQ+E5RQNLfAw--.16332S2 X-Coremail-Antispam: 1Uf129KBjvJXoW3JF17trWUZF4UXF1DXF1xuFg_yoW3Gw43pa 17J34ak3yrXa48ZF1xtw18Crn8J3s7tF1Ygrn5Jr40qw1UJF1fJr1YqryjqF98Wrn0ga15 ZF1DJ3ZxGa1UC3DanT9S1TB71UUUUUUv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UU Une7k0a2IF6w4kM7kC6x804xWl14x267AKxVWUJVW8JwAFxVCF77xC6IxKo4kEV4yl1I0E scIYIxCEI4klw4CSwwA2z4x0Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20x vEc7CjxVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2jsIE c7CjxVAFwI0_GcCE3s1lnxkEFVAIw20F6cxK64vIFxWl5I8CrVACY4xI64kE6c02F40Ex7 xfMcIj6x8ErcxFaVAv8VW8GwAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_ Jr0_Gr1lF7xvr2IY64vIr41lc7I2V7IY0VAS07AlzVAYIcxG8wCF04k20xvY0x0EwIxGrw C2zVAF1VAY17CE14v26r1j6r15MIIYrxkI7VAKI48JMIIF0xvEx4A2jsIE14v26r1j6r4U MIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU5wFxUUUUU U== X-CM-SenderInfo: aqztiiixsqjimx6i3vldqovvfxof0/ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (barebone) [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 25 Mar 2013 10:59:01 -0400 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.9 (------) I have the following lines in my .emacs file. (defun my:set-frame-size (&optional frame) (interactive) (if frame (select-frame frame)) (if (display-graphic-p) (progn (tool-bar-mode -1) ;; 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 (selected-frame) 120) (set-frame-width (selected-frame) 80)) ;; 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 (selected-frame) (/ (- (x-display-pixel-height) 200) (frame-char-height))) ))) (add-hook 'after-make-frame-functions 'my:set-frame-size frame) However, if i invoke a normal emacs, and create a new frame, both set-frame-width and set-frame-height work well. But if i invoke emacs from 'emacsclient -c -a ""', set-frame-width didn't work. Width should be 120 instead of staying 80. (I have "server-start in the end of my .emacs") I tried to debug it and use message to print width out. Under both conditions, x-display-pixel-width is 1366 and (set-frame-width (selected-frame) 120) is excuted. 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 global-semanticdb-minor-mode: t global-semantic-idle-scheduler-mode: t semantic-mode: t global-ede-mode: t ede-minor-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-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-n C-n C-b C-b C-b C-b C-b C-b 4 C-x C-s 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-a C-k C-k C-x C-s 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-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-k C-k C-x C-s 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-k C-k C-x C-s C-p C-n C-e C-p C-a C-k C-k C-e C-x C-s C-n C-p C-x C-s 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-a C-k C-k C-x C-s C-n C-n C-e C-n C-n C-b M-^ C-x C-s C-n C-n C-n C-n C-n C-n C-n C-e 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-p C-p C-p C-e C-n C-p C-p C-p C-a C-k C-k C-x C-s 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 Recent messages: Wrote /home/Arthur/.emacs Saving file /home/Arthur/.emacs... Wrote /home/Arthur/.emacs (No changes need to be saved) Saving file /home/Arthur/.emacs... Wrote /home/Arthur/.emacs Saving file /home/Arthur/.emacs... Wrote /home/Arthur/.emacs Saving file /home/Arthur/.emacs... Wrote /home/Arthur/.emacs Load-path shadows: /home/Arthur/.emacs.d/el-get/el-get/.dir-locals hides /usr/share/emacs/24.3/lisp/gnus/.dir-locals Features: (shadow sort gnus-util mail-extr 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 thingatpt find-func flymake compile comint ansi-color ring server yasnippet google-this auto-complete-config auto-complete popup auto-complete-autoloads flymake-css-autoloads flymake-cursor-autoloads flymake-hlint-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 cygwin-terminal-clipboard easy-mmode flex-mode derived semantic/db-mode semantic/db semantic/idle semantic/ctxt semantic/sb semantic/sort semantic/format semantic/tag-ls semantic/find semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local ede/cpp-root ede/emacs ede/speedbar ede/files ede ede/base ede/auto ede/source eieio-base eieio-speedbar speedbar sb-image ezimage dframe eieio-custom wid-edit eieio cedet tsdh-dark-theme edmacro kmacro avoid time-date paren uniquify byte-opt warnings linum ido advice advice-preload .loaddefs el-get el-get-autoloads el-get-list-packages el-get-notify help-mode easymenu el-get-dependencies el-get-build el-get-status pp el-get-recipes el-get-byte-compile el-get-methods el-get-fossil el-get-svn el-get-pacman el-get-github-zip el-get-github-tar el-get-http-zip el-get-http-tar el-get-hg el-get-git-svn el-get-fink el-get-emacswiki el-get-http el-get-emacsmirror el-get-github el-get-git el-get-elpa package cl-macs gv el-get-darcs el-get-cvs el-get-bzr el-get-brew el-get-builtin el-get-apt-get el-get-custom el-get-core autoload help-fns bytecomp byte-compile cconv cl cl-lib dired 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) 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 debbugs-submit-bounces@debbugs.gnu.org Fri Sep 22 04:10:28 2017 Received: (at 14049-done) by debbugs.gnu.org; 22 Sep 2017 08:10:28 +0000 Received: from localhost ([127.0.0.1]:52178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvJ2a-0007K8-5Z for submit@debbugs.gnu.org; Fri, 22 Sep 2017 04:10:28 -0400 Received: from mout.gmx.net ([212.227.17.20]:54379) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvJ2X-0007Jq-OD for 14049-done@debbugs.gnu.org; Fri, 22 Sep 2017 04:10:26 -0400 Received: from [192.168.1.100] ([46.125.249.97]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MDm4o-1eADGz0TJm-00HB1k; Fri, 22 Sep 2017 10:10:07 +0200 Message-ID: <59C4C55A.1090104@gmx.at> Date: Fri, 22 Sep 2017 10:10:02 +0200 From: martin rudalics MIME-Version: 1.0 To: =?UTF-8?B?5raC5Z2a?= <09300720307@fudan.edu.cn>, 14049-done@debbugs.gnu.org Subject: Re: bug#14049: 24.3; set-frame-width didn't work in daemon mode References: <514EF885.1010009@fudan.edu.cn> In-Reply-To: <514EF885.1010009@fudan.edu.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:5JIMJW/kFrJ0JmVVk444r2sqsdNxbDD1eVtEnPhw075mK0mXszK VX6KaFeBq3CcI+3242H66pIZMSWFpZ/sIYM4rBZvZ9mQwMS6jvi88+J3XAM1Fkw1vpnzpEg V6WxEVoSSDXf22bc5GwpGb3VkAkQUOrUsZSGD+LLECh/8GwyGUIUDbfLZzlr2VRF37LrTFw GepZlSv1tcaf7ZoGlU5pA== X-UI-Out-Filterresults: notjunk:1;V01:K0:Sg0qDl97enk=:NmzQ/BdBZtgHxKbovBp5KQ gGxSNy8ziu36Jhy9xS9e/iauZ2s9Nts1dVvR8qrt/JDnHC5BJfnxI1myAWDW3uOHrUZl89dD0 d2ffdOjXTcFh+OFAbqBXwgbcSWAR++nU572tNHapU4Fpx7UK3g9rPfUl9AiLO8QXMGQ4lN8F+ TCYfEmf7r/1JEi5CrMyXBsOpOqoOmSUpgZgKbe3bLyKoF2PkMLyS84WGZ3YxWnXCCU4CXWok2 tsUyyaqwJnU5qkXeZKtfm2amRfXN15cdrm1fg1sj/9/PryLNzDJDNXNpFVWUGP/2C8+UD3VYi /h6LWROHYfDV6V0Xm2nv4P4/jVYZl8ZUhYcF5HGLKJ2zgOIPlDHxMXDVrtpnDu7YBXly+XVci nab2sAs1vw+xshf9zekV1mYLgDbCqXC20Nc1qvZr9lX6QZoh19arzIf9qwnnToyopwzqcEK2v jpZ5cX6XhONyl96MFJiiPdpaBep+lrNLsvI3N6cj6fBsTUly0BqWc0bfnpUASZC82lv33ExwV GazQtv2qxopPg0SqZfx155K6cmTQQRcRnryKDYe64UBqmDkcLbC/BRB1z+N165K15qsr9T22r tiIFk21iHmtoWCXUPGyxxu6py0Jd4YaWRk3WB0dmsIEAKHMktE4QspVG7l7mWG7QsXkZJtYJz NgU1JMye+r+xSfpJDGJGPWCnKJEt5yJ39PBZ1r2dsFKfkEbY6owPnevndFyFRjFGUaWd4AYcD npbUgJxcyaHWvj8PITFsnaj/ew/2BBBF+XjKm3ZAZ5+tFVE22d1Psh20Rr63HI3wfdoFZwluE 2MDf4WkAmPfgBQNX5oXI62npcxB1YXxgEc2Vy6VLJV+fz3yyNrsWl9LELcrCkkHQb+iht1e X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 14049-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) > I have the following lines in my .emacs file. > > (defun my:set-frame-size (&optional frame) > (interactive) > (if frame > (select-frame frame)) > (if (display-graphic-p) > (progn > (tool-bar-mode -1) > ;; 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 (selected-frame) 120) > (set-frame-width (selected-frame) 80)) > ;; 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 (selected-frame) > (/ (- (x-display-pixel-height) 200) > (frame-char-height))) > ))) > > (add-hook 'after-make-frame-functions 'my:set-frame-size frame) > > However, if i invoke a normal emacs, and create a new frame, both > set-frame-width and set-frame-height work well. > > But if i invoke emacs from 'emacsclient -c -a ""', set-frame-width > didn't work. Width should be 120 instead of staying 80. (I have > "server-start in the end of my .emacs") > > I tried to debug it and use message to print width out. Under both > conditions, x-display-pixel-width is 1366 and (set-frame-width > (selected-frame) 120) is excuted. > > > > > In GNU Emacs 24.3.1 (i686-pc-cygwin) > of 2013-03-11 on fiona > Windowing system distributor `Microsoft Corp.', version 6.1.7601 I have been looking into this (and the related 14056) now. With a more simple scenario using (defun my-set-frame-size (&optional frame) (tool-bar-mode -1) (set-frame-width frame 30) (set-frame-height frame 10)) (add-hook 'after-make-frame-functions 'my-set-frame-size) (server-start) in the server Emacs, I can reproduce the bug for a 24.2.92.1 native Windows build I happen to have around here. For that build, the client frame indeed does not support the requested height but uses the default initial height instead. I cannot reproduce the bug for any later build I have here including one of 24.5.50.1. So I suppose that the bug has been fixed somewhere in between these two builds and mark this bug as done. Very belated thanks for the report, martin From unknown Sun Jun 15 09:00:35 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