GNU bug report logs - #33790
[PATCH] gnu: Add emacs-wordnut.

Previous Next

Package: guix-patches;

Reported by: Mathieu Othacehe <m.othacehe <at> gmail.com>

Date: Tue, 18 Dec 2018 14:50:04 UTC

Severity: normal

Tags: patch

Done: Mathieu Othacehe <m.othacehe <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 33790 in the body.
You can then email your comments to 33790 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#33790; Package guix-patches. (Tue, 18 Dec 2018 14:50:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mathieu Othacehe <m.othacehe <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 18 Dec 2018 14:50:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mathieu Othacehe <m.othacehe <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: Mathieu Othacehe <m.othacehe <at> gmail.com>
Subject: [PATCH] gnu: Add emacs-wordnut.
Date: Tue, 18 Dec 2018 21:24:16 +0900
* gnu/packages/patches/emacs-wordnut-require-adaptive-wrap.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add previous file.
* gnu/packages/emacs.scm (emacs-wordnut): New package.
---
 gnu/local.mk                                  |  1 +
 gnu/packages/emacs.scm                        | 26 +++++++++++++++++++
 .../emacs-wordnut-require-adaptive-wrap.patch | 19 ++++++++++++++
 3 files changed, 46 insertions(+)
 create mode 100644 gnu/packages/patches/emacs-wordnut-require-adaptive-wrap.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 0d60e9b75..cdc1df0c5 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -674,6 +674,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/emacs-scheme-complete-scheme-r5rs-info.patch	\
   %D%/packages/patches/emacs-source-date-epoch.patch		\
   %D%/packages/patches/emacs-realgud-fix-configure-ac.patch	\
+  %D%/packages/patches/emacs-wordnut-require-adaptive-wrap.patch	\
   %D%/packages/patches/enlightenment-fix-setuid-path.patch	\
   %D%/packages/patches/erlang-man-path.patch			\
   %D%/packages/patches/eudev-rules-directory.patch		\
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index e9ba0f917..fd85b57cf 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -12828,3 +12828,29 @@ testing Emacs Lisp code.  It allows to group related tests so they can share
 common set-up and tear-down code, and allows the programmer to \"spy\" on
 functions to ensure they are called with the right arguments during testing.")
     (license license:gpl3+)))
+
+(define-public emacs-wordnut
+  (let ((commit "feac531404041855312c1a046bde7ea18c674915")
+        (revision "0"))
+    (package
+      (name "emacs-wordnut")
+      (version (git-version "0.1" revision commit))
+      (home-page "https://github.com/gromnitsky/wordnut")
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference (url home-page) (commit commit)))
+                (sha256
+                 (base32
+                  "1jl0b6g64a9w0q7bfvwha67vgws5xd15b7mkfyb5gkz3pymqhfxn"))
+                (patches
+                 (search-patches "emacs-wordnut-require-adaptive-wrap.patch"))
+                (file-name (git-file-name name version))))
+      (build-system emacs-build-system)
+      (propagated-inputs
+       `(("wordnet" ,wordnet)
+         ("emacs-adaptive-wrap" ,emacs-adaptive-wrap)))
+      (synopsis "Major mode for WordNet")
+      (description "This Emacs package provides an interface for
+@code{wordnut}.  Features include completion, if the query is not found
+too ambiguous and navigation in the result buffer.")
+      (license license:gpl3+))))
diff --git a/gnu/packages/patches/emacs-wordnut-require-adaptive-wrap.patch b/gnu/packages/patches/emacs-wordnut-require-adaptive-wrap.patch
new file mode 100644
index 000000000..9984f1030
--- /dev/null
+++ b/gnu/packages/patches/emacs-wordnut-require-adaptive-wrap.patch
@@ -0,0 +1,19 @@
+Copyright © 2018 Mathieu Othacehe <m.othacehe <at> gmail.com>
+
+This patch forces the use of adaptive-wrap.
+
+diff --git a/wordnut.el b/wordnut.el
+index 0ae86ad..72f9221 100644
+--- a/wordnut.el
++++ b/wordnut.el
+@@ -4,6 +4,7 @@
+ (require 'subr-x)
+ (require 'outline)
+ (require 'imenu)
++(require 'adaptive-wrap)
+ 
+ (require 'wordnut-history)
+ 
+-- 
+2.17.1
+
-- 
2.17.1





Information forwarded to guix-patches <at> gnu.org:
bug#33790; Package guix-patches. (Wed, 19 Dec 2018 21:36:01 GMT) Full text and rfc822 format available.

Message #8 received at 33790 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Mathieu Othacehe <m.othacehe <at> gmail.com>
Cc: 33790 <at> debbugs.gnu.org
Subject: Re: [bug#33790] [PATCH] gnu: Add emacs-wordnut.
Date: Wed, 19 Dec 2018 22:35:11 +0100
Hi!

Mathieu Othacehe <m.othacehe <at> gmail.com> skribis:

> * gnu/packages/patches/emacs-wordnut-require-adaptive-wrap.patch: New file.
> * gnu/local.mk (dist_patch_DATA): Add previous file.
> * gnu/packages/emacs.scm (emacs-wordnut): New package.

[...]

> +      (synopsis "Major mode for WordNet")
> +      (description "This Emacs package provides an interface for
> +@code{wordnut}.  Features include completion, if the query is not found
        ^^
It’s an interface to WordNet, not to wordnut.

> +++ b/gnu/packages/patches/emacs-wordnut-require-adaptive-wrap.patch
> @@ -0,0 +1,19 @@
> +Copyright © 2018 Mathieu Othacehe <m.othacehe <at> gmail.com>
> +
> +This patch forces the use of adaptive-wrap.

Could you add a link to the upstream issue, if any?

Otherwise LGTM, thanks!

Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#33790; Package guix-patches. (Fri, 21 Dec 2018 09:56:02 GMT) Full text and rfc822 format available.

Message #11 received at 33790 <at> debbugs.gnu.org (full text, mbox):

From: Mathieu Othacehe <m.othacehe <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 33790 <at> debbugs.gnu.org
Subject: Re: [bug#33790] [PATCH] gnu: Add emacs-wordnut.
Date: Fri, 21 Dec 2018 10:55:44 +0100
Hey!

> Could you add a link to the upstream issue, if any?
>
> Otherwise LGTM, thanks!

I fixed both issues and pushed as
4b33a74138740101042c31bef304b8ba35e81126.

Thanks for reviewing :)

Mathieu




bug closed, send any further explanations to 33790 <at> debbugs.gnu.org and Mathieu Othacehe <m.othacehe <at> gmail.com> Request was from Mathieu Othacehe <m.othacehe <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 21 Dec 2018 09:58:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 18 Jan 2019 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 154 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.