Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#34993 - [emacs] window in X11 is virtually infinite; geometry is ignored

Attached to Project: Arch Linux
Opened by Mike Dowling (mdowling) - Saturday, 27 April 2013, 17:20 GMT
Last edited by Gerardo Exequiel Pozzi (djgera) - Sunday, 19 May 2013, 18:15 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jürgen Hötzel (juergen)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
On startin emacs from fvwm2, emacs covers all the virtual desktops. The following error appears:

(emacs:972): Gtk-WARNING **: gtk_window_parse_geometry() called on a window with no visible children; the window should be set up before gtk_window_parse_geometry() is called.

The error can only have begun in the past week; I upgraded the system today, whence the problem must have occurred in conjunction with a shared library. (glib2-2.36.1-3 and xterm-293-1 recent?)

Emacs has long winged that there are no visible children, hitherto without consequences.

Additional info:
* package version(s)
emacs 34.3-1
xterm292-1
* config and/or log files etc.


Steps to reproduce:

Merely start emacs from an xterm. The same problem arises with twm windows manager.

This task depends upon

Closed by  Gerardo Exequiel Pozzi (djgera)
Sunday, 19 May 2013, 18:15 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed since upgraded gtk3 (3.8.1-1 -> 3.8.2-1)
Comment by Tommaso Toffoli (rugantino) - Tuesday, 30 April 2013, 18:17 GMT
I just upgraded my ArchLinux installation; now Emacs 24.3.1, called by
emacs -fn 8x13 -g 81x79
opens up with (as reported in this bug) "an almost infinite size".

I investigated a bit, and, when trying to resize this "infinite window", the little text box with which X tracks the current size
reports the desired size (as in the above -g opti on), but in PIXELS rather than characters, that is, as something like 680x1027.
However, somebody (X, Emacs? the window manager?) interprets that number as if it were CHARACTERS,
because one gets an initial window of 680x1027 characters! (Still a little short of "infinite".)

If I use key F11 to execute the toggle-fullscreen command, the Emacs window toggles between a correctly-sized full screen, showing borders and mode line,
and this humongous "regular size" window.
Comment by Benoit Izac (benizac) - Tuesday, 30 April 2013, 19:46 GMT
Hi,

Same problem here since upgraded gtk3 (3.6.4-2 -> 3.8.1-1).

To reproduce, launch emacs with '-Q -geometry +0+0'. Geometry is 756x630 characters here (80x40 in my Xdefaults).

Working fine without the -geometry argument.
Comment by Mike Dowling (mdowling) - Friday, 03 May 2013, 15:15 GMT
The obvious work around is to restore gtk3-3.6.4-2-x86_64.pkg.tar.xz, but this is clearly not a solution.
Comment by Benoit Izac (benizac) - Friday, 03 May 2013, 16:59 GMT
Another solution is to rebuild emacs without gtk3 as you can choose another toolkit in configure (gtk2, motif, athena or lucid).
Comment by Tommaso Toffoli (rugantino) - Friday, 03 May 2013, 18:22 GMT
I do not understand this gtk bit. I'm installing the standard ArchLinux emacs package, am not using a desktop---just OpenBox as a window manager.
Do you mean that the ArchLinux emacs package had been compiled using gtk stuff, and that I should recompile it instead directly from the GNU site? Thanks
Comment by Benoit Izac (benizac) - Friday, 03 May 2013, 20:11 GMT
Emacs from Archlinux use gtk3.

If you want to recompile, the best way is:
1) fetch archlinux sources for emacs package (I use abs but there is also https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/emacs)
2) modify PKGBUILD (argument to configure --with-x-toolkit)
3) run makepkg
4) install the package created with pacman -U
Comment by Tommaso Toffoli (rugantino) - Tuesday, 07 May 2013, 17:22 GMT
I do not understand this gtk bit. I'm installing the standard ArchLinux emacs package, am not using a desktop---just OpenBox as a window manager.
Do you mean that the ArchLinux emacs package had been compiled using gtk stuff, and that I should recompile it instead directly from the GNU site? Thanks
Comment by Benoit Izac (benizac) - Tuesday, 07 May 2013, 18:20 GMT
No, I mean Archlinux developer(s) chose gtk3 as X toolkit and there is a bug since gtk3 had been upgraded. You should recompile as workaround.

I use fvwm for years and I don't care about X toolkit because I don't use Emacs menubar.

I launch emacs with --geometry in my ~/.xsession and recompile with a different toolkit (I used athena) had solved the problem. Tested also with gtk2 without problem.
Comment by Mike Dowling (mdowling) - Saturday, 18 May 2013, 11:43 GMT
After being away for two weeks I updated my system again and now there is no longer a problem. I note that there has been a new release of gtk, so that may have resolved the issue.

Loading...