[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Flymaking just deleted buffer throws exception
From: |
Stefan Monnier |
Subject: |
Re: Flymaking just deleted buffer throws exception |
Date: |
Tue, 03 Jun 2008 04:12:47 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
> I have flymake enabled for Perl. I open a file, then immediately kill
> the buffer (while a flymake is run in the background).
> This leads to the following error being displayed in the
> echo area:
> error in process filter: save-current-buffer: Selecting deleted buffer
> error in process filter: Selecting deleted buffer
[...]
> A buffer-live-p check before doing things to the buffer may be appropriate.
Indeed, I've installed the patch below,
Stefan
--- flymake.el.~1.54.~ 2008-05-28 13:18:48.000000000 -0400
+++ flymake.el 2008-06-03 04:11:10.000000000 -0400
@@ -583,7 +583,7 @@
(flymake-log 3 "received %d byte(s) of output from process %d"
(length output) (process-id process))
- (when source-buffer
+ (when (buffer-live-p source-buffer)
(with-current-buffer source-buffer
(flymake-parse-output-and-residual output)))))