set-frame-height in .emacs doesn't have any effect

817 views Asked by At

I recently updated from GNU Emacs 20.7.1 to 23.2 (Yeah, I'm a little slow changing.) My .emacs begins with

 (set-frame-height (selected-frame) 60)  
 (set-frame-width (selected-frame) 90)  
 (set-frame-position (selected-frame) 50 20)

This works with 20.7.1, but not 23.2 I've run with -debug-init and get no errors for my .emacs file.

If I select the first three lines of the .emacs file in a buffer and eval-region, the window moves to the location in line 3 and width is set to 90. If I eval-region again, the height is set to 60.

While I haven't tested every other line in the .emacs, it appears that the balance of the file evaluates normally at init time.

(OS = Windows Vista)

1

There are 1 answers

0
phils On

Weird. Looks like a bug.

Setting width and height together resolves the problem for me.

(set-frame-size (selected-frame) 90 60)