emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: frame-pixel-width returns incorrect value (CVS Emacs on Windows XP)


From: martin rudalics
Subject: Re: frame-pixel-width returns incorrect value (CVS Emacs on Windows XP)
Date: Sun, 07 Sep 2008 11:37:24 +0200
User-agent: Thunderbird 2.0.0.16 (Windows/20080708)

> Using CVS Emacs on Windows XP, evaluate the below form in a frame that
> is _not_ currently 60 columns wide by 20 rows high.  The values in the
> resulting list are equal, but they should not be.
>
>    (let ((origwidth (frame-pixel-width (selected-frame))))
>      (modify-frame-parameters nil '((width . 60) (height . 20)))
>      ;;(sit-for 0)
>      (list origwidth (frame-pixel-width (selected-frame))))
>
> If you uncomment the call to sit-for, the values in the resulting list
> are different (as they should be).
>
> It appears that the second call to frame-pixel-width is unaware of the
> change to the width of the frame made by modify-frame-parameters.
>
> The same problem happens with frame-pixel-height.  I don't know if this
> is unique to Windows, since I don't have access to a Linux box right now.

We could add something like

   This is updated by redisplay, when it runs to completion.
   Simply modifying a frame parameter does not update this value.

to the doc-string just as we do with `window-end'.

martin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]