Subject: bug#2284: 23.0.60; error in compilation-mode, link to files don't work

From: Peter Feigl <[email-masked]>
Date: Wed, 11 Feb 2009 10:37:56 +0100 (CET)

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:

*Backtrace*:
Debugger entered--Lisp error: (wrong-type-argument window-live-p nil)
  select-window(nil nil)
  pop-to-buffer(#<buffer MultiOptimizer.h> other-window)
  compilation-goto-locus(#<marker at 2343 in *compilation*> #<marker at 786 in MultiOptimizer.h> nil)
  compilation-next-error-function(0 nil)
  next-error-internal()
  compile-goto-error(return)
  call-interactively(compile-goto-error nil nil)

the problem seems to be that line 1210 in window.el
    (setq new-window (display-buffer buffer other-window))
sets new-window to nil

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-unknown-linux-gnu, GTK+ Version 2.14.6)
 of 2009-01-15 on home.sergej.pp.ru
Windowing system distributor `The X.Org Foundation', version 11.0.10503000
configured using `configure  '--prefix=/usr' '--localstatedir=/var/lib/emacs' '--libexecdir=/usr/lib/emacs' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--with-x-toolkit=gtk' '--without-sound' '--enable-font-backend' '--with-freetype' '--with-xft' '--with-libotf' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe''

Important settings:
  value of $LC_ALL: en_GB.UTF-8
  value of $LC_COLLATE: C
  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_GB.utf8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Debugger

Minor modes in effect:
  jabber-activity-mode: t
  display-time-mode: t
  shell-dirtrack-mode: t
  diff-auto-refine-mode: t
  rcirc-track-minor-mode: t
  show-paren-mode: t
  iswitchb-mode: t
  tooltip-mode: t
  mouse-wheel-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