Subject: bug#23987: 24.5; Icy with Ggtags Problem

From: [email-masked] (B.V. Raghav)
Date: Fri, 22 Jul 2016 17:36:14 +0530

Drew Adams <[email-masked]> writes:
[I have no knowledge about what was written here.]
>
> This is my suggestion, FWIW:
>
> (defun compilation-auto-jump (buffer pos)
>   (when (buffer-live-p buffer) ; <===========================
>     (with-current-buffer buffer
>       (goto-char pos)
>       (let ((win  (get-buffer-window buffer 0)))
>         (when win (set-window-point win pos)))
>       (when compilation-auto-jump-to-first-error
> 	 (compile-goto-error)))))
>
> Seems like a no-brainer...

This function did not help the use case, but a sanity check does not
seemingly harm. So I keep it as an override in my init.el.

Thanks,
r
-- 
(B.V. Raghav)
Ph.D. Student,
Design Programme, IIT Kanpur