From 2f7f95ead235bed8c4f04e0ba0620afa79f172cb Mon Sep 17 00:00:00 2001 From: Maksim Novikov Date: Fri, 25 Jan 2019 18:37:58 +0100 Subject: [PATCH] Fix clearing test output buffer --- python-pytest.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-pytest.el b/python-pytest.el index 8a6ee3b..28700d1 100644 --- a/python-pytest.el +++ b/python-pytest.el @@ -357,7 +357,8 @@ With a prefix ARG, allow editing." (user-error "Aborting; pytest still running"))) (when process (delete-process process)) - (erase-buffer) + (let ((inhibit-read-only t)) + (erase-buffer)) (unless (eq major-mode 'python-pytest-mode) (python-pytest-mode)) (compilation-forget-errors)