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

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

[nongnu] elpa/go-mode ba95288 071/495: load diff-mode on package load, n


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode ba95288 071/495: load diff-mode on package load, not when running gofmt
Date: Sat, 7 Aug 2021 09:04:46 -0400 (EDT)

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

    load diff-mode on package load, not when running gofmt
---
 go-mode.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/go-mode.el b/go-mode.el
index b04c4e5..b777bb7 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -11,9 +11,9 @@
 ;;   and everywhere where type-name is being used
 
 (eval-when-compile
-  (require 'diff-mode)
   (require 'cl))
 
+(require 'diff-mode)
 (require 'ffap)
 (require 'find-lisp)
 
@@ -378,7 +378,6 @@ Replace the current buffer on success; display errors on 
failure."
     (insert-buffer-substring patchbuf)))
 
 (defun gofmt--apply-patch (filename srcbuf patchbuf)
-  (require 'diff-mode)
   ;; apply all the patch hunks
   (with-current-buffer patchbuf
     (goto-char (point-min))



reply via email to

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