unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#48650] [PATCH] gnu: Add emacs-org-pandoc-import.
@ 2021-05-25 11:02 Xinglu Chen
  2021-05-26 12:43 ` Nicolas Goaziou
  2021-05-26 14:16 ` Xinglu Chen
  0 siblings, 2 replies; 5+ messages in thread
From: Xinglu Chen @ 2021-05-25 11:02 UTC (permalink / raw)
  To: 48650

* 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





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#48650] [PATCH] gnu: Add emacs-org-pandoc-import.
  2021-05-25 11:02 [bug#48650] [PATCH] gnu: Add emacs-org-pandoc-import Xinglu Chen
@ 2021-05-26 12:43 ` Nicolas Goaziou
  2021-05-26 14:11   ` Xinglu Chen
  2021-05-26 14:16 ` Xinglu Chen
  1 sibling, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2021-05-26 12:43 UTC (permalink / raw)
  To: Xinglu Chen; +Cc: 48650

Hello,

Xinglu Chen <public@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




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#48650] [PATCH] gnu: Add emacs-org-pandoc-import.
  2021-05-26 12:43 ` Nicolas Goaziou
@ 2021-05-26 14:11   ` Xinglu Chen
  0 siblings, 0 replies; 5+ messages in thread
From: Xinglu Chen @ 2021-05-26 14:11 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 48650

[-- Attachment #1: Type: text/plain, Size: 1329 bytes --]

On Wed, May 26 2021, Nicolas Goaziou wrote:

> Hello,
>
> Xinglu Chen <public@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 :)


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#48650] [PATCH] gnu: Add emacs-org-pandoc-import.
  2021-05-25 11:02 [bug#48650] [PATCH] gnu: Add emacs-org-pandoc-import Xinglu Chen
  2021-05-26 12:43 ` Nicolas Goaziou
@ 2021-05-26 14:16 ` Xinglu Chen
  2021-06-02 19:52   ` bug#48650: " Nicolas Goaziou
  1 sibling, 1 reply; 5+ messages in thread
From: Xinglu Chen @ 2021-05-26 14:16 UTC (permalink / raw)
  To: 48650; +Cc: Nicolas Goaziou

* 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






^ permalink raw reply related	[flat|nested] 5+ messages in thread

* bug#48650: [PATCH] gnu: Add emacs-org-pandoc-import.
  2021-05-26 14:16 ` Xinglu Chen
@ 2021-06-02 19:52   ` Nicolas Goaziou
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2021-06-02 19:52 UTC (permalink / raw)
  To: Xinglu Chen; +Cc: 48650-done

Hello,

Xinglu Chen <public@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




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-06-02 19:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-25 11:02 [bug#48650] [PATCH] gnu: Add emacs-org-pandoc-import Xinglu Chen
2021-05-26 12:43 ` Nicolas Goaziou
2021-05-26 14:11   ` Xinglu Chen
2021-05-26 14:16 ` Xinglu Chen
2021-06-02 19:52   ` bug#48650: " Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).