GNU bug report logs - #2715
23.0.60; Changing font size

Previous Next

Package: emacs;

Reported by: Nathaniel Flath <flat0103 <at> gmail.com>

Date: Thu, 19 Mar 2009 01:30:04 UTC

Severity: normal

Done: Jan Djärv <jan.h.d <at> swipnet.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 2715 in the body.
You can then email your comments to 2715 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2715; Package emacs. (Thu, 19 Mar 2009 01:30:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nathaniel Flath <flat0103 <at> gmail.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 19 Mar 2009 01:30:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Nathaniel Flath <flat0103 <at> gmail.com>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.60; Changing font size
Date: Wed, 18 Mar 2009 21:22:28 -0400
[Message part 1 (text/plain, inline)]
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the emacs-pretest-bug <at> gnu.org mailing
list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Actions to reproduce:
Start emacs with '-q'
define the following function:

(defun sacha/decrease-font-size ()
  "Decreases the font size by 10%"
  (interactive)
  (set-face-attribute 'default
                      nil
                      :height
                      (floor (* 0.9
                (face-attribute 'default :height)))))
Maximize the emacs window
execute sacha/decrease-font-size
Symptoms:
Font size is reduced, but usable parts of emacs are also reduced - large
amounts of inaccessible whitespace left at the right/bottom of the window.

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/share/emacs/23.0.60/etc/DEBUG for instructions.


In GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.14.3)
 of 2008-10-13 on rothera, modified by Debian
 (emacs-snapshot package, version 1:20081013-1)
Windowing system distributor `The X.Org Foundation', version 11.0.10502000
configured using `configure  '--build' 'i486-linux-gnu' '--host'
'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib'
'--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info'
'--mandir=/usr/share/man' '--with-pop=yes'
'--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.60/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.60/site-lisp:/usr/share/emacs/site-lisp'
'--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu'
'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000
-g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS=''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_CA.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <help-echo> <down-mouse-1> <mouse-1> C-x
C-f e m a c <tab> <tab> e m <backspace> <backspace>
/ e m <tab> <tab> <help-echo> m y f <tab> <return>
<down-mouse-1> <mouse-1> <down-mouse-1> <mouse-1> C-x
C-e M-x s a c h a SPC d e SPC SPC SPC SPC <return>
M-x b u g SPC SPC SPC SPC <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> r e p o SPC SPC
r SPC SPC SPC SPC <return>

Recent messages:
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /etc/emacs/site-start.d/50mit-scheme.el (source)...done
Loading /etc/emacs/site-start.d/50psvn.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list... [2 times]
Loading vc-git...done
sacha/decrease-font-size
Making completion list... [2 times]
call-interactively: Text is read-only [7 times]
Making completion list... [2 times]
[Message part 2 (text/html, inline)]

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2715; Package emacs. (Tue, 24 Mar 2009 22:40:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> stupidchicken.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 24 Mar 2009 22:40:05 GMT) Full text and rfc822 format available.

Message #10 received at 2715 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Jan Djärv  <jan.h.d <at> swipnet.se>
Cc: 2715 <at> debbugs.gnu.org
Subject: Re: 23.0.60; Changing font size
Date: Tue, 24 Mar 2009 18:34:50 -0400
Hi Jan,

This is not strictly a GTK bug, but could you take a look at bug#2715?

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=2715

The basic problem, I think, is that when the font size changes, Emacs
tries to change the pixel width and height of the frame, keeping the row
and column numbers unchanged (xterm.c:8116).  However, this fails when
the frame is maximized---in that case, we can only change the row and
column numbers, and the pixel width and height cannot be changed.
However, I am not sure how to fix this.  Maybe you can suggest a
solution?





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2715; Package emacs. (Wed, 25 Mar 2009 19:35:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jan Djärv <jan.h.d <at> swipnet.se>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 25 Mar 2009 19:35:04 GMT) Full text and rfc822 format available.

Message #15 received at 2715 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 2715 <at> debbugs.gnu.org
Subject: Re: 23.0.60; Changing font size
Date: Wed, 25 Mar 2009 20:28:16 +0100

Chong Yidong skrev:
> Hi Jan,
> 
> This is not strictly a GTK bug, but could you take a look at bug#2715?
> 
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=2715
> 
> The basic problem, I think, is that when the font size changes, Emacs
> tries to change the pixel width and height of the frame, keeping the row
> and column numbers unchanged (xterm.c:8116).  However, this fails when
> the frame is maximized---in that case, we can only change the row and
> column numbers, and the pixel width and height cannot be changed.
> However, I am not sure how to fix this.  Maybe you can suggest a
> solution?

The problem is that generally you can't really be sure if you are maximized or 
just big.

But with a relative new window manager, there are properties we can look at to 
deduce what to do or not do, so we can cover those cases at least (i.e. all 
KDE, Gnome, XFCE and some more).  I'll see what I can come up with.

	Jan D.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2715; Package emacs. (Fri, 27 Mar 2009 18:55:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jan Djärv <jan.h.d <at> swipnet.se>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Fri, 27 Mar 2009 18:55:05 GMT) Full text and rfc822 format available.

Message #20 received at 2715 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 2715 <at> debbugs.gnu.org, flat0103 <at> gmail.com
Subject: Re: 23.0.60; Changing font size
Date: Fri, 27 Mar 2009 19:48:02 +0100
I've added a fix for the case when extended window manager hints are used,
which should cover 90 to 95% of the X11 environments in use today.  I'm
planning to change fullscreen handling after the release so Emacs only
supports extended window manager hints or the case where no window manager is
present.  The other cases are too much work for too little gain, and is also a
bit timing dependant so it may fail sometimes.

I don't want to close this yet, because I found another redrawing bug, that is
present even before my change.  It could be the theme I use, so it may not be
Emacs fault.  I'll investigate and if Eamcs is not to blame I will close this bug.






Reply sent to Jan Djärv <jan.h.d <at> swipnet.se>:
You have taken responsibility. (Wed, 01 Apr 2009 20:00:02 GMT) Full text and rfc822 format available.

Notification sent to Nathaniel Flath <flat0103 <at> gmail.com>:
bug acknowledged by developer. (Wed, 01 Apr 2009 20:00:03 GMT) Full text and rfc822 format available.

Message #25 received at 2715-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: 2715-done <at> debbugs.gnu.org
Subject: Done
Date: Wed, 01 Apr 2009 21:50:53 +0200



bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Thu, 30 Apr 2009 14:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 54 days ago.

Previous Next


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