help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: set-frame-size doesn't work in Emacs 23.2 ?


From: Marc Mientki
Subject: Re: set-frame-size doesn't work in Emacs 23.2 ?
Date: Wed, 08 Dec 2010 15:25:28 -0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2

Am 18.08.2010 22:27, schrieb Android Eve:
On Aug 18, 1:42 pm, Android Eve<androi...@gmx.com>  wrote:

Why?


The mystery is now even greater since I managed to make (set-frame-
size     (selected-frame)  96 72) work in .emacs -- here is how:

Originally, these two lines were conditioned upon the window system:

   (cond
    ((eq window-system 'w32)
     (progn
         (set-frame-position (selected-frame) 120  0)
         (set-frame-size     (selected-frame)  96 88)
       )))

So, I just moved these two lines above the condition and mysteriously
they started working!

Why "mysteriously"? Because there are other statements inside that (eq
window-system 'w32) that work flawlessly. If I invoke M-x describe-
variable window-system , it returns the value w32.

So why is this odd behavior of Emacs 23.2?

This is not mystery. Your cond works properly but you have something
in your .emacs that restore after it frame geometry (maybe
frame-restore?). Put this cond at the end in .emacs and you will see
that this works.

But another question: why use you progn in cond? This is superfluous at this point.

regards
Marc



reply via email to

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