all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#28026] [PATCH] gnu: Add emacs-git-messenger.
@ 2017-08-09 14:51 Oleg Pykhalov
  2017-08-10  8:01 ` bug#28026: " Arun Isaac
  0 siblings, 1 reply; 2+ messages in thread
From: Oleg Pykhalov @ 2017-08-09 14:51 UTC (permalink / raw)
  To: 28026

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: [PATCH] gnu: Add emacs-git-messenger. --]
[-- Type: text/x-patch, Size: 2448 bytes --]

From f2ac64a4326e4b9dcf8fce29fcb0b5e4acf3ca34 Mon Sep 17 00:00:00 2001
From: Oleg Pykhalov <go.wigust@gmail.com>
Date: Mon, 31 Jul 2017 18:07:13 +0300
Subject: [PATCH] gnu: Add emacs-git-messenger.

gnu/packages/emacs.scm (emacs-git-messenger): New variable.
---
 gnu/packages/emacs.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 37a4129a1..6f086d6b1 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -5253,3 +5253,42 @@ user easy handle git-format patch without exit Emacs.
 @code{M-x gitpatch-mail} can send a git-format patch file from @code{magit},
 @code{dired}, @code{ibuffer} buffers.")
     (license license:gpl2+)))
+
+(define-public emacs-git-messenger
+  (package
+    (name "emacs-git-messenger")
+    (version "0.18")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://github.com/syohex/emacs-git-messenger/archive/"
+             version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "17mqki6g0wx46fn7dcbcc2pjxik7vvrcb1j9jzxim8b9psbsbnp9"))))
+    (build-system emacs-build-system)
+    (propagated-inputs
+     `(("emacs-popup" ,emacs-popup)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'install 'check
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let ((emacs-popup (string-append
+                                 (assoc-ref %build-inputs "emacs-popup")
+                                 "/share/emacs/site-lisp/guix.d/popup-"
+                                 ,(package-version emacs-popup))))
+               (zero? (system* "emacs" "--batch" "-L" "."
+                               "-l" (string-append emacs-popup
+                                                   "/popup.el")
+                               "-l" "test/test.el"
+                               "-f" "ert-run-tests-batch-and-exit"))))))))
+    (home-page "https://github.com/syohex/emacs-git-messenger")
+    (synopsis "Popup commit message at current line")
+    (description "@code{emacs-git-messenger} provides a function called
+@code{git-messenger:popup-message} that when called will pop-up the last git
+commit message for the current line.  This uses the git-blame tool
+internally.")
+    (license license:gpl3+)))
-- 
2.14.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#28026: [PATCH] gnu: Add emacs-git-messenger.
  2017-08-09 14:51 [bug#28026] [PATCH] gnu: Add emacs-git-messenger Oleg Pykhalov
@ 2017-08-10  8:01 ` Arun Isaac
  0 siblings, 0 replies; 2+ messages in thread
From: Arun Isaac @ 2017-08-10  8:01 UTC (permalink / raw)
  To: Oleg Pykhalov; +Cc: 28026-done


Thanks for the patch!

Pushed with a slight simplification of the `check' phase, and a couple
of minor changes to the description.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-10  8:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-09 14:51 [bug#28026] [PATCH] gnu: Add emacs-git-messenger Oleg Pykhalov
2017-08-10  8:01 ` bug#28026: " Arun Isaac

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.