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#9723: 24.0.50; Emacs Clipboard crash Date: Fri, 03 Feb 2012 19:23:30 +0100 Message-ID: <4F2C2622.3010807@gmx.at> References: <83lis391w3.fsf@gnu.org> <81B49A9E5708D84A96259A96D480EE4902D815F95A@CHC-CCR01.SEA.CORP.EXPECN.COM> <83wr8l2y6r.fsf@gnu.org> <81B49A9E5708D84A96259A96D480EE4902D815FA2B@CHC-CCR01.SEA.CORP.EXPECN.COM> <83mx9h2em4.fsf@gnu.org> <81B49A9E5708D84A96259A96D480EE4902D81606FB@CHC-CCR01.SEA.CORP.EXPECN.COM> <81B49A9E5708D84A96259A96D480EE4902E2FD8799@CHC-CCR01.SEA.CORP.EXPECN.COM> <83obtlqabj.fsf@gnu.org> <81B49A9E5708D84A96259A96D480EE4902E2FD8919@CHC-CCR01.SEA.CORP.EXPECN.COM> <83k448riyw.fsf@gnu.org> <81B49A9E5708D84A96259A96D480EE4902E2FD8BCA@CHC-CCR01.SEA.CORP.EXPECN.COM> <8362frrcmz.fsf@gnu.org> <4F2A6EB2.4090708@gmx.at> <83k445p3lg.fsf@gnu.org> <4F2AE27F.6030706@gmx.at> <83k445f0d4.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1328293540 17536 80.91.229.3 (3 Feb 2012 18:25:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Feb 2012 18:25:40 +0000 (UTC) Cc: josejones@expedia.com, 9723@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 03 19:25:39 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RtNpJ-0003Cp-IE for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Feb 2012 19:25:37 +0100 Original-Received: from localhost ([::1]:39251 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtNpI-0006Ju-T9 for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Feb 2012 13:25:36 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:51265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtNpC-0006Fp-Ja for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2012 13:25:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RtNp9-0005rD-UX for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2012 13:25:30 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtNp9-0005r9-PU for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2012 13:25:27 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RtNph-0008MO-IL for bug-gnu-emacs@gnu.org; Fri, 03 Feb 2012 13:26:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Feb 2012 18:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9723 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9723-submit@debbugs.gnu.org id=B9723.132829352332081 (code B ref 9723); Fri, 03 Feb 2012 18:26:01 +0000 Original-Received: (at 9723) by debbugs.gnu.org; 3 Feb 2012 18:25:23 +0000 Original-Received: from localhost ([127.0.0.1]:52571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RtNp5-0008LO-El for submit@debbugs.gnu.org; Fri, 03 Feb 2012 13:25:23 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:41614) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1RtNp2-0008LA-3e for 9723@debbugs.gnu.org; Fri, 03 Feb 2012 13:25:21 -0500 Original-Received: (qmail invoked by alias); 03 Feb 2012 18:24:40 -0000 Original-Received: from 62-47-52-177.adsl.highway.telekom.at (EHLO [62.47.52.177]) [62.47.52.177] by mail.gmx.net (mp036) with SMTP; 03 Feb 2012 19:24:40 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX183igdfZ683zsw9Ynq4UDRLr93BZXstt6lkuGN+iP gTt7BbYe9pzzW4 In-Reply-To: <83k445f0d4.fsf@gnu.org> X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:56437 Archived-At: > Inject a special code that overrides the "normal" values when > do_pending_window_change is called? I added a Lisp variable frame-bomb and in change_frame_size do else if (CONSP (Vframe_bomb)) change_frame_size_1 (f, XINT (Fcar (Vframe_bomb)), XINT (Fcdr (Vframe_bomb)), 0, 0, 0); else change_frame_size_1 (f, newheight, newwidth, pretend, delay, safe); but this gets me a resized root window and NOT a resized frame so I am still missing something. In all cases w->total_cols was set to 2 for the frame's selected window if I counted correctly (I divided by four). Is there any way to print the value of an Elisp integer? Nowhere did I get a value of zero for w->total_cols. In any case, the following excerpt from change_frame_size_1 is fishy: /* Compute width of windows in F. This is the width of the frame without vertical scroll bars. */ new_frame_total_cols = FRAME_TOTAL_COLS_ARG (f, newwidth); /* Round up to the smallest acceptable size. */ check_frame_size (f, &newheight, &newwidth); This means that when "rounding" changes newwidth, the new value is NOT reflected in new_frame_total_cols. Interchanging these lines gets me a w->total_cols of 6 for the window (again, if I counted correctly) which seems slightly more correct to me. WDYT? martin