Subject: 23.0.60; Can't jump to error location in compilation-mode

From: Magnus Henoch <[email-masked]>
Date: Fri, 16 Jan 2009 14:48:32 +0000

After running a compilation with M-x compile, I try to jump to the
location of an error with M-g M-n.  This doesn't work, though:

Debugger entered--Lisp error: (wrong-type-argument window-live-p nil)
  select-window(nil nil)
  pop-to-buffer(#<buffer erltest> other-window)
  compilation-goto-locus(#<marker at 3465 in *compilation*> #<marker at 1749 in erltest> nil)
  compilation-next-error-function(1 nil)
  next-error(nil)
  call-interactively(next-error nil 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/local/share/emacs/23.0.60/etc/DEBUG for instructions.

In GNU Emacs 23.0.60.4 (i686-pc-linux-gnu, GTK+ Version 2.12.9)
 of 2009-01-15 on linux-b2a3
Windowing system distributor `The X.Org Foundation', version 11.0.10400090
configured using `configure  '--enable-maintainer-mode''

Important settings:
  value of $LC_ALL: nil
  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_US.UTF-8
  value of $XMODIFIERS: @im=local
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Compilation

Minor modes in effect:
  diff-auto-refine-mode: t
  jabber-activity-mode: t
  jabber-mode-line-mode: t
  show-paren-mode: t
  server-mode: t
  iswitchb-mode: t
  icomplete-mode: t
  display-time-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

Recent messages:
Back to top level.
Entering debugger...
Back to top level.
Entering debugger...
Back to top level.
(No files need saving)
Compilation exited abnormally with code 2
Entering debugger...
Mark set [2 times]
Back to top level.