GNU bug report logs - #48650
[PATCH] gnu: Add emacs-org-pandoc-import.

Previous Next

Package: guix-patches;

Reported by: Xinglu Chen <public <at> yoctocell.xyz>

Date: Tue, 25 May 2021 11:03: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 48650 in the body.
You can then email your comments to 48650 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#48650; Package guix-patches. (Tue, 25 May 2021 11:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Xinglu Chen <public <at> yoctocell.xyz>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 25 May 2021 11:03:02 GMT) Full text and rfc822 format available.

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

From: Xinglu Chen <public <at> yoctocell.xyz>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add emacs-org-pandoc-import.
Date: Tue, 25 May 2021 13:02:30 +0200
* gnu/packages/emacs-xyz.scm (emacs-org-pandoc-import): New variable.
---
 gnu/packages/emacs-xyz.scm | 50 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 886320cc34..4e914c5898 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -7115,6 +7115,56 @@ It also prettifies Org plain list bullets by:
 Features degrade gracefully when viewed from terminal.")
     (license license:gpl3+)))
 
+(define-public emacs-org-pandoc-import
+  (package
+    (name "emacs-org-pandoc-import")
+    (version "1.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/tecosaur/org-pandoc-import/")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "00z9bpm975mlyqlxbyib3j547br6kvcam04b70qkmq22vh8yf341"))))
+    (build-system emacs-build-system)
+    (arguments
+     `(#:include
+       (cons* "^filters\\/" "^preprocessors" %default-include)
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-exec-paths
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let ((pandoc (assoc-ref inputs "pandoc")))
+               (substitute* "org-pandoc-import.el"
+                 (("\"pandoc\"") (string-append "\"" pandoc "/bin/pandoc\"")))))))))
+    (inputs
+     `(("pandoc" ,pandoc)))
+    (home-page "https://github.com/tecosaur/org-pandoc-import/")
+    (synopsis "Save yourself from non-Org formats")
+    (description "This package uses Pandoc to convert selected file types to
+Org, so you never have to leave Org.  There are two tiers of non-Org file
+avoidance:
+
+@enumerate
+@item The basic ``get me out of here'' ---
+@code{org-pandoc-import-{to,as}-org} allows you to easily convert supported
+non-Org files to an Org file/buffer with Pandoc
+
+@item The ``I don’t even want to see non-org files'' ---
+@code{org-pandoc-import-transient-mode} is for you.  What it does:
+@itemize
+@item (via file handlers) intercepts requests for non-Org files it knows it
+can convert
+@item uses @code{org-pandoc-import-to-org} to convert the file to a temporary
+Org file
+@item opens this Org file instead
+@item exports back to the original non-Org file on save
+@end itemize
+@end enumerate")
+    (license license:gpl3+)))
+
 (define-public emacs-org-pomodoro
   ;; Last release version was from 2016.
   (let ((commit "aa07c11318f91219336197e62c47bc7a3d090479")

base-commit: a154048d980ada9b7dcc35e35cbe75056a0cd756
-- 
2.31.1





Information forwarded to guix-patches <at> gnu.org:
bug#48650; Package guix-patches. (Wed, 26 May 2021 12:44:02 GMT) Full text and rfc822 format available.

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

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Xinglu Chen <public <at> yoctocell.xyz>
Cc: 48650 <at> debbugs.gnu.org
Subject: Re: [bug#48650] [PATCH] gnu: Add emacs-org-pandoc-import.
Date: Wed, 26 May 2021 14:43:48 +0200
Hello,

Xinglu Chen <public <at> yoctocell.xyz> writes:

> * gnu/packages/emacs-xyz.scm (emacs-org-pandoc-import): New variable.

Thank you. It looks good with one minor nit below.

> +    (synopsis "Save yourself from non-Org formats")
> +    (description "This package uses Pandoc to convert selected file types to
> +Org, so you never have to leave Org.  There are two tiers of non-Org file
> +avoidance:
> +
> +@enumerate
> +@item The basic ``get me out of here'' ---
> +@code{org-pandoc-import-{to,as}-org} allows you to easily convert supported
> +non-Org files to an Org file/buffer with Pandoc
> +
> +@item The ``I don’t even want to see non-org files'' ---
> +@code{org-pandoc-import-transient-mode} is for you.  What it does:
> +@itemize
> +@item (via file handlers) intercepts requests for non-Org files it knows it
> +can convert
> +@item uses @code{org-pandoc-import-to-org} to convert the file to a temporary
> +Org file
> +@item opens this Org file instead
> +@item exports back to the original non-Org file on save
> +@end itemize
> +@end enumerate")

Could you make the synopsis and the description more neutral? E.g., we
can drop the "so you never have to leave Org" part, etc.

Regards,
-- 
Nicolas Goaziou




Information forwarded to guix-patches <at> gnu.org:
bug#48650; Package guix-patches. (Wed, 26 May 2021 14:12:02 GMT) Full text and rfc822 format available.

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

From: Xinglu Chen <public <at> yoctocell.xyz>
To: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Cc: 48650 <at> debbugs.gnu.org
Subject: Re: [bug#48650] [PATCH] gnu: Add emacs-org-pandoc-import.
Date: Wed, 26 May 2021 16:11:43 +0200
[Message part 1 (text/plain, inline)]
On Wed, May 26 2021, Nicolas Goaziou wrote:

> Hello,
>
> Xinglu Chen <public <at> yoctocell.xyz> writes:
>
>> * gnu/packages/emacs-xyz.scm (emacs-org-pandoc-import): New variable.
>
> Thank you. It looks good with one minor nit below.
>
>> +    (synopsis "Save yourself from non-Org formats")
>> +    (description "This package uses Pandoc to convert selected file types to
>> +Org, so you never have to leave Org.  There are two tiers of non-Org file
>> +avoidance:
>> +
>> +@enumerate
>> +@item The basic ``get me out of here'' ---
>> +@code{org-pandoc-import-{to,as}-org} allows you to easily convert supported
>> +non-Org files to an Org file/buffer with Pandoc
>> +
>> +@item The ``I don’t even want to see non-org files'' ---
>> +@code{org-pandoc-import-transient-mode} is for you.  What it does:
>> +@itemize
>> +@item (via file handlers) intercepts requests for non-Org files it knows it
>> +can convert
>> +@item uses @code{org-pandoc-import-to-org} to convert the file to a temporary
>> +Org file
>> +@item opens this Org file instead
>> +@item exports back to the original non-Org file on save
>> +@end itemize
>> +@end enumerate")
>
> Could you make the synopsis and the description more neutral? E.g., we
> can drop the "so you never have to leave Org" part, etc.

OK, will do :)

[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#48650; Package guix-patches. (Wed, 26 May 2021 14:17:02 GMT) Full text and rfc822 format available.

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

From: Xinglu Chen <public <at> yoctocell.xyz>
To: 48650 <at> debbugs.gnu.org
Cc: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Subject: [PATCH] gnu: Add emacs-org-pandoc-import.
Date: Wed, 26 May 2021 16:16:04 +0200
* gnu/packages/emacs-xyz.scm (emacs-org-pandoc-import): New variable.
---
Changes since v1:
* Make synopsis and description more neutral.

 gnu/packages/emacs-xyz.scm | 49 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 886320cc34..1467ce555a 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -7115,6 +7115,55 @@ It also prettifies Org plain list bullets by:
 Features degrade gracefully when viewed from terminal.")
     (license license:gpl3+)))
 
+(define-public emacs-org-pandoc-import
+  (package
+    (name "emacs-org-pandoc-import")
+    (version "1.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/tecosaur/org-pandoc-import/")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "00z9bpm975mlyqlxbyib3j547br6kvcam04b70qkmq22vh8yf341"))))
+    (build-system emacs-build-system)
+    (arguments
+     `(#:include
+       (cons* "^filters\\/" "^preprocessors" %default-include)
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-exec-paths
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let ((pandoc (assoc-ref inputs "pandoc")))
+               (substitute* "org-pandoc-import.el"
+                 (("\"pandoc\"") (string-append "\"" pandoc "/bin/pandoc\"")))))))))
+    (inputs
+     `(("pandoc" ,pandoc)))
+    (home-page "https://github.com/tecosaur/org-pandoc-import/")
+    (synopsis "Read and edit non-Org file types in Org")
+    (description "This package uses Pandoc to convert selected file types to
+Org.  There are two tiers of non-Org file avoidance:
+
+@enumerate
+@item The basic ``get me out of here'' ---
+@code{org-pandoc-import-{to,as}-org} allows you to easily convert supported
+non-Org files to an Org file/buffer with Pandoc
+
+@item The ``I don’t even want to see non-org files'' ---
+@code{org-pandoc-import-transient-mode} is for you.  What it does:
+@itemize
+@item (via file handlers) intercepts requests for non-Org files it knows it
+can convert
+@item uses @code{org-pandoc-import-to-org} to convert the file to a temporary
+Org file
+@item opens this Org file instead
+@item exports back to the original non-Org file on save
+@end itemize
+@end enumerate")
+    (license license:gpl3+)))
+
 (define-public emacs-org-pomodoro
   ;; Last release version was from 2016.
   (let ((commit "aa07c11318f91219336197e62c47bc7a3d090479")

base-commit: 3f2a4b098039bd374c76d524223de3c6c475f23e
-- 
2.31.1






Reply sent to Nicolas Goaziou <mail <at> nicolasgoaziou.fr>:
You have taken responsibility. (Wed, 02 Jun 2021 19:53:01 GMT) Full text and rfc822 format available.

Notification sent to Xinglu Chen <public <at> yoctocell.xyz>:
bug acknowledged by developer. (Wed, 02 Jun 2021 19:53:01 GMT) Full text and rfc822 format available.

Message #19 received at 48650-done <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Xinglu Chen <public <at> yoctocell.xyz>
Cc: 48650-done <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: Add emacs-org-pandoc-import.
Date: Wed, 02 Jun 2021 21:52:23 +0200
Hello,

Xinglu Chen <public <at> yoctocell.xyz> writes:

> * gnu/packages/emacs-xyz.scm (emacs-org-pandoc-import): New variable.

Applied, with a simplification of the description. Thank you.

Regards,
-- 
Nicolas Goaziou




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 01 Jul 2021 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 300 days ago.

Previous Next


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