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

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

bug#17142: 24.4.50; Initial frame geometry on OSX


From: martin rudalics
Subject: bug#17142: 24.4.50; Initial frame geometry on OSX
Date: Sun, 30 Mar 2014 15:46:47 +0200

> When changing the default font and the height in default-frame-alist,
> the width is not set correctly.  I have the following lines in the
> .emacs file:

When processing frame parameters we initially recorded the old frame
width first.  The following font change requested by

> (add-to-list 'default-frame-alist '(font . "Courier-14"))

implicitly enlarged the frame width but the next size change requested
by

> (add-to-list 'default-frame-alist '(height . 71))

applies the old width recorded initially, discarding the width value
implied by the new font size.


This scenario

> When I change my settings to
>
> (add-to-list 'default-frame-alist '(font . "Courier-14"))
> (add-to-list 'default-frame-alist '(width . 80))
> (add-to-list 'default-frame-alist '(height . 71))
>
> everything is fine.

doesn't show the problem because it requests a new frame width as well,
so the new value is used instead of the recorded old value.


This scenario

> When I change my settings to
>
> (add-to-list 'default-frame-alist '(font . "Courier-14"))
>
> leaving the height as ist is, the width of 80 characters per line is
> also set correctly.

doesn't show the problem because no explicit change of the frame size is
requested, so none of the old recorded values gets applied.


I checked in a fix on the emacs-24 release branch which will get merged
to trunk sooner or later.  If you are on trunk and want to test the fix
immediately (recommended), please try the attached patch.

Thanks once more for the recipe, martin

Attachment: frame.c.diff
Description: Text document


reply via email to

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