GNU bug report logs -
#57171
[PATCH] gnu: Add emacs-pdfgrep.
Previous Next
Reported by: pinoaffe <pinoaffe <at> gmail.com>
Date: Sat, 13 Aug 2022 12:09:02 UTC
Severity: normal
Tags: patch
Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
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 57171 in the body.
You can then email your comments to 57171 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#57171
; Package
guix-patches
.
(Sat, 13 Aug 2022 12:09:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
pinoaffe <pinoaffe <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sat, 13 Aug 2022 12:09:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Date: Sat, 13 Aug 2022 13:59:20 +0200
From ed9c9546ff4ed6f24dd534fc80854755f20d8de1 Mon Sep 17 00:00:00 2001
* gnu/packages/emacs-xyz.scm (emacs-pdfgrep): New variable.
---
gnu/packages/emacs-xyz.scm | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 3c1d322db3..18e32a3283 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -70,7 +70,7 @@
;;; Copyright © 2020 Jérémy Korwin-Zmijowski <jeremy <at> korwin-zmijowski.fr>
;;; Copyright © 2020 Alberto Eleuterio Flores Guerrero <barbanegra+guix <at> posteo.mx>
;;; Copyright © 2020 Marius Bakke <mbakke <at> fastmail.com>
-;;; Copyright © 2020 pinoaffe <pinoaffe <at> airmail.cc>
+;;; Copyright © 2020, 2022 pinoaffe <pinoaffe <at> gmail.com>
;;; Copyright © 2020, 2021, 2022 Vinicius Monego <monego <at> posteo.net>
;;; Copyright © 2020 Ryan Desfosses <rdes <at> protonmail.com>
;;; Copyright © 2020 Marcin Karpezo <sirmacik <at> wioo.waw.pl>
@@ -3839,6 +3839,28 @@ (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)
+ (propagated-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")
--
2.37.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#57171
; Package
guix-patches
.
(Tue, 23 Aug 2022 10:10:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 57171 <at> debbugs.gnu.org (full text, mbox):
Thanks for the patch.
I’d change the let* to let, because we don’t need previous bindings to
be available in later bindings.
It would also be nice to avoid propagating pdfgrep.
We could probably avoid propagation by patching
https://github.com/jeremy-compostella/pdfgrep/blob/master/pdfgrep.el#L59
and perhaps also line 81 (executable-find "pdfgrep").
In the synopsis I’d remove the `…' quotes, but that’s a nit-pick.
What do you think?
--
Ricardo
Information forwarded
to
guix-patches <at> gnu.org
:
bug#57171
; Package
guix-patches
.
(Mon, 19 Sep 2022 20:06:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 57171 <at> debbugs.gnu.org (full text, mbox):
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 <jeremy <at> korwin-zmijowski.fr>
;;; Copyright © 2020 Alberto Eleuterio Flores Guerrero <barbanegra+guix <at> posteo.mx>
;;; Copyright © 2020 Marius Bakke <mbakke <at> fastmail.com>
-;;; Copyright © 2020 pinoaffe <pinoaffe <at> airmail.cc>
+;;; Copyright © 2020, 2022 pinoaffe <pinoaffe <at> gmail.com>
;;; Copyright © 2020, 2021, 2022 Vinicius Monego <monego <at> posteo.net>
;;; Copyright © 2020 Ryan Desfosses <rdes <at> protonmail.com>
;;; Copyright © 2020 Marcin Karpezo <sirmacik <at> wioo.waw.pl>
@@ -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")
--
2.37.2
Reply sent
to
Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
:
You have taken responsibility.
(Tue, 20 Sep 2022 19:39:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
pinoaffe <pinoaffe <at> gmail.com>
:
bug acknowledged by developer.
(Tue, 20 Sep 2022 19:39:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 57171-done <at> debbugs.gnu.org (full text, mbox):
Hello,
pinoaffe <pinoaffe <at> gmail.com> writes:
> 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.
Thank you. Applied with the following changes.
> +(define-public emacs-pdfgrep
> + (let ((commit "a4ca0a1e6521de93f28bb6736a5344b4974d144c")
> + (revision "0"))
> + (package
> + (name "emacs-pdfgrep")
> + (version (git-version "0" revision commit))
Latest version is actually 1.4. I also downgraded the commit to the one
matching the version bump.
> + (url "https://github.com/jeremy-compostella/pdfgrep.git")
I removed the ".git" suffix from the URL.
> + (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)))))
I removed the trailing #t.
> + (synopsis "Run pdfgrep within Emacs and display the results.")
> + (description
> + "This package provides the Emacs \"grep\" facilities for the pdfgrep program.")
I used the description from the repository, which seemed more clear.
Regards,
--
Nicolas Goaziou
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 19 Oct 2022 11:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 247 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.