emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/go-mode 83de700 145/495: Enable compilation-mode for gofmt


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 83de700 145/495: Enable compilation-mode for gofmt error buffer before displaying it
Date: Sat, 7 Aug 2021 09:05:01 -0400 (EDT)

branch: elpa/go-mode
commit 83de70039757699fd9204f33cc4e8e7ff292b13e
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>

    Enable compilation-mode for gofmt error buffer before displaying it
    
    This ensures that packages like popwin.el, which base their display
    behaviour on the buffer's mode, do the right thing.
    
    Closes gh-33
---
 go-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/go-mode.el b/go-mode.el
index e1139d9..55bfa31 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -578,8 +578,8 @@ buffer."
     (insert "gofmt errors:\n")
     (while (search-forward-regexp (concat "^\\(" (regexp-quote tmpfile) 
"\\):") nil t)
       (replace-match (file-name-nondirectory filename) t t nil 1))
-    (display-buffer errbuf)
-    (compilation-mode)))
+    (compilation-mode)
+    (display-buffer errbuf)))
 
 ;;;###autoload
 (defun gofmt-before-save ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]