GNU bug report logs - #17142
24.4.50; Initial frame geometry on OSX

Previous Next

Package: emacs;

Reported by: Bernd Rellermeyer <bernd.rellermeyer <at> arcor.de>

Date: Sun, 30 Mar 2014 07:37:01 UTC

Severity: normal

Found in version 24.4.50

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 17142 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Bernd Rellermeyer <bernd.rellermeyer <at> arcor.de>, 
 17142 <at> debbugs.gnu.org
Subject: Re: bug#17142: 24.4.50; Initial frame geometry on OSX
Date: Sun, 30 Mar 2014 15:46:47 +0200
[Message part 1 (text/plain, inline)]
> 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
[frame.c.diff (text/plain, attachment)]

This bug report was last modified 11 years and 47 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.