From: Jack Hill <jackhill@jackhill.us>
To: 34900@debbugs.gnu.org
Subject: [bug#34900] Add emacs-semantic-refactor
Date: Sun, 17 Mar 2019 23:04:50 -0400 (EDT) [thread overview]
Message-ID: <alpine.DEB.2.20.1903172247080.16784@marsh.hcoop.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 1203 bytes --]
Hi Guix,
The attached patch adds the emacs-semantic-refactor package.
When reviewing this patch some particular things to look out for/questions
I have:
0) There are different sections in the (gnu packages emacs-xyz) module
that are delineated by comments (e.g. Emacs Hacking, Web Browsing, and
Miscellaneous). I've added the definition of emacs-semantic-refactor near
the end of the file in the Miscellaneous section. I wonder if this is
correct or if it should go in the Emacs Hacking section. Paredit, which
would be used in similar scenarios to semantic-refactor is in the Emacs
Hacking section.
1) The upstream source contains a number of animated gif files
demonstrating usage in the srefactor-demos directory. I do not see a build
process for these, and assume they were created by hand. Are we free to
distribute these in Guix?
2) semantic-refactor has an optional integration with projectile whose
availability is checked for with (featurep 'projectile). I have not added
projectile as an input or propagated-input. Is this OK?
3) I'm still new to writing package definitions, so extra scrutiny is
warranted, particularly for the synopsis and description.
All the best,
Jack
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-diff; name=0001-gnu-Add-emacs-semantic-refactor.patch, Size: 2862 bytes --]
From 1470705542f28351ceaf183a49cd5d869a4576db Mon Sep 17 00:00:00 2001
From: Jack Hill <jackhill@jackhill.us>
Date: Sun, 17 Mar 2019 22:01:17 -0400
Subject: [PATCH] gnu: Add emacs-semantic-refactor
* gnu/packages/emacs-xyz.scm (emacs-semantic-refactor): New variable.
---
gnu/packages/emacs-xyz.scm | 43 +++++++++++++++++++++++++++++++++++++-
1 file changed, 42 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 8d5ee6c5fb..a8a59a2dee 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -36,7 +36,7 @@
;;; Copyright © 2018 Mathieu Lirzin <mthl@gnu.org>
;;; Copyright © 2018, 2019 Pierre Neidhardt <mail@ambrevar.xyz>
;;; Copyright © 2018, 2019 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
-;;; Copyright © 2018 Jack Hill <jackhill@jackhill.us>
+;;; Copyright © 2018, 2019 Jack Hill <jackhill@jackhill.us>
;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
;;; Copyright © 2018 Alex Branham <alex.branham@gmail.com>
;;; Copyright © 2018 Thorsten Wilms <t_w_@freenet.de>
@@ -13691,6 +13691,47 @@ command\", but because it always involves at least two commands (a prefix and
a suffix) we prefer to call it just a \"transient\".")
(license license:gpl3+))))
+(define-public emacs-semantic-refactor
+ ;; The last release, 0.5, was made on 2015-07-26 and there have been 47
+ ;; commits since then.
+ (let ((commit "6f2c97d17fb70f4ca2112f5a2b99a8ec162004f5"))
+ (package
+ (name "emacs-semantic-refactor")
+ (version (git-version "0.5" "1" commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tuhdo/semantic-refactor")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1lyz3zjkx2csh0xdy1zpx8s32qp1p3sig57mwi9xhgpqjyf0axmb"))))
+ (build-system emacs-build-system)
+ (home-page "https://github.com/tuhdo/semantic-refactor")
+ (synopsis "Refactoring tool for C/C++ and Lisp dialects")
+ (description "A refactoring tool based on the Emacs Semantic parser
+framework. For C and C++ it supports operations such as:
+
+@enumerate
+@item Generating class implementations
+@item Generating function prototypes
+@item Converting functions to function pointers
+@item Moving semantic units
+@item etc...
+@end enumerate
+
+For Lisp dialects like Clojure, ELisp, and Scheme, it supports operations such
+as:
+
+@enumerate
+@item Formatting the whole buffer
+@item Converting sexpressions to one or multiple lines
+@item etc...
+@end enumerate\n")
+ (license license:gpl3+))))
+
(define-public emacs-nhexl-mode
(package
(name "emacs-nhexl-mode")
--
2.21.0
next reply other threads:[~2019-03-18 3:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-18 3:04 Jack Hill [this message]
2019-03-21 19:49 ` bug#34900: Add emacs-semantic-refactor Marius Bakke
2019-03-21 20:05 ` [bug#34900] " Jack Hill
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.20.1903172247080.16784@marsh.hcoop.net \
--to=jackhill@jackhill.us \
--cc=34900@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).