From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZGjk-0004Zm-3y for guix-patches@gnu.org; Tue, 18 Dec 2018 09:52:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZGje-0000DJ-HZ for guix-patches@gnu.org; Tue, 18 Dec 2018 09:52:42 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:48520) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gZGjc-00009a-Hp for guix-patches@gnu.org; Tue, 18 Dec 2018 09:52:36 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gZGhA-0004fw-T5 for guix-patches@gnu.org; Tue, 18 Dec 2018 09:50:04 -0500 Subject: [bug#33790] [PATCH] gnu: Add emacs-wordnut. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZGHu-0004rD-B6 for guix-patches@gnu.org; Tue, 18 Dec 2018 09:24:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZGHq-000733-Nq for guix-patches@gnu.org; Tue, 18 Dec 2018 09:23:58 -0500 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:46465) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gZGHq-00071I-BZ for guix-patches@gnu.org; Tue, 18 Dec 2018 09:23:54 -0500 Received: by mail-pf1-x444.google.com with SMTP id c73so8198028pfe.13 for ; Tue, 18 Dec 2018 06:23:53 -0800 (PST) From: Mathieu Othacehe Date: Tue, 18 Dec 2018 21:24:16 +0900 Message-Id: <20181218122416.19666-1-m.othacehe@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 33790@debbugs.gnu.org * 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 + +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