Subject: 23.0.60; compile-goto-error gives "pop-to-buffer: Wrong type argument: window-live-p, nil" error
From: "Andrew W. Nosenko" <[email-masked]>
To: [email-masked]
Date: Fri, 16 Jan 2009 14:57:00 +0200

'compile-goto-error' results in the

    "pop-to-buffer: Wrong type argument: window-live-p, nil"

error if appropriate file is not loaded or loaded, but appropriate
buffer is not visible in the same frame where '*compilation*' buffer
lies.

Sources obtained from CVS today, Fri, 16 Jan 2009 12:50 (GMT), but
first time reproduced with yesterday's checkout.  Previous checkout
was far ago in paste (and definitelly in the 2008 year), therefore, I
unable to say exact time of the problematic commit :-(

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

In GNU Emacs 23.0.60.1 (x86_64-unknown-freebsd7.0, GTK+ Version 2.14.7)
 of 2009-01-15 on amd64
Windowing system distributor `The X.Org Foundation', version 11.0.10402000
configured using `configure  '--prefix=/home/awn/scratch'
'--with-freetype' '--with-xft' '--enable-maintainer-mode'
'--enable-largefile' 'CC=gcc43' 'CFLAGS=-O2 -g -march=native -Wall  ''

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: ru_RU.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Compilation

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:
M-x c o m p i l e <return> C-a C-k g c c SPC - o SPC
z SPC z . c <return> C-x o M-n <return> M-x r e p o
r t - e m <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
(No files need saving)
Compilation finished
Mark set
pop-to-buffer: Wrong type argument: window-live-p, nil

-- 
Andrew W. Nosenko <[email-masked]>