From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qPyVEHXZrGDelAAAgWs5BA (envelope-from ) for ; Tue, 25 May 2021 13:03:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IB1SDHXZrGB9FAAA1q6Kng (envelope-from ) for ; Tue, 25 May 2021 11:03:17 +0000 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 A2EF0107B9 for ; Tue, 25 May 2021 13:03:16 +0200 (CEST) Received: from localhost ([::1]:50456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llUqB-0003lA-4r for larch@yhetil.org; Tue, 25 May 2021 07:03:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llUpz-0003kH-10 for guix-patches@gnu.org; Tue, 25 May 2021 07:03:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33271) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llUpy-0005sY-Py for guix-patches@gnu.org; Tue, 25 May 2021 07:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1llUpy-0006l9-Lp for guix-patches@gnu.org; Tue, 25 May 2021 07:03:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48650] [PATCH] gnu: Add emacs-org-pandoc-import. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 25 May 2021 11:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48650 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48650@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162194056225942 (code B ref -1); Tue, 25 May 2021 11:03:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 May 2021 11:02:42 +0000 Received: from localhost ([127.0.0.1]:44817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llUpe-0006kM-AN for submit@debbugs.gnu.org; Tue, 25 May 2021 07:02:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:37142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llUpb-0006k9-3P for submit@debbugs.gnu.org; Tue, 25 May 2021 07:02:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55442) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llUpa-0003AE-GX for guix-patches@gnu.org; Tue, 25 May 2021 07:02:38 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:40238 helo=mail.yoctocell.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llUpY-0005Y5-Nh for guix-patches@gnu.org; Tue, 25 May 2021 07:02:38 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1621940551; bh=TDnuE5703hfrkjvL/zKcIQuqJO8RgcUsUXa1SAQjhYU=; h=From:To:Subject:Date; b=aPPnLlrRbpgZf0zyfl83DlmD+aHaahQIJ4kwUjvFLzNZ+wWDv47FcCdtcXY+6Nu/s urtVK6EXsey7t1HgJjmap6kkHffSXCByc18ynyIleS5F+DnIMGagQT8ev6TX4vYelE uZRI35HtISxtQFplIT3l3rheC6oQmzLYkFk7c3EM= Message-Id: <347e7d7d2fca562cf038cc7acb3a203862397d7f.1621940480.git.public@yoctocell.xyz> Date: Tue, 25 May 2021 13:02:30 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=87.96.130.155; envelope-from=public@yoctocell.xyz; helo=mail.yoctocell.xyz X-Spam_score_int: 33 X-Spam_score: 3.3 X-Spam_bar: +++ X-Spam_report: (3.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.498, FROM_SUSPICIOUS_NTLD_FP=1.896, PDS_OTHER_BAD_TLD=1.997, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621940596; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=SuqUI1GfKyLbmIt0xoRl+uWfZognS91tSLT9Xtpx6CY=; b=TWDd8sUjq4SCMAiN3qj1jJs8EiFnqRzaO69f4yFiyqIS3sQ85Oo4JMsbW9iVGDtbsDLu5W 5d72AGduO7x2D/0L7Oq/dCHhofPyvgcND6Bi0TpmyadY4CL99luD2fgD+LW9W9XRVrTyVN jZYQF2hIfyh6SQejq6oaRcLzhoDKBSfKrsFL0JxEHVPNz9UgT2p4Zlebx0y80e1lOG8rJs 1L7IpaVfRQD4x1+bt2Fi5DLbDnGrfXOO2mc0WqJur80Il0OKCr+QdNtz+4cdLHqScL1MWA whvndhLSvIF+ZzhTMxIZLlE5xIDqTHS+huUtjd+ntkknhjpzxBml2s/ih9n/bA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621940596; a=rsa-sha256; cv=none; b=oDLaf3VXpPzYvE3BD2G0o8OdUiBQQjyb6uAUPGZr+MJkKUweLw5H6TlXGkQp7eFsr3sufm c7SYytp6df1h9zyAAX6DpQzZM240j73GN/aBiXX9+NbtDX60z1Gmi3yW5B+hvyZcWHP7ft DODJqUmK1nNWyFoZK/IG0EgtFasMtJkb+YCuitBnWTd0o3pqcJo0d/SIIXd5n1omci18Fe Ku40We19QG8qmyIHvyLeDPiex3cDNpMK9BQqOGkPqJ7DgAno5c1DiKB6gNIA6QODOE9/+K /DbmU6ZL08PpMvNIeNuFZ8bgAlbnHwBrlxQc05qWzI4QHQHKu7pSnZv7IWDYTg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=aPPnLlrR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=aPPnLlrR; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: A2EF0107B9 X-Spam-Score: -0.33 X-Migadu-Scanner: scn1.migadu.com X-TUID: cg/BuxJaTD5v * 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+))) =20 +(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=E2=80=99t 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 tempor= ary +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 --=20 2.31.1