2

I have a buffer (belonging to ein mode that got into a bad state) that throws an elisp error every time I try to kill it (using ibuffer, M-x kill-this-buffer, etc.)

Backtrace suggests that the buffer is trying to run some elisp that is failing. Is it possible to just kill that buffer without running any hooks?

1 Answers1

1

I think you have to write a tiny bit of Lisp. Type the following into M-: (M-x eval-expression). You don't need line breaks, they're just for readability.

(with-current-buffer "name of buffer"
  (let (kill-buffer-hook kill-buffer-query-functions)
    (kill-buffer)))