From 0f94d422f16cc989f49ea5c7fc87c947c5f42ced Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Mon, 28 Jan 2019 22:27:22 +0200 Subject: More checks for live buffers. * lisp/dired-x.el (dired-jump): Check if archive/tar superior buffer was killed by the user. * lisp/progmodes/ruby-mode.el (ruby-flymake--helper): Check if source buffer was killed by the user immediately after visiting and before process finishes. --- lisp/progmodes/ruby-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/progmodes/ruby-mode.el') diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 8aa583eb319..e83778af946 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -2288,7 +2288,7 @@ It will be properly highlighted even when the call omits parens.") :command command :sentinel (lambda (proc _event) - (when (eq 'exit (process-status proc)) + (when (and (eq 'exit (process-status proc)) (buffer-live-p source)) (unwind-protect (if (with-current-buffer source (eq proc ruby--flymake-proc)) (with-current-buffer (process-buffer proc) -- cgit v1.2.1