From d2fa0e398d0c93fb5ffdb59ad84cdaa0a0acafe9 Mon Sep 17 00:00:00 2001 From: Paul Landes Date: Tue, 19 Dec 2023 14:05:34 -0600 Subject: [PATCH] org-export: switch to zensols.rend from zensols.showfile --- flex-compile-org-export.el | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/flex-compile-org-export.el b/flex-compile-org-export.el index 5f8851e..1280080 100644 --- a/flex-compile-org-export.el +++ b/flex-compile-org-export.el @@ -31,9 +31,9 @@ ;; Compiler that exports Org mode to external formats and then shows the ;; output in the browser. Only HTML is currently supported. ;; -;; The `Show File' functionality for the `open-file' property needs the Python -;; program at `https://github.com/plandes/showfile', which is installed with -;; `pip install zensols.showfile'. +;; The `Render File' functionality for the `open-file' property needs the Python +;; program at `https://github.com/plandes/rend', which is installed with +;; `pip install zensols.rend'. ;;; Code: @@ -79,7 +79,7 @@ then shows the output in the browser. Only HTML is currently supported.") (let* ((export-choices '(("Plain HTML" . org-html-export-to-html) ("Bootstrap HTML" . org-twbs-export-to-html))) (open-file-choices '(("Default Org Mode" . default-org-mode) - ("Show File" . show-file) + ("Render File" . render-file) ("Do not open file" . none))) (props (list (config-choice-description-prop @@ -158,15 +158,14 @@ Todo: make this OS independent as currently the browser only opens on OSX. THIS is the object instance." (config-prop-entry-set-required this) - (cl-flet ((om-show-file - (file-name) - (message "Showing file %s" file-name) - (shell-command (format "showfile show %s &" file-name)))) + (cl-flet ((om-render-file (file-name) + (message "Showing file %s" file-name) + (shell-command (format "showfile show %s &" file-name)))) (with-slots (export-fn config-file open-file) this (with-current-buffer (flex-compiler-conf-file-buffer this) (let* ((open-fn (cl-case open-file (default-org-mode #'org-open-file) - (show-file #'om-show-file) + (render-file #'om-render-file) (none #'identity))) (src (funcall export-fn)) (dst (flex-compiler-org-export-dest this)))