Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function alert-after-compilation-finish seems conflict with ggtags #388

Closed
kongfy opened this issue Oct 18, 2016 · 4 comments
Closed

function alert-after-compilation-finish seems conflict with ggtags #388

kongfy opened this issue Oct 18, 2016 · 4 comments

Comments

@kongfy
Copy link

kongfy commented Oct 18, 2016

I'm now using ggtags to navigate in C/C++ code base, but I found when I jump to some tag in the same file, ggtags give me the error blow:

error in process sentinel: if: Selecting deleted buffer
error in process sentinel: Selecting deleted buffer

With toggle-debug-on-error, it produce something like:

Debugger entered--Lisp error: (error "Selecting deleted buffer")
  alert("Compilation finished\n" :buffer #<killed buffer> :category compilation)
  (if (catch (quote is-visible) (walk-windows (function (lambda (w) (if (eq (window-buffer w) buf) (progn (throw ... t)))))) nil) nil (alert (concat "Compilation " result) :buff$
  sanityinc/alert-after-compilation-finish(#<killed buffer> "finished\n")
  run-hook-with-args(sanityinc/alert-after-compilation-finish #<killed buffer> "finished\n")
  compilation-handle-exit(exit 0 "finished\n")
  compilation-sentinel(#<process global> "finished\n")

Which sounds like a conflict between your function alert-after-compilation-finish and ggtags to me, Is it possible to fix it ?

Now I just comment out the hook to this function and everything works fine.

Thank you!

@purcell
Copy link
Owner

purcell commented Oct 23, 2016

Thanks - I think that's fixed now, in 9dee534. Would you mind confirming?

@kongfy
Copy link
Author

kongfy commented Oct 24, 2016

Thanks for your effort!

But it's not working this time.

Debugger entered--Lisp error: (error "Selecting deleted buffer")
  alert("Compilation finished\n" :buffer #<killed buffer> :category compilation)
  (if (catch (quote is-visible) (if (buffer-live-p buf) (progn (walk-windows (function (lambda (w) (if ... ...)))))) nil) nil (alert (concat "Compilation " result) :buffer buf :category (quote compilation)))
  sanityinc/alert-after-compilation-finish(#<killed buffer> "finished\n")
  run-hook-with-args(sanityinc/alert-after-compilation-finish #<killed buffer> "finished\n")
  compilation-handle-exit(exit 0 "finished\n")
  compilation-sentinel(#<process global> "finished\n")

@purcell
Copy link
Owner

purcell commented Oct 25, 2016 via email

@kongfy
Copy link
Author

kongfy commented Oct 26, 2016

Yes, it works. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants