GNU bug report logs - #19869
25.0.50; default-frame-alist: width versus fullheight

Previous Next

Package: emacs;

Reported by: michael_heerdegen <at> web.de

Date: Sat, 14 Feb 2015 23:26:02 UTC

Severity: normal

Tags: moreinfo

Found in version 25.0.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 19869 <at> debbugs.gnu.org
Subject: Re: bug#19869: 25.0.50; default-frame-alist: width versus fullheight
Date: Sun, 15 Feb 2015 21:55:27 +0100
Hello again,

I forgot to mention that this is all reproducible here with emacs -Q.

Apparently the frame is created with the correct width, then the width
changes while calling `face-set-after-frame-default'.  This happens
before the frame is actually displayed.

Here is what I evaluated in emacs -Q:

--8<---------------cut here---------------start------------->8---
(progn
  (set-face-attribute 'default nil :height 175)
  (setq default-frame-alist
        '((width . 100)
          (fullscreen . fullheight)))

  (advice-add
   'face-set-after-frame-default :around
   (lambda (f frame &rest args)
     (message "Width before face-set-after-frame-default: %S" (frame-width frame))
     (apply f frame args)
     (message "Width after face-set-after-frame-default: %S"  (frame-width frame))))
   
  (make-frame))
--8<---------------cut here---------------end--------------->8---

In *Messages* I get

Width before face-set-after-frame-default: 98
Width after face-set-after-frame-default: 63
#<frame emacs <at> drachen 0xf99350>




This bug report was last modified 10 years and 96 days ago.

Previous Next


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