From patchwork Mon Sep 19 20:05:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: pinoaffe X-Patchwork-Id: 42751 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4F03227BBEA; Mon, 19 Sep 2022 21:06:18 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 11F9527BBE9 for ; Mon, 19 Sep 2022 21:06:18 +0100 (BST) Received: from localhost ([::1]:47280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oaN21-0005kP-6y for patchwork@mira.cbaines.net; Mon, 19 Sep 2022 16:06:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaN1n-0005hd-6S for guix-patches@gnu.org; Mon, 19 Sep 2022 16:06:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56279) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oaN1m-0004Sy-U7 for guix-patches@gnu.org; Mon, 19 Sep 2022 16:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oaN1m-0003Vz-DK for guix-patches@gnu.org; Mon, 19 Sep 2022 16:06:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57171] [PATCH v2] gnu: Add emacs-pdfgrep. References: <875yiwtkgj.fsf@gmail.com> In-Reply-To: <875yiwtkgj.fsf@gmail.com> Resent-From: pinoaffe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 19 Sep 2022 20:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57171 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57171@debbugs.gnu.org Received: via spool by 57171-submit@debbugs.gnu.org id=B57171.166361795113494 (code B ref 57171); Mon, 19 Sep 2022 20:06:02 +0000 Received: (at 57171) by debbugs.gnu.org; 19 Sep 2022 20:05:51 +0000 Received: from localhost ([127.0.0.1]:55357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oaN1a-0003Va-PV for submit@debbugs.gnu.org; Mon, 19 Sep 2022 16:05:51 -0400 Received: from mail-ej1-f43.google.com ([209.85.218.43]:36361) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oaN1X-0003VM-5s for 57171@debbugs.gnu.org; Mon, 19 Sep 2022 16:05:50 -0400 Received: by mail-ej1-f43.google.com with SMTP id 13so1282373ejn.3 for <57171@debbugs.gnu.org>; Mon, 19 Sep 2022 13:05:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date; bh=m3twHrYsxUPLafRxbN9du5fNiG0IXsIF/LTxnkxwPHM=; b=D29giDttE8B2q6PkYHAJVTaZdqMN1n/EbMhCVQZzuKsrhZVWX3fiGqoMrkKaQJtug8 nlIhDxj4oiPyvKt4tMzq4fbvTFCvUkSE+u3ITeDHyQNOLZg17j/edst6jYkV6Cl2p9l6 Tb3n4GjcRYuFrnoDbjRZzOEbDPnH8SFODkFzVZcvIDIY7ZUJIisb0P/Wf4eyEkjoK1Cl naghzYNe5BJLD0gJy3joJ+bIkMy53P+LU0N0xImubpIz1P2qR5jZHOpzM1p6NdWSdPAq K9Cn7xUAXVjoTADCg2QpM9WbkOLctdpGoQSHQUYn92/HaSrMr15VXAR5YuGcmjKVfvIL umnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date; bh=m3twHrYsxUPLafRxbN9du5fNiG0IXsIF/LTxnkxwPHM=; b=UKL3IWNv7h+lBJz1YjWQnOdTKoscTForEBa145yuZJ6Z2IteqGNvIiF8FVI2qXsbiP OSg8zKjFdZIHFeEGYs04Po1CV34/kLHS+E/ahOK0axtPN9jvIu2r3fcFuU8svV7hyEoU OnmY29v6bqy0np5cZzdf5UWzIFPnNPyXCbg8HXS0ZESbaT+FKxswo6Msu3eC3LDMxvCV x9sxuQyvnI1/sLNhxJU0fHTH7r+YVisKJFqxTehafJn+idFKhaS3RVx5T/gfetA5VFB6 DocobyXD8aFrzA10PENM2p5c7kdDAaKqqbx9Nh1tL9LZwPBTGmFGgC0JVqi3perLfetH dxag== X-Gm-Message-State: ACrzQf0n4ahSe1hHH83L32yzg7yMWWCGHGSkWRBghiN+Vfxp1aBOkR79 sv9fv7d+u4o2mFcF2VD1iXJv/mKHiZ8= X-Google-Smtp-Source: AMsMyM7jazhBmw0g0v0h9PIx4oJjN8a1z5H0RbgCdug5cKTnxnEXM4l83qt3i0JigCRyp0/UZawRWg== X-Received: by 2002:a17:907:86a9:b0:780:191:b7d2 with SMTP id qa41-20020a17090786a900b007800191b7d2mr14112153ejc.766.1663617941371; Mon, 19 Sep 2022 13:05:41 -0700 (PDT) Received: from localhost (dhcp-077-251-053-019.chello.nl. [77.251.53.19]) by smtp.gmail.com with ESMTPSA id d19-20020a50fe93000000b0044e6802623dsm20799602edt.18.2022.09.19.13.05.40 for <57171@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Sep 2022 13:05:40 -0700 (PDT) From: pinoaffe Date: Mon, 19 Sep 2022 22:05:40 +0200 Message-ID: <878rmf2kq3.fsf@gmail.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Date: Sat, 13 Aug 2022 13:59:20 +0200 From 28d500390c6eee5e89b9fb3c756300751b8af598 Mon Sep 17 00:00:00 2001 * gnu/packages/emacs-xyz.scm (emacs-pdfgrep): New variable. --- gnu/packages/emacs-xyz.scm | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 3c1d322db3..8f5c445973 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -70,7 +70,7 @@ ;;; Copyright © 2020 Jérémy Korwin-Zmijowski ;;; Copyright © 2020 Alberto Eleuterio Flores Guerrero ;;; Copyright © 2020 Marius Bakke -;;; Copyright © 2020 pinoaffe +;;; Copyright © 2020, 2022 pinoaffe ;;; Copyright © 2020, 2021, 2022 Vinicius Monego ;;; Copyright © 2020 Ryan Desfosses ;;; Copyright © 2020 Marcin Karpezo @@ -3839,6 +3839,39 @@ (define-public emacs-saveplace-pdf-view restore the saved place.") (license license:gpl3+))) +(define-public emacs-pdfgrep + (let ((commit "a4ca0a1e6521de93f28bb6736a5344b4974d144c") + (revision "0")) + (package + (name "emacs-pdfgrep") + (version (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jeremy-compostella/pdfgrep.git") + (commit commit))) + (sha256 + (base32 "093sm3ywa338lhhz2ib3ylcgklsbxcsqck2qsaq26i2qxr0r7lq2")))) + (build-system emacs-build-system) + (arguments `(#:phases + (modify-phases %standard-phases + (add-after + 'unpack + 'patch-pdfgrep-path + (lambda* (#:key inputs #:allow-other-keys) + (make-file-writable "pdfgrep.el") + (emacs-substitute-variables "pdfgrep.el" + ("pdfgrep-program" + (search-input-file inputs "bin/pdfgrep"))) + #t))))) + (inputs (list pdfgrep)) + (home-page "https://github.com/jeremy-compostella/pdfgrep") + (synopsis "Run pdfgrep within Emacs and display the results.") + (description + "This package provides the Emacs \"grep\" facilities for the pdfgrep program.") + (license license:gpl3+)))) + (define-public emacs-dash (package (name "emacs-dash")