Mercurial > emacs
comparison lisp/progmodes/flymake.el @ 95513:4b7c7fff9fd1
(flymake-process-filter): Make sure the source buffer isn't dead.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Tue, 03 Jun 2008 08:12:02 +0000 |
parents | 52e3cee99f90 |
children | a34136e0b961 |
comparison
equal
deleted
inserted
replaced
95512:29ddd334019a | 95513:4b7c7fff9fd1 |
---|---|
581 It's flymake process filter." | 581 It's flymake process filter." |
582 (let ((source-buffer (process-buffer process))) | 582 (let ((source-buffer (process-buffer process))) |
583 | 583 |
584 (flymake-log 3 "received %d byte(s) of output from process %d" | 584 (flymake-log 3 "received %d byte(s) of output from process %d" |
585 (length output) (process-id process)) | 585 (length output) (process-id process)) |
586 (when source-buffer | 586 (when (buffer-live-p source-buffer) |
587 (with-current-buffer source-buffer | 587 (with-current-buffer source-buffer |
588 (flymake-parse-output-and-residual output))))) | 588 (flymake-parse-output-and-residual output))))) |
589 | 589 |
590 (defun flymake-process-sentinel (process event) | 590 (defun flymake-process-sentinel (process event) |
591 "Sentinel for syntax check buffers." | 591 "Sentinel for syntax check buffers." |