From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#16923: 24.3.50; reression: `set-frame-size' loses mode line Date: Fri, 28 Mar 2014 08:29:59 -0700 (PDT) Message-ID: References: <3f31643f-2638-4ada-8dc4-b3069f3a82fc@default> <531780D7.6070109@gmx.at> <291bd9d5-923f-440a-821a-06f585557e67@default> <5318AFD9.4000208@gmx.at> <8be91728-fcea-4e74-afff-db6a55b52985@default> <5318C478.1090007@gmx.at> <0f1c6cae-f9cd-4a2b-a662-bcc4116daafc@default> <5318E810.7000705@gmx.at> <531977B2.8030109@gmx.at> <531A0655.5040400@gmx.at> <5e0232ee-58e3-42a3-8102-e12e8e605b2b@default> <531A11BE.5070300@gmx.at> <738285f8-0119-49cd-b5b5-7e9607fadff3@default> <531ADEBC.9030200@gmx.at> <1cb471a0-5db3-4c77-90ff-ed8aa2c9bd0b@default> <531B6875.6030406@gmx.at> <03e5d7cc-2348-42e4-9e39-1166b120ea2b@default> <531B7564.6030700@gmx.at> <68c9bbe6-4347-4b80-8860-8b76e08f1137@default> <531C72F2.4080608@gmx.at> <2bd68fd8-79a5-49be-80fe-c53d4a689320@default> <531CAF45.4090307@gmx.at> <531D8024.6000501@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="__1396020599609230019abhmp0015.oracle.com" X-Trace: ger.gmane.org 1396020692 30496 80.91.229.3 (28 Mar 2014 15:31:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Mar 2014 15:31:32 +0000 (UTC) Cc: 16923@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 28 16:31:40 2014 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 1WTYkk-0008Fu-QG for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Mar 2014 16:31:31 +0100 Original-Received: from localhost ([::1]:34212 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTYkk-0005pK-E7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Mar 2014 11:31:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTYkU-0005a4-VR for bug-gnu-emacs@gnu.org; Fri, 28 Mar 2014 11:31:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTYkJ-0002p8-3s for bug-gnu-emacs@gnu.org; Fri, 28 Mar 2014 11:31:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTYkJ-0002p3-0f for bug-gnu-emacs@gnu.org; Fri, 28 Mar 2014 11:31:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WTYkI-0007Ub-EM for bug-gnu-emacs@gnu.org; Fri, 28 Mar 2014 11:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Mar 2014 15:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16923 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 16923-submit@debbugs.gnu.org id=B16923.139602061028681 (code B ref 16923); Fri, 28 Mar 2014 15:31:02 +0000 Original-Received: (at 16923) by debbugs.gnu.org; 28 Mar 2014 15:30:10 +0000 Original-Received: from localhost ([127.0.0.1]:55009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WTYjQ-0007SB-91 for submit@debbugs.gnu.org; Fri, 28 Mar 2014 11:30:09 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:42486) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WTYjK-0007RP-Rs for 16923@debbugs.gnu.org; Fri, 28 Mar 2014 11:30:04 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s2SFU0EN020679 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 28 Mar 2014 15:30:01 GMT Original-Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s2SFTxAZ004162 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 28 Mar 2014 15:30:00 GMT Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s2SFTxYH010858; Fri, 28 Mar 2014 15:29:59 GMT In-Reply-To: <531D8024.6000501@gmx.at> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:87488 Archived-At: --__1396020599609230019abhmp0015.oracle.com Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Trying to pick up this bug thread again. I'm afraid your last mail is confusing to me at this point. This is what I've done for this test: 1. Ensure, I think, that the only calls to `set-frame-size' are from my calling `fit-frame' interactively (via C-x C-_). Nothing on `post-command-hook' that invokes `set-frame-size', for instance. 2. Resized a frame manually (with the mouse), so that the next call to `fit-frame' would actually change the size (to fit the buffer text). 3. C-x C-_ (`fit-frame'), which fit the frame, with no loss of the mode line. 4. C-x C-_ again, which fit the frame (as a no-op, no size change needed), this time with loss of the mode line (the bug). Attached is the log, *window-frame-dump*. After #3, I added a line of zeros to the buffer, to make clear where the second call to `fit-frame' (hence `set-frame-size') occurred. The relevant lines from `fit-frame' are these: (with-current-buffer (get-buffer-create "*window-frame-dump*") (insert (format "::: Requested WIDTH: %S, HEIGHT: %S\n" wid hgt))) (set-frame-size frame wid hgt)))))) And this is the `window-dump-frame' code I used: (defun window--dump-frame (&optional window-or-frame) "..." (interactive) (let* ((window =09 (cond =09 ((or (not window-or-frame) =09=09(frame-live-p window-or-frame)) =09 (frame-root-window window-or-frame)) =09 ((or (window-live-p window-or-frame) =09=09(window-child window-or-frame)) =09 window-or-frame) =09 (t =09 (frame-root-window)))) =09 (frame (window-frame window))) (with-current-buffer (get-buffer-create "*window-frame-dump*") ;;(erase-buffer) (insert (format "\nframe pixel: %s x %s cols/lines: %s x %s \ units: %s x %s\n" =09 (frame-pixel-width frame) (frame-pixel-height frame) =09 (frame-total-cols frame) (frame-text-lines frame) =09 (frame-char-width frame) (frame-char-height frame)) (format "frame text pixel: %s x %s cols/lines: %s x %s\n" =09 (frame-text-width frame) (frame-text-height frame) =09 (frame-text-cols frame) (frame-text-lines frame)) (format "tool: %s scroll: %s fringe: %s border: %s \ right: %s bottom: %s\n" =09 (tool-bar-height frame t) =09 (frame-scroll-bar-width frame) =09 (frame-fringe-width frame) =09 (frame-border-width frame) =09 (frame-right-divider-width frame) =09 (frame-bottom-divider-width frame)) (format "w32-rect: %S, %S\n" (w32-frame-rect frame) (w32-frame-rect frame t))) (walk-window-tree 'window--dump-window frame t t)))) HTH. --__1396020599609230019abhmp0015.oracle.com Content-Type: text/plain; charset=Windows-1252; name="throw-bug-16923-2014-03-27a.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="throw-bug-16923-2014-03-27a.txt" ------------ frame pixel: 511 x 528 cols/lines: 73 x 44 units: 7 x 12 frame text pixel: 490 x 528 cols/lines: 70 x 44 tool: 0 scroll: 21 fringe: 0 border: 0 right: 2 bottom: 2 w32-rect: (0 0 519 608), (0 0 511 528) # parent: nil pixel left: 0 top: 0 size: 511 x 528 new: 0 char left: 0 top: 0 size: 73 x 44 new: 0 normal: 1.0 x 1.0 new: 0 body pixel: 490 x 514 char: 70 x 42 width left fringe: 0 left margin: 0 right margin: 0 width right fringe: 0 scroll-bar: 21 divider: 0 height header-line: 0 mode-line: 14 divider: 0 ::: Requested WIDTH: 101, HEIGHT: 69 frame pixel: 728 x 828 cols/lines: 104 x 69 units: 7 x 12 frame text pixel: 707 x 828 cols/lines: 101 x 69 tool: 0 scroll: 21 fringe: 0 border: 0 right: 2 bottom: 2 w32-rect: (0 0 736 884), (0 0 728 804) # parent: nil pixel left: 0 top: 0 size: 728 x 828 new: 0 char left: 0 top: 0 size: 104 x 69 new: 0 normal: 1.0 x 1.0 new: 0 body pixel: 707 x 814 char: 101 x 67 width left fringe: 0 left margin: 0 right margin: 0 width right fringe: 0 scroll-bar: 21 divider: 0 height header-line: 0 mode-line: 14 divider: 0 0000000000000000000000000000000000000000000000000000000 ------------ frame pixel: 728 x 804 cols/lines: 104 x 67 units: 7 x 12 frame text pixel: 707 x 804 cols/lines: 101 x 67 tool: 0 scroll: 21 fringe: 0 border: 0 right: 2 bottom: 2 w32-rect: (0 0 736 884), (0 0 728 804) # parent: nil pixel left: 0 top: 0 size: 728 x 804 new: 0 char left: 0 top: 0 size: 104 x 67 new: 0 normal: 1.0 x 1.0 new: 0 body pixel: 707 x 790 char: 101 x 65 width left fringe: 0 left margin: 0 right margin: 0 width right fringe: 0 scroll-bar: 21 divider: 0 height header-line: 0 mode-line: 14 divider: 0 ::: Requested WIDTH: 101, HEIGHT: 69 frame pixel: 728 x 828 cols/lines: 104 x 69 units: 7 x 12 frame text pixel: 707 x 828 cols/lines: 101 x 69 tool: 0 scroll: 21 fringe: 0 border: 0 right: 2 bottom: 2 w32-rect: (0 0 736 884), (0 0 728 804) # parent: nil pixel left: 0 top: 0 size: 728 x 828 new: 0 char left: 0 top: 0 size: 104 x 69 new: 0 normal: 1.0 x 1.0 new: 0 body pixel: 707 x 814 char: 101 x 67 width left fringe: 0 left margin: 0 right margin: 0 width right fringe: 0 scroll-bar: 21 divider: 0 height header-line: 0 mode-line: 14 divider: 0 --__1396020599609230019abhmp0015.oracle.com--