开发者

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

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 an开发者_开发问答d 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)


Weird. Looks like a bug.

Setting width and height together resolves the problem for me.

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜