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#16028: 24.3.50; Latest build completely breaks my thumnail frames code Date: Wed, 11 Dec 2013 20:27:25 -0800 (PST) Message-ID: References: <746cd4cb-c69d-4cff-8dee-f7ccde3cb2f4@default> <52A1E5A6.3010901@gmx.at> <52A1F967.5070403@gmx.at> <6ee939f5-138d-4e5c-830e-8a20f8e45bea@default> <52A207C5.4070404@gmx.at> <12e899a3-dbf2-4b44-9b87-a0b9fc24f317@default> <52A2EE7B.4030105@gmx.at> <723644fb-f171-4bed-b8d0-7f9a1c8b9f7d@default> <52A4428F.4030101@gmx.at> <600e7b0c-73bb-4163-8d03-a8579f250045@default> <52A4B23E.9080609@gmx.at> <837gbeymiy.fsf@gnu.org> <52A60DD2.1020303@gmx.at> <83r49lxsxf.fsf@gnu.org> <52A6ED85.8020206@gmx.at> <52A6F1C4.3040803@gmx.at> <941b1292-a5c6-442d-afe8-d83aebf4b41c@default> <52A734F2.8020203@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1386822501 9275 80.91.229.3 (12 Dec 2013 04:28:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Dec 2013 04:28:21 +0000 (UTC) Cc: 16028@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 12 05:28:26 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 1Vqxst-0006EN-0e for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Dec 2013 05:28:23 +0100 Original-Received: from localhost ([::1]:33271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vqxss-0007XK-JF for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Dec 2013 23:28:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vqxsg-0007Ws-Ui for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2013 23:28:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqxsY-0006Io-CR for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2013 23:28:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqxsY-0006Ik-9a for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2013 23:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VqxsX-0005fc-Oo for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2013 23:28:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Dec 2013 04:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16028 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16028-submit@debbugs.gnu.org id=B16028.138682245221755 (code B ref 16028); Thu, 12 Dec 2013 04:28:01 +0000 Original-Received: (at 16028) by debbugs.gnu.org; 12 Dec 2013 04:27:32 +0000 Original-Received: from localhost ([127.0.0.1]:44583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vqxs4-0005ep-4v for submit@debbugs.gnu.org; Wed, 11 Dec 2013 23:27:32 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:36973) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vqxs2-0005eh-Et for 16028@debbugs.gnu.org; Wed, 11 Dec 2013 23:27:31 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id rBC4RSaV005465 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 12 Dec 2013 04:27:28 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBC4RRIc007381 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Dec 2013 04:27:27 GMT Original-Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBC4RRcZ007376; Thu, 12 Dec 2013 04:27:27 GMT In-Reply-To: <52A734F2.8020203@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:81799 Archived-At: > > Switch the order of the two calls to `modify-frame-parameters' > > and the bug is manifested again. >=20 > Yes. As a rule always resize the frame last. FWIW/FYI: I was hoping that that might be a simple solution to my problem. I tried switching the order, doing the other frame changes before shrinking or enlarging the font. Unfortunately, that did not work at all. It made a big mess, in all Emacs versions. For one thing, each shrinking/enlargement magnified the scale of zoom out/in over the previous one. I.e., each shrinking/enlargement was greater than the enlargement/shrinking that immediately preceded it (not just greater than the last shrinking/enlargement). You can see this easily in emacs -Q by (loading frame-fns.el, then frame-cmds.el, then) loading thumb-frm.el but with the calls to `enlarge-font' moved after the `modify-frame-parameters' calls. E.g., for thumbify: (when tf-params (modify-frame-parameters frame tf-params)) (when thumfr-next-stack-xoffset (set-frame-position frame thumfr-next-stack-xoffset thumfr-next-stack-yoffset) (setq thumfr-next-stack-xoffset nil thumfr-next-stack-yoffset nil)) (modify-frame-parameters frame thumfr-frame-parameters) ;; Trying this last, not first. (enlarge-font (- thumfr-font-difference) frame) And for dethumbify: (modify-frame-parameters frame non-tf-params) ;; Trying this last, not first. (enlarge-font thumfr-font-difference frame) I had to quickly revert to the regular code I use, which calls `enlarge-font' first, not last.