From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2CtTK+yRj2QqdwEASxT56A (envelope-from ) for ; Mon, 19 Jun 2023 01:23:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MO5MK+yRj2TiGgEA9RJhRA (envelope-from ) for ; Mon, 19 Jun 2023 01:23:24 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5BCBB9C5A for ; Mon, 19 Jun 2023 01:23:24 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qB1jh-0007hI-JO; Sun, 18 Jun 2023 19:23:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qB1ja-0007gq-K7 for guix-patches@gnu.org; Sun, 18 Jun 2023 19:23:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qB1ja-0000UM-AM for guix-patches@gnu.org; Sun, 18 Jun 2023 19:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qB1ja-0002Es-5m for guix-patches@gnu.org; Sun, 18 Jun 2023 19:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63987] [PATCH v3] gnu: Add emacs-jinx. References: <88d5ddf1b26b5f4c23601780aa29158e46a6cbfe.1686354110.git.mekeor@posteo.de> In-Reply-To: <88d5ddf1b26b5f4c23601780aa29158e46a6cbfe.1686354110.git.mekeor@posteo.de> Resent-From: Mekeor Melire Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 18 Jun 2023 23:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63987 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63987@debbugs.gnu.org Received: via spool by 63987-submit@debbugs.gnu.org id=B63987.16871305498555 (code B ref 63987); Sun, 18 Jun 2023 23:23:02 +0000 Received: (at 63987) by debbugs.gnu.org; 18 Jun 2023 23:22:29 +0000 Received: from localhost ([127.0.0.1]:55229 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qB1j3-0002Dv-BC for submit@debbugs.gnu.org; Sun, 18 Jun 2023 19:22:29 -0400 Received: from mout02.posteo.de ([185.67.36.66]:58711) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qB1j0-0002Dg-9D for 63987@debbugs.gnu.org; Sun, 18 Jun 2023 19:22:27 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3923D240101 for <63987@debbugs.gnu.org>; Mon, 19 Jun 2023 01:22:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1687130540; bh=L1KF1Sn1sZbeQIL0DyDXqQIt1JvSpl4pj6sYJmOxHLM=; h=From:To:Subject:Date:Message-ID:MIME-Version:From; b=gUjeLeLs90NIa2EvDCCwaa/dbq0yoIHAOItOzoBqq5BE1MaBOWsNNxRTyrsZ8XlVv 9hLTExbCVOcNRATxzGugbnjOKXDUsKy67nhBSnO7H0Lm+QQF5izmTLdXweSM3pPGG1 7vpLMLC8vICP2K7zCnSAek/0MlLlz+vrTrUjQQW8NtmEhh1YtgFv8hT2Z+2u/0jFJd t781sXu6XEZSNNoIZsm6PxCg5wG1+Uda1iJF1OFxxrIxJqXBoOv4RF9tMo8eXGlVHN ZaqxYG42WzN8ZWxMgbXMrkD/aQaSR1iFv0/xSsUEoxKaay87KbPNN85WKagWCmPo0l 2cchc2n+XPAXg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Qkpp336gyz9rxG; Mon, 19 Jun 2023 01:22:19 +0200 (CEST) From: Mekeor Melire Date: Sun, 18 Jun 2023 23:17:18 +0000 Message-ID: <87v8fk5pgc.fsf@posteo.de> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687130604; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=WKKo0hofbz5mW1kaIkzLv3iyWAhlgrQi5K3dilyKE5M=; b=DCEveJ6hIdIVF746HAmB8AFR0sooRwmlNVIvIU7iDaHyJoPo9TIjZOqnikCznT/dnNNkSA Imm+LXm7IkAD8V5a7I/MINw67tNLMM3zwqLxl4UPWhBplCdMyPpZW1XwcNVKqJuS2fhUTI DGFhIjTI6KGMYRPwMa3yKsrjR1PICQzimt89gA8dbXRXkna/TFlfntE2lQlwGdReg8thiw Wt98rqI/H3E6T42iMygc4UUDCgozSIEw+m2EQ5yi8Xt9Fg2Al6uSaMAzK8s7OjnWty+8ET qQF5xy+IowXKVNWhxKdy7mBR7gkxGRdLf8khc64TvtjQR5FGL1GUXaqodgQeZg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.de header.s=2017 header.b=gUjeLeLs; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.de (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687130604; a=rsa-sha256; cv=none; b=TRiIzXTZgZMHIBRLdExBya8C3kP5mQXZdUP6z//MPoBZhvkCg3/QMwaxmKmvSQGTbFiYEd 6LIOT2UZAgfMFEYp6yXMqrEQ7RmJy6oL4ouGNIVVxeREyFEf/VsPbLni6cgV46Qv0X4uWC JvjcOAU3Wn6HgUkXSmWQrNmXPXIVf79d2LVuJYUfEDOZ0x5Of1muo+j5IIasnKFfujkP6f ilOSDdw2y3xnM7QRp1B+8Dk5TIRRtJUD2FzyZJ3wSkt7HxGiZBG8Uay25VZWhLbl4S+5pk CbdwEOgeFygvJAhPztZiaLcmH9cLBYyfmTKawUEAvKN6fHGyiCqp9izJ4qlIFA== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.35 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.de header.s=2017 header.b=gUjeLeLs; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.de (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5BCBB9C5A X-Spam-Score: -2.35 X-TUID: 8+geQcoOb+ra * gnu/packages/emacs-xyz.scm (emacs-jinx): New variable. --- Sorry. Here's another edit that makes the order of phases more comprehensible. gnu/packages/emacs-xyz.scm | 60 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 24a4ae169e..dcefa0475e 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -177,6 +177,7 @@ (define-module (gnu packages emacs-xyz) #:use-module (gnu packages djvu) #:use-module (gnu packages ebook) #:use-module (gnu packages emacs) + #:use-module (gnu packages enchant) #:use-module (gnu packages fonts) #:use-module (gnu packages freedesktop) #:use-module (gnu packages games) @@ -10010,6 +10011,65 @@ (define-public emacs-jinja2-mode sgml/html integration, and indentation (working with sgml).") (license license:gpl3+))) +(define-public emacs-jinx + (package + (name "emacs-jinx") + (version "0.8") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/minad/jinx") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1y097rnf9zg26jf4vh74a0laddfp4x6pp1fjqs3xqgwc0cmdq59w")))) + (build-system emacs-build-system) + (propagated-inputs (list emacs-compat)) + (native-inputs (list emacs-compat enchant pkg-config texinfo)) + (inputs (list enchant)) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'expand-load-path 'build-jinx-mod + (lambda* _ + (invoke + "emacs" "--batch" "-L" "." + "-l" "jinx.el" + "-f" "jinx--load-module"))) + (add-after 'expand-load-path 'build-info + (lambda _ + (invoke "emacs" "--batch" + "--eval=(require 'ox-texinfo)" + "--eval=(find-file \"README.org\")" + "--eval=(org-texinfo-export-to-info)"))) + (add-after 'build-jinx-mod 'patch-path-to-jinx-mod + (lambda _ + (let ((file "jinx.el")) + (make-file-writable file) + (emacs-substitute-sexps file + ("\"Compile and load dynamic module.\"" + `(module-load + ,(string-append #$output "/lib/jinx-mod.so"))))))) + (add-after 'install 'install-jinx-mod + (lambda _ + (install-file "jinx-mod.so" + (string-append #$output "/lib")))) + (add-after 'install 'install-info + (lambda _ + (install-file "jinx.info" + (string-append #$output "/share/info"))))))) + (home-page "https://github.com/minad/jinx") + (synopsis "Emacs Enchanted Spell Checker") + (description "Jinx is a just-in-time spell-checker for Emacs based on the +Enchant library. It lazily highlights misspelled words in the text of the +visible portion of the buffer by honouring window boundaries as well as text +folding, if any.") + (license license:gpl3+))) + (define-public emacs-jit-spell (package (name "emacs-jit-spell") -- 2.39.2