[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23987: 24.5; Icy with Ggtags Problem
From: |
B.V. Raghav |
Subject: |
bug#23987: 24.5; Icy with Ggtags Problem |
Date: |
Fri, 22 Jul 2016 17:36:14 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Drew Adams <drew.adams@oracle.com> 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