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: Fri, 6 Dec 2013 08:43:35 -0800 (PST) Message-ID: <6ee939f5-138d-4e5c-830e-8a20f8e45bea@default> References: <<8dee88e8-6b12-4822-9586-e013328f2ddc@default>> <<529CCE7F.3070400@gmx.at>> <<52A08780.9020405@gmx.at>> <<3df21358-48ca-4150-9f0e-aa2dbf78cbcb@default>> <<360e0ca4-7e4a-4f11-8157-c8f69e4ce913@default>> <<52A188D8.60608@gmx.at>> <<83txem1i7m.fsf@gnu.org>> <746cd4cb-c69d-4cff-8dee-f7ccde3cb2f4@default> <52A1E5A6.3010901@gmx.at> <52A1F967.5070403@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 1386353682 4781 80.91.229.3 (6 Dec 2013 18:14:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Dec 2013 18:14:42 +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 Fri Dec 06 19:14:43 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 1VozvG-0000OT-VS for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Dec 2013 19:14:43 +0100 Original-Received: from localhost ([::1]:60919 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VozvF-0008Sn-UL for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Dec 2013 13:14:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoyVf-0006vL-6v for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2013 11:44:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoyVW-0005cQ-K3 for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2013 11:44:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoyVW-0005cF-E1 for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2013 11:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VoyVV-0007n7-VJ for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2013 11:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Dec 2013 16:44: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.138634822329912 (code B ref 16028); Fri, 06 Dec 2013 16:44:01 +0000 Original-Received: (at 16028) by debbugs.gnu.org; 6 Dec 2013 16:43:43 +0000 Original-Received: from localhost ([127.0.0.1]:34344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VoyVC-0007mM-NA for submit@debbugs.gnu.org; Fri, 06 Dec 2013 11:43:43 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:30902) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VoyVA-0007mC-1e for 16028@debbugs.gnu.org; Fri, 06 Dec 2013 11:43:40 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id rB6GhbsU013973 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 6 Dec 2013 16:43:38 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rB6Ghaul023292 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 6 Dec 2013 16:43:37 GMT Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rB6GhaFi012959; Fri, 6 Dec 2013 16:43:36 GMT In-Reply-To: <52A1F967.5070403@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: acsinet21.oracle.com [141.146.126.237] 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:81553 Archived-At: > > Do I need to do that in my code, or will you be doing something to > > your fix that incorporates this? > > > > If I need to do it, should I add the sit-for to the end of `enlarge-fo= nt' > > or add it only after the above call in `thumfr-thumbify-frame'. > > > > IOW, is this something that needs to be fixed in the frame > > shrinking/enlarging code, even though I do not generally notice a prob= lem > > with that, or should it be handled only here and there, where I happen= to > > notice a problem. (Normally, I would probably opt for the latter, but= if > > you think this is now a wise or necessary thing to do in general, then > > let me know.) >=20 > Until we resolved this issue leave it in. OK, but leave it in where? That's my question. After the call to `enlarge-font' in `thumfr-thumbify-frame'? > IIUC for some reason setting the font apparently doesn't want to resize > the frame immediately. I could imagine that somewhere in the code I > compare numbers of lines/columns and decide that no resizing is needed > because these are unchanged. >=20 > Maybe you could try to insert somwhere at the top level a (ding) in > window--resize-root-window (in window.el) and listen whether it rings > when you try to thumbify a frame (with and without the sit-for). I have sound turned off and visual-bell has no effect in my environment. And I would rather not fiddle with `window--resize-root-window'. Are you unable to use `thumb-frm.el' for your tests? AFAIK, it works on any platform ("works" apart from this bug, I mean). You should be able to just load `frame-fns.el', `frame-cmds.el', and `thumb-frm.el', and try it. (You don't need all of the code in those 3 libraries, but it won't hurt to load them for quick testing.) But sad to say, when I try it from emacs -Q, loading those 3 libraries and inserting `sit-for' after `enlarge-font' in `thumfr-thumbify-frame', it does *not* solve the problem. It works for my setup, but not for this test from emacs -Q. Sounds like subtle display timing thingies. Or maybe font differences. Or...? I think it would be better if you could test this stuff on your end. It is easy to see the problem, at least - just try emacs -Q, load those 3 files, then hit C-z. Try adding sit-for here or there (where?), to see if it helps. I tried and failed (with emacs -Q).