Subject: bug#40302: closed (Re: [bug#40302] [PATCH] gnu: Add emacs-racer.)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 30 Mar 2020 13:03:02 +0000

Your bug report

#40302: [PATCH] gnu: Add emacs-racer.

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].

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

Subject: Re: [bug#40302] [PATCH] gnu: Add emacs-racer.
From: Nicolas Goaziou <[email-masked]>
To: John Soo <[email-masked]>
Cc: [email-masked]
Date: Mon, 30 Mar 2020 15:02:36 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

John Soo <[email-masked]> writes:

> I don't write a lot of rust but racer provides excellent completion for
> emacs.

I activated tests, reworded the description and applied this as
ea5a3a43f87c639751a692651c367cdae9fc0e36.

Thank you!

Regards,

-- 
Nicolas Goaziou

Subject: [PATCH] gnu: Add emacs-racer.
From: John Soo <[email-masked]>
To: [email-masked]
Date: Sat, 28 Mar 2020 18:14:31 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Guix,

I don't write a lot of rust but racer provides excellent completion for
emacs.

Thanks,

John

>>From 2d61455ba198cfd02a6056170889f274a6ed577e Mon Sep 17 00:00:00 2001
From: John Soo <[email-masked]>
Date: Tue, 24 Mar 2020 08:18:34 -0700
Subject: [PATCH] gnu: Add emacs-racer.

* gnu/packages/emacs-xyz.scm (emacs-racer): New variable.
---
 gnu/packages/emacs-xyz.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 9d40b8019e..9dfdb120ce 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -65,6 +65,7 @@
 ;;; Copyright © 2020 Michael Rohleder <[email-masked]>
 ;;; Copyright © 2020 Brice Waegeneire <[email-masked]>
 ;;; Copyright © 2020 6033fe7de85d <[email-masked]>
+;;; Copyright © 2020 John Soo <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -21776,3 +21777,37 @@ enables modal editing and composition of commands, too.  It combines ideas of
 other Editors like Vim or Kakoune and tries to align them with regular Emacs
 conventions.")
     (license license:gpl3+)))
+
+(define-public emacs-racer
+  (package
+    (name "emacs-racer")
+    (version "1.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri
+        (git-reference
+         (url "https://github.com/racer-rust/emacs-racer")
+         (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0xj5iki10cg8j8vvqjlw6lfx97k3agwirhchcjnzbnkry48x9qi6"))))
+    (inputs
+     `(("emacs-dash" ,emacs-dash)
+       ("emacs-f" ,emacs-f)
+       ("emacs-pos-tip" ,emacs-pos-tip)
+       ("emacs-rust-mode" ,emacs-rust-mode)
+       ("emacs-s" ,emacs-s)))
+    (build-system emacs-build-system)
+    (home-page "https://github.com/racer-rust/emacs-racer")
+    (synopsis "Racer support for Emacs")
+    (description
+     "This is the official Emacs package for Racer. Features:
+
+@itemize
+@item Completion
+@item Find Definitions
+@item Describe Functions and Types
+@end itemize")
+    (license license:expat)))
-- 
2.26.0