Subject: bug#29647: closed (Re: [bug#29647] [PATCH] gnu: Add emacs-diff-hl.)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 11 Dec 2017 16:10:02 +0000

Your bug report

#29647: [PATCH] gnu: Add emacs-diff-hl.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
29647: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=29647
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#29647] [PATCH] gnu: Add emacs-diff-hl.
From: [email-masked] (Ludovic Courtès)
To: Maxim Cournoyer <[email-masked]>
Cc: [email-masked]
Date: Mon, 11 Dec 2017 17:09:28 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Maxim Cournoyer <[email-masked]> skribis:

> From b50b81f8e5a59e0a561419b483fbc48edf39c547 Mon Sep 17 00:00:00 2001
> From: Maxim Cournoyer <[email-masked]>
> Date: Sun, 10 Dec 2017 12:50:26 -0500
> Subject: [PATCH] gnu: Add emacs-diff-hl.
>
> * gnu/packages/emacs.scm (emacs-diff-hl): New variable.

Applied, thanks!

Subject: [PATCH] gnu: Add emacs-diff-hl.
From: Maxim Cournoyer <[email-masked]>
To: guix-patches <[email-masked]>
Date: Sun, 10 Dec 2017 12:58:08 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello!

This adds emacs-diff-hl, which can be used to highlight changed lines
since the last commit the in versioning system.

The config below enables it for programming buffers:

--8<---------------cut here---------------start------------->8---
;;; Visualize changed lines
(add-hook 'prog-mode-hook 'turn-on-diff-hl-mode)
(add-hook 'vc-dir-mode-hook 'turn-on-diff-hl-mode)
(add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh)
--8<---------------cut here---------------end--------------->8---

Thanks,

Maxim

From b50b81f8e5a59e0a561419b483fbc48edf39c547 Mon Sep 17 00:00:00 2001
From: Maxim Cournoyer <[email-masked]>
Date: Sun, 10 Dec 2017 12:50:26 -0500
Subject: [PATCH] gnu: Add emacs-diff-hl.

* gnu/packages/emacs.scm (emacs-diff-hl): New variable.
---
 gnu/packages/emacs.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 77da8f2f2..d3256d90b 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -5023,6 +5023,28 @@ you'd get with @kbd{M-q} using @code{adaptive-fill-mode}, but without
 actually changing the buffer's text.")
     (license license:gpl3+)))
 
+(define-public emacs-diff-hl
+ (package
+  (name "emacs-diff-hl")
+  (version "1.8.4")
+  (source
+    (origin
+      (method url-fetch)
+      (uri (string-append "http://elpa.gnu.org/packages/diff-hl-"
+                          version ".tar"))
+      (sha256
+        (base32
+          "0axhidc3cym7a2x4rpxf4745qss9s9ajyg4s9h5b4zn7v7fyp71n"))))
+  (build-system emacs-build-system)
+  (home-page "https://github.com/dgutov/diff-hl")
+  (synopsis
+    "Highlight uncommitted changes using VC")
+  (description
+    "@code{diff-hl-mode} highlights uncommitted changes on the side of the
+window (using the fringe, by default), allows you to jump between
+the hunks and revert them selectively.")
+  (license license:gpl3+)))
+
 (define-public emacs-diminish
   (package
     (name "emacs-diminish")
-- 
2.14.1