Subject: bug#44: 23.0.60; unexpected horizontal frame size changes between buffers

From: Sebastian Luque <[email-masked]>
Date: Sat, 08 Mar 2008 13:48:55 -0600

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 [email-masked] mailing list.

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

With the latest emacs-snapshot package below:

emacs -q

eval this:

---<---------------cut here---------------start-------------->---
(require 'tex-site)
(add-hook 'LaTeX-mode-hook (lambda ()
			     (turn-on-reftex)
			     (LaTeX-math-mode)
			     (outline-minor-mode 1)))
---<---------------cut here---------------end---------------->---

Now do:

C-x C-f test.tex RET

Note the crazy change in horizontal frame size.  If you switch between
this and other buffers, things crazier because horizontal frame size
keeps shrinking.

If `(outline-minor-mode 1' is removed, then horizontal frame size stays
sane.  I isolated the problem with outline-minor-mode, but it also
occurs in other modes that insert menu items.

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 (x86_64-pc-linux-gnu, GTK+ Version 2.12.8)
 of 2008-03-07 on elegiac, modified by Debian
 (emacs-snapshot package, version 1:20080307-1)
Windowing system distributor `The X.Org Foundation', version 11.0.10400090
configured using `configure  '--build' 'x86_64-linux-gnu' '--host' 'x86_64-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:/usr/share/emacs/23.0.60/leim' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2''

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: Group

Minor modes in effect:
  gnus-topic-mode: t
  gnus-undo-mode: t
  erc-stamp-mode: t
  shell-dirtrack-mode: t
  show-paren-mode: t
  recentf-mode: t
  msb-mode: t
  global-hl-line-mode: t
  display-time-mode: t
  cua-mode: t
  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-compression-mode: t
  temp-buffer-resize-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <f11> SPC S x q <return> q n c y c y c 
y <C-home> <down> <down> <down> <menu> r e p o r <tab> 
<tab> <return>

Recent messages:
Deleting article 947 in Spam
Deleting article 948 in Spam
Deleting article 949 in Spam
Expiring articles...done
Mark all unread articles in gmane.emacs.devel as read? (y or n) 
Mark all unread articles in nntp+shawnews.wp.shawcable.net:comp.text.tex as read? (y or n) 
Mark all unread articles in nntp+shawnews.wp.shawcable.net:alt.atheism as read? (y or n) 
No more unread newsgroups
Mark set
Making completion list...

Cheers,

-- 
Seb