From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#16028: 24.3.50; Latest build completely breaks my thumnail frames code Date: Fri, 06 Dec 2013 18:22:13 +0100 Message-ID: <52A207C5.4070404@gmx.at> 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> <6ee939f5-138d-4e5c-830e-8a20f8e45bea@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1386350596 761 80.91.229.3 (6 Dec 2013 17:23:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Dec 2013 17:23:16 +0000 (UTC) Cc: 16028@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 06 18:23:21 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 1Voz7Y-0007LL-Kv for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Dec 2013 18:23:20 +0100 Original-Received: from localhost ([::1]:60571 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Voz7Y-00016L-7m for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Dec 2013 12:23:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Voz7O-00015A-3e for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2013 12:23:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Voz7G-0001Rb-GI for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2013 12:23:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48630) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Voz7G-0001RT-CO for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2013 12:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Voz7F-0000NF-TP for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2013 12:23:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Dec 2013 17:23: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.13863505411382 (code B ref 16028); Fri, 06 Dec 2013 17:23:01 +0000 Original-Received: (at 16028) by debbugs.gnu.org; 6 Dec 2013 17:22:21 +0000 Original-Received: from localhost ([127.0.0.1]:34416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Voz6a-0000MD-Fa for submit@debbugs.gnu.org; Fri, 06 Dec 2013 12:22:20 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:65413) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Voz6X-0000M2-NP for 16028@debbugs.gnu.org; Fri, 06 Dec 2013 12:22:18 -0500 Original-Received: from [62.47.36.91] ([62.47.36.91]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0LbyUS-1V8Fq80rO0-00jEbS for <16028@debbugs.gnu.org>; Fri, 06 Dec 2013 18:22:16 +0100 In-Reply-To: <6ee939f5-138d-4e5c-830e-8a20f8e45bea@default> X-Provags-ID: V03:K0:SdNXsQ53IJpKUVGUOihYUh7ZD5zSGD4lYhNsI/joWvFZqt9Bwur 29g2PdrGabdb9J83lKkLS68P8pIseMggaxuWFM8OblHcuRMk9gcM6r5u+Ib3epmZsqxpPie 8MVEe10sX0PsMcS8e2beCyc87wxgIhPQhdbVSot/T7AstijtLYEJ92E04l0waKuO5HbwShd dQRatjz2DblHBctV3ui7w== 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:81546 Archived-At: > OK, but leave it in where? That's my question. After the call to > `enlarge-font' in `thumfr-thumbify-frame'? If it works, yes. > 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'. In *scratch* evaluate (defvar my-thumbify nil) (defvar my-counter 0) (defun window--resize-root-window (window delta horizontal ignore pixelwise) "Resize root window WINDOW vertically by DELTA lines. HORIZONTAL non-nil means resize root window WINDOW horizontally by DELTA columns. IGNORE non-nil means ignore any restrictions imposed by fixed size windows, `window-min-height' or `window-min-width' settings. This function is only called by the frame resizing routines. It resizes windows proportionally and never deletes any windows." (when my-thumbify (setq my-counter (1+ my-counter))) (when (and (windowp window) (numberp delta)) (let ((pixel-delta (if pixelwise delta (window--size-to-pixel window delta horizontal)))) (when (window-sizable-p window pixel-delta horizontal ignore t) (window--resize-reset (window-frame window) horizontal) (window--resize-this-window window pixel-delta horizontal ignore t))))) and bind my-thumbify to t around your `enlarge-font' call. Then tell me the value of my-counter. > 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.) I believe that your code works just as you say that it does. So this won't help. > 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...? Maybe. The problem is to boil this down to a minimum test example. If that example is three files long, it will take me a year to find out. > 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). If you don't investigate yourself and come up with a simple, repeatable example, I'm afraid we won't be able to fix this soon. martin