GNU bug report logs -
#9723
24.0.50; Emacs Clipboard crash
Previous Next
Reported by: Joseph Jones <josejones <at> expedia.com>
Date: Mon, 10 Oct 2011 23:43:02 UTC
Severity: normal
Found in version 24.0.50
Done: Chong Yidong <cyd <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #215 received at 9723 <at> debbugs.gnu.org (full text, mbox):
> 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
This bug report was last modified 13 years and 8 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.