From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Khesin Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#2401: 23.0.90; set-frame-width does not take effect immediately? Date: Thu, 19 Feb 2009 23:05:53 -0500 (EST) Message-ID: <20090220040553.77C342544F0@localhost> Reply-To: Alex Khesin , 2401@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1235126841 11723 80.91.229.12 (20 Feb 2009 10:47:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Feb 2009 10:47:21 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 20 11:48:37 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LaSvp-00050s-C2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Feb 2009 11:48:34 +0100 Original-Received: from localhost ([127.0.0.1]:55555 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LaSuU-00057M-Tn for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Feb 2009 05:47:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LaMvO-0000F4-CX for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2009 23:23:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LaMvN-0000EN-La for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2009 23:23:42 -0500 Original-Received: from [199.232.76.173] (port=55863 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LaMvN-0000EG-J1 for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2009 23:23:41 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35019) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LaMvN-00072v-2P for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2009 23:23:41 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1K4Na0n027887; Thu, 19 Feb 2009 20:23:36 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1K4F4Te025373; Thu, 19 Feb 2009 20:15:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Alex Khesin Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 20 Feb 2009 04:15:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2401 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123510276923736 (code B ref -1); Fri, 20 Feb 2009 04:15:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 20 Feb 2009 04:06:09 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1K465Io023728 for ; Thu, 19 Feb 2009 20:06:07 -0800 Original-Received: from mail.gnu.org ([199.232.76.166]:50838 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LaMcG-0001Mb-FX for emacs-pretest-bug@gnu.org; Thu, 19 Feb 2009 23:03:56 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LaMeG-0005KW-Lv for emacs-pretest-bug@gnu.org; Thu, 19 Feb 2009 23:06:04 -0500 Original-Received: from smtp-out.google.com ([216.239.45.13]:48938) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LaMeG-0005Jq-9B for emacs-pretest-bug@gnu.org; Thu, 19 Feb 2009 23:06:00 -0500 Original-Received: from zps36.corp.google.com (zps36.corp.google.com [172.25.146.36]) by smtp-out.google.com with ESMTP id n1K45tcr001841 for ; Thu, 19 Feb 2009 20:05:56 -0800 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1235102756; bh=knoVYKlceJ2ojTb7NIX49cmoOWE=; h=DomainKey-Signature:From:To:Subject:MIME-version:Content-type: Content-Transfer-Encoding:Message-Id:Date:X-System-Of-Record; b=sy Vhys5h0eLEwQG5DSmwugNkl9WU4kkphiQwtWnbZ0kv29AavdHomQppzUTA9y2F3RoRU GbQRIAc1XgxR7RewQ== DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=from:to:subject:mime-version:content-type: content-transfer-encoding:message-id:date:x-system-of-record; b=Ib0RkA7yuukmmwwlYr6MBlCVl54RBE7DvzUeVymzsrt1dXZgOKyME0iAvN8NK88ed s1xmpl55dvsWvcfXWjoZQ== Original-Received: from localhost (alexk-warp.nyc.corp.google.com [172.26.79.129]) by zps36.corp.google.com with ESMTP id n1K45roT018426 for ; Thu, 19 Feb 2009 20:05:54 -0800 Original-Received: by localhost (Postfix, from userid 9424) id 77C342544F0; Thu, 19 Feb 2009 23:05:53 -0500 (EST) X-System-Of-Record: true X-MIME-Autoconverted: from 8bit to quoted-printable by smtp-out.google.com id n1K45tcr001841 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 19 Feb 2009 23:23:42 -0500 X-Mailman-Approved-At: Fri, 20 Feb 2009 05:47:02 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25506 gmane.emacs.pretest.bugs:23952 Archived-At: Consider the following function (defun test-split-window () (interactive) (delete-other-windows) (set-frame-width (selected-frame) 80) (set-frame-width (selected-frame) 163) (split-window-horizontally -80)) Up to about a month ago, CVS emacs used to end up with a frame containing= two 80-characters-wide windows after executing test-split-window. I upd= ated to the latest CVS earlier today, and I now get one of two behaviors:= either the frame is made 80 wide but split in two, or the frame becomes = 163 wide, but not split at all, with "Window width 0 (after splitting)" e= rror message. Adding short sleeps after set-frame-width fixes it: (defun test-split-window () (interactive) (delete-other-windows) (set-frame-width (selected-frame) 80) (sleep-for 0 500) (set-frame-width (selected-frame) 163) (sleep-for 0 500) (split-window-horizontally -80)) Executing the set-frame-window and split-window-horizontally by hand, one= after another, also has the desirable effect. It looks like set-frame-width does not take effect immediately anymore. In GNU Emacs 23.0.90.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.12.9) of 2009-02-19 on alexk-warp.nyc.corp.google.com Windowing system distributor `The X.Org Foundation', version 11.0.6090000= 0 configured using `configure '--with-x'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: C value of $LC_NUMERIC: C value of $LC_TIME: C value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Help Minor modes in effect: googlemenu-mode: t which-function-mode: t desktop-save-mode: t recentf-mode: t cua-mode: t show-paren-mode: t savehist-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-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 view-mode: t Recent input: =20 C-c C-x b =20 C-=E2=88=9A C-v =20 M-x e v a k =20 l - r e g M-x a k - d o =20 M-x a k - s i n M-x =20 =20 =20 =20 =20 =20 =20 C-c M-x r e=20 p o r t - e m a a =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 M-x m a k e - f r =20 C-x m n C-x m y a l e k x k =20 @ k h e s i n . c o m e s t =20 t e s t t e s t i n g =20 C-c C-s C-x k M-x a k - s i n =20 =20 M-x=20 a k - d o M-x a k - d o =20 M-x a k - d M-x a k - s i n =20 M-x a k - d o M-x M-x=20 a k s i n =20 M-x =20 M-x C-r b u g Recent messages: byte-code: Beginning of buffer byte-code: End of buffer [5 times] byte-code: Beginning of buffer [4 times] Auto-saving... Auto-saving *mail*: Opening output file: no such file or directory, /tmp/= alexk/emacs_autosaves/home/alexk/#%*mail*# Unsent message being composed; erase it? (y or n)=20 sendmail-user-agent-compose: Message aborted Unsent message being composed; erase it? (y or n)=20 Sending...done split-window-horizontally: Window width 0 too small (after splitting) [3 = times]