From f495ab775efc6ceeaf7f84d49005702806d3dc97 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Mon, 4 Feb 2019 17:32:20 +0900 Subject: [PATCH] Show black error on end of buffer --- emacs.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emacs.el b/emacs.el index 7e8aef3..146ee41 100644 --- a/emacs.el +++ b/emacs.el @@ -2071,7 +2071,7 @@ initializing." (goto-char (point-min)) (when (re-search-forward "^would reformat .*$" nil t) (setq result (list (flycheck-error-new-at - (point-min) + (point-max) nil 'error ;;(format "Black: %s" (match-string 0)) @@ -2081,7 +2081,7 @@ initializing." (goto-char (point-min)) (when (re-search-forward "^error: cannot format .*$" nil t) (setq reslt (list (flycheck-error-new-at - (point-min) + (point-max) nil 'error ;; Fix not to include absolute file path