From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42403) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diPPn-00075B-U8 for guix-patches@gnu.org; Thu, 17 Aug 2017 14:21:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1diPPi-0007tX-99 for guix-patches@gnu.org; Thu, 17 Aug 2017 14:21:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:34417) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1diPPi-0007tP-49 for guix-patches@gnu.org; Thu, 17 Aug 2017 14:21:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1diPPh-0005BW-TN for guix-patches@gnu.org; Thu, 17 Aug 2017 14:21:01 -0400 Subject: [bug#28126] [PATCH 1/1] gnu: Add emacs-browse-at-remote. References: <87mv6yxdqj.fsf@gmail.com> In-Reply-To: <87mv6yxdqj.fsf@gmail.com> Resent-Message-ID: From: Oleg Pykhalov Date: Thu, 17 Aug 2017 21:20:12 +0300 Message-ID: <87a82yxdib.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-emacs-browse-at-remote.patch Content-Description: [PATCH 1/1] gnu: Add emacs-browse-at-remote. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28126@debbugs.gnu.org >From 32a917cb337dbb25010d687f21b3d305eb01a852 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Thu, 17 Aug 2017 20:35:43 +0300 Subject: [PATCH 1/1] gnu: Add emacs-browse-at-remote. * gnu/packages/emacs.scm (emacs-browse-at-remote): New variable. --- gnu/packages/emacs.scm | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 1728b5b92..faa131812 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -5380,3 +5380,54 @@ enables you to easily define search engines, bind them to keybindings, and query them from the comfort of your editor.") (home-page "https://github.com/hrs/engine-mode") (license license:gpl3+))) + +(define-public emacs-browse-at-remote + (let ((commit "b5cff7971ca8bbb966e3acd9b7e5c4c007f94215") + (revision "1")) + (package + (name "emacs-browse-at-remote") + (version (string-append "0.9.0-" revision "." + (string-take commit 7))) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rmuslimov/browse-at-remote.git") + (commit commit))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "16ms9703m15dfxg6ap4mdw7msf8z5rzsdhba51dwivfpjxg7n52c")))) + (build-system emacs-build-system) + (propagated-inputs + `(("emacs-f" ,emacs-f) + ("emacs-s" ,emacs-s) + ("emacs-dash" ,emacs-dash))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'install 'check + (lambda* (#:key inputs #:allow-other-keys) + (zero? (system* "emacs" "--batch" "-L" "." + "-L" (string-append + (assoc-ref inputs "emacs-f") + "/share/emacs/site-lisp/guix.d/f-" + ,(package-version emacs-f)) + "-L" (string-append + (assoc-ref inputs "emacs-s") + "/share/emacs/site-lisp/guix.d/s-" + ,(package-version emacs-s)) + "-L" (string-append + (assoc-ref inputs "emacs-dash") + "/share/emacs/site-lisp/guix.d/dash-" + ,(package-version emacs-dash)) + "-l" "test/api-basic-test.el" + "-f" "ert-run-tests-batch-and-exit"))))))) + (home-page "https://github.com/rmuslimov/browse-at-remote") + (synopsis + "Open github/gitlab/bitbucket/stash page from Emacs") + (description + "Easily open target page on github/gitlab (or bitbucket) from Emacs by +calling @code{browse-at-remote} function. Support dired buffers and opens +them in tree mode at destination. +") + (license license:gpl3+)))) -- 2.14.1