GNU bug report logs - #1348
set-frame-width and set-frame-position seem buggy on at least MSWindows

Previous Next

Package: emacs;

Reported by: "Themba Fletcher" <themba <at> shirleymachine.com>

Date: Fri, 14 Nov 2008 22:55:04 UTC

Severity: normal

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


Message #135 received at 1348 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: grischka <grishka <at> gmx.de>
To: jasonr <at> f2s.com
Cc: 1348 <at> debbugs.gnu.org, martin rudalics <rudalics <at> gmx.at>
Subject: Re: bug#1348: set-frame-width and set-frame-position seem buggy on
 at	least MSWindows
Date: Tue, 02 Dec 2008 15:11:23 +0100
jasonr wrote:
> Quoting grischka:
> 
>> Below is a patch that fixes the problem on windows.
> 
> I believe this patch is incorrect, as it will result in the message handling
> code running in the context of the Lisp thread, which will result in a whole
> host of unreproducable crashing bugs if left like that. Probably the reason it
> seems to work is that it introduces a delay that is generally long enough for
> the real resizing or moving to take place before the Lisp thread continues.

Believes are not an approach to code, coincidentally none of the above
do apply.

> Inter-thread synchronization is what is needed here to fix this safely and
> deterministically.

Nicely put.  This is the theory.

(As to practical things that need fixing:

  HRGN orig_clip;
  GetClipRgn(s->hdc, orig_clip);

Or:

  for (i = 0; i < len; i++)
    ExtTextOutW (s->hdc, x + i, y, options, NULL,
      s->char2b + from + i, 1, NULL);
)




This bug report was last modified 10 years and 296 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.