Closed lailamor closed 4 years ago
@lailamor Hello, I am unable to reproduce the issue. Your example exports perfectly fine for me:
Looking at your provided debug info, mixed Org installation on your machine seems to be the culprit:
Looking at your provided debug info, mixed Org installation on your machine seems to be the culprit:
After remaking my .emacs.d, I can't reproduce this issue anymore; org-hugo-debug-info
still reports mixed org installation though as detailed below. I'm also using Emacs pgtk-nativecomp instead of feature/native-comp
now.
org-hugo-section | "posts" |
org-hugo-use-code-for-kbd | nil |
org-hugo-preserve-filling | t |
org-hugo-delete-trailing-ws | t |
org-hugo-prefer-hyphen-in-tags | t |
org-hugo-allow-spaces-in-tags | t |
org-hugo-tag-processing-functions | (org-hugo–tag-processing-fn-replace-with-spaces-maybe org-hugo–tag-processing-fn-replace-with-hyphens-maybe) |
org-hugo-auto-set-lastmod | nil |
org-hugo-export-with-toc | nil |
org-hugo-export-with-section-numbers | nil |
org-hugo-front-matter-format | "toml" |
org-hugo-default-static-subdirectory-for-externals | "ox-hugo" |
org-hugo-external-file-extensions-allowed-for-copying | ("jpg" "jpeg" "tiff" "png" "svg" "gif" "mp4" "pdf" "odt" "doc" "ppt" "xls" "docx" "pptx" "xlsx") |
org-hugo-date-format | "%Y-%m-%dT%T%z" |
org-hugo-paired-shortcodes | "" |
org-hugo-langs-no-descr-in-code-fences | nil |
org-hugo-suppress-lastmod-period | 0.0 |
org-hugo-front-matter-format | "toml" |
I've been using a relatively simple init.el
to test it.
If I stumble upon this issue again, I'll try to backtrace it better as it may be an upstream issue with native-comp and not related to ox-hugo in specific. You can close the issue if you feel like it. Thank you!
After remaking my .emacs.d
I believe you mean rebuilding your emacs?
I'm also using Emacs pgtk-nativecomp instead of feature/native-comp now.
Thanks for that update.
If switching back to feature/native-comp branch shows that issue again, may be you should report it upstream to emacs-devel.
I'll try to backtrace it better as it may be an upstream issue with native-comp and not related to ox-hugo in specific.
Yes, exactly :) I typed the above before reading that part of your comment.
I'll close this issue as I cannot reproduce the problem.
Thanks!
Actual Behavior
ox-hugo won't export subtree, with message
org-find-olp: Invalid format operation %\
.Expected Behavior
Export "what i mean" when cursor is on subtree and respective function is called. As in "If point is in a valid Hugo post subtree, export that subtree to a Hugo post in Markdown."
How to Reproduce the Issue
Create hugo blog.
Create main org file
blog/blog.org
. Add example org file below toblog.org
.Open
blog.org
. Position cursor at post subtree (line 17). TryC-c C-e H H
(Subtree or File do Md file).See Messages buffer.
Neither
blog/posts/ox-hugo-wont-export-with-c-c-c-e-h-h.md
norblog/posts
is created.Example Org File
Generated Markdown File or Error
Ox-Hugo Debug Information
Debug Info
# Debug information for `ox-hugo` ## Emacs Version GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.21, cairo version 1.17.3) of 2020-07-29 (commit 9d011397abae131ff6c40ba625e670d5a51674e9) ## Org Version Org mode version 9.4 (release_9.4-7-g10f490 @ /home/lailamor/.emacs.d/straight/build/org/) ## Hugo Version Hugo Static Site Generator v0.74.3/extended linux/amd64 BuildDate: unknown ### Org `load-path` shadows **Warning**: Possible mixed installation of Org /home/lailamor/.emacs.d/straight/build/org/ox-beamer hides /usr/share/emacs/28.0.50/lisp/org/ox-beamer /home/lailamor/.emacs.d/straight/build/org/ox-icalendar hides /usr/share/emacs/28.0.50/lisp/org/ox-icalendar /home/lailamor/.emacs.d/straight/build/org/ob-stan hides /usr/share/emacs/28.0.50/lisp/org/ob-stan /home/lailamor/.emacs.d/straight/build/org/ob-sed hides /usr/share/emacs/28.0.50/lisp/org/ob-sed /home/lailamor/.emacs.d/straight/build/org/ob-clojure hides /usr/share/emacs/28.0.50/lisp/org/ob-clojure /home/lailamor/.emacs.d/straight/build/org/ob-core hides /usr/share/emacs/28.0.50/lisp/org/ob-core /home/lailamor/.emacs.d/straight/build/org/org-colview hides /usr/share/emacs/28.0.50/lisp/org/org-colview /home/lailamor/.emacs.d/straight/build/org/ob-js hides /usr/share/emacs/28.0.50/lisp/org/ob-js /home/lailamor/.emacs.d/straight/build/org/ol-mhe hides /usr/share/emacs/28.0.50/lisp/org/ol-mhe /home/lailamor/.emacs.d/straight/build/org/org-macro hides /usr/share/emacs/28.0.50/lisp/org/org-macro /home/lailamor/.emacs.d/straight/build/org/ob-org hides /usr/share/emacs/28.0.50/lisp/org/ob-org /home/lailamor/.emacs.d/straight/build/org/ol-w3m hides /usr/share/emacs/28.0.50/lisp/org/ol-w3m /home/lailamor/.emacs.d/straight/build/org/ox-publish hides /usr/share/emacs/28.0.50/lisp/org/ox-publish /home/lailamor/.emacs.d/straight/build/org/org-clock hides /usr/share/emacs/28.0.50/lisp/org/org-clock /home/lailamor/.emacs.d/straight/build/org/ob-makefile hides /usr/share/emacs/28.0.50/lisp/org/ob-makefile /home/lailamor/.emacs.d/straight/build/org/ol-bibtex hides /usr/share/emacs/28.0.50/lisp/org/ol-bibtex /home/lailamor/.emacs.d/straight/build/org/org-faces hides /usr/share/emacs/28.0.50/lisp/org/org-faces /home/lailamor/.emacs.d/straight/build/org/ob-ebnf hides /usr/share/emacs/28.0.50/lisp/org/ob-ebnf /home/lailamor/.emacs.d/straight/build/org/org-keys hides /usr/share/emacs/28.0.50/lisp/org/org-keys /home/lailamor/.emacs.d/straight/build/org/ob-emacs-lisp hides /usr/share/emacs/28.0.50/lisp/org/ob-emacs-lisp /home/lailamor/.emacs.d/straight/build/org/ox-org hides /usr/share/emacs/28.0.50/lisp/org/ox-org /home/lailamor/.emacs.d/straight/build/org/ob-lilypond hides /usr/share/emacs/28.0.50/lisp/org/ob-lilypond /home/lailamor/.emacs.d/straight/build/org/ob-ditaa hides /usr/share/emacs/28.0.50/lisp/org/ob-ditaa /home/lailamor/.emacs.d/straight/build/org/org-compat hides /usr/share/emacs/28.0.50/lisp/org/org-compat /home/lailamor/.emacs.d/straight/build/org/org-loaddefs hides /usr/share/emacs/28.0.50/lisp/org/org-loaddefs /home/lailamor/.emacs.d/straight/build/org/ob-dot hides /usr/share/emacs/28.0.50/lisp/org/ob-dot /home/lailamor/.emacs.d/straight/build/org/ob-C hides /usr/share/emacs/28.0.50/lisp/org/ob-C /home/lailamor/.emacs.d/straight/build/org/ob-matlab hides /usr/share/emacs/28.0.50/lisp/org/ob-matlab /home/lailamor/.emacs.d/straight/build/org/org-macs hides /usr/share/emacs/28.0.50/lisp/org/org-macs /home/lailamor/.emacs.d/straight/build/org/org-src hides /usr/share/emacs/28.0.50/lisp/org/org-src /home/lailamor/.emacs.d/straight/build/org/ob-picolisp hides /usr/share/emacs/28.0.50/lisp/org/ob-picolisp /home/lailamor/.emacs.d/straight/build/org/ox-man hides /usr/share/emacs/28.0.50/lisp/org/ox-man /home/lailamor/.emacs.d/straight/build/org/org-archive hides /usr/share/emacs/28.0.50/lisp/org/org-archive /home/lailamor/.emacs.d/straight/build/org/ob-hledger hides /usr/share/emacs/28.0.50/lisp/org/ob-hledger /home/lailamor/.emacs.d/straight/build/org/org-mobile hides /usr/share/emacs/28.0.50/lisp/org/org-mobile /home/lailamor/.emacs.d/straight/build/org/ob-comint hides /usr/share/emacs/28.0.50/lisp/org/ob-comint /home/lailamor/.emacs.d/straight/build/org/ob-sass hides /usr/share/emacs/28.0.50/lisp/org/ob-sass /home/lailamor/.emacs.d/straight/build/org/ol-irc hides /usr/share/emacs/28.0.50/lisp/org/ol-irc /home/lailamor/.emacs.d/straight/build/org/ol hides /usr/share/emacs/28.0.50/lisp/org/ol /home/lailamor/.emacs.d/straight/build/org/ob-ref hides /usr/share/emacs/28.0.50/lisp/org/ob-ref /home/lailamor/.emacs.d/straight/build/org/org-num hides /usr/share/emacs/28.0.50/lisp/org/org-num /home/lailamor/.emacs.d/straight/build/org/ob-python hides /usr/share/emacs/28.0.50/lisp/org/ob-python /home/lailamor/.emacs.d/straight/build/org/ox-odt hides /usr/share/emacs/28.0.50/lisp/org/ox-odt /home/lailamor/.emacs.d/straight/build/org/ob-java hides /usr/share/emacs/28.0.50/lisp/org/ob-java /home/lailamor/.emacs.d/straight/build/org/org-datetree hides /usr/share/emacs/28.0.50/lisp/org/org-datetree /home/lailamor/.emacs.d/straight/build/org/ox hides /usr/share/emacs/28.0.50/lisp/org/ox /home/lailamor/.emacs.d/straight/build/org/ob-fortran hides /usr/share/emacs/28.0.50/lisp/org/ob-fortran /home/lailamor/.emacs.d/straight/build/org/ob-coq hides /usr/share/emacs/28.0.50/lisp/org/ob-coq /home/lailamor/.emacs.d/straight/build/org/org-entities hides /usr/share/emacs/28.0.50/lisp/org/org-entities /home/lailamor/.emacs.d/straight/build/org/ox-texinfo hides /usr/share/emacs/28.0.50/lisp/org/ox-texinfo /home/lailamor/.emacs.d/straight/build/org/ol-gnus hides /usr/share/emacs/28.0.50/lisp/org/ol-gnus /home/lailamor/.emacs.d/straight/build/org/ox-md hides /usr/share/emacs/28.0.50/lisp/org/ox-md /home/lailamor/.emacs.d/straight/build/org/ob-latex hides /usr/share/emacs/28.0.50/lisp/org/ob-latex /home/lailamor/.emacs.d/straight/build/org/ol-eshell hides /usr/share/emacs/28.0.50/lisp/org/ol-eshell /home/lailamor/.emacs.d/straight/build/org/ox-ascii hides /usr/share/emacs/28.0.50/lisp/org/ox-ascii /home/lailamor/.emacs.d/straight/build/org/ob-lisp hides /usr/share/emacs/28.0.50/lisp/org/ob-lisp /home/lailamor/.emacs.d/straight/build/org/ob-calc hides /usr/share/emacs/28.0.50/lisp/org/ob-calc /home/lailamor/.emacs.d/straight/build/org/ob-table hides /usr/share/emacs/28.0.50/lisp/org/ob-table /home/lailamor/.emacs.d/straight/build/org/org-indent hides /usr/share/emacs/28.0.50/lisp/org/org-indent /home/lailamor/.emacs.d/straight/build/org/ob-shell hides /usr/share/emacs/28.0.50/lisp/org/ob-shell /home/lailamor/.emacs.d/straight/build/org/ob-abc hides /usr/share/emacs/28.0.50/lisp/org/ob-abc /home/lailamor/.emacs.d/straight/build/org/ob-R hides /usr/share/emacs/28.0.50/lisp/org/ob-R /home/lailamor/.emacs.d/straight/build/org/ob-octave hides /usr/share/emacs/28.0.50/lisp/org/ob-octave /home/lailamor/.emacs.d/straight/build/org/ob-plantuml hides /usr/share/emacs/28.0.50/lisp/org/ob-plantuml /home/lailamor/.emacs.d/straight/build/org/ob-forth hides /usr/share/emacs/28.0.50/lisp/org/ob-forth /home/lailamor/.emacs.d/straight/build/org/org-crypt hides /usr/share/emacs/28.0.50/lisp/org/org-crypt /home/lailamor/.emacs.d/straight/build/org/org-inlinetask hides /usr/share/emacs/28.0.50/lisp/org/org-inlinetask /home/lailamor/.emacs.d/straight/build/org/ob-processing hides /usr/share/emacs/28.0.50/lisp/org/ob-processing /home/lailamor/.emacs.d/straight/build/org/ol-docview hides /usr/share/emacs/28.0.50/lisp/org/ol-docview /home/lailamor/.emacs.d/straight/build/org/ob-maxima hides /usr/share/emacs/28.0.50/lisp/org/ob-maxima /home/lailamor/.emacs.d/straight/build/org/ob-perl hides /usr/share/emacs/28.0.50/lisp/org/ob-perl /home/lailamor/.emacs.d/straight/build/org/org-pcomplete hides /usr/share/emacs/28.0.50/lisp/org/org-pcomplete /home/lailamor/.emacs.d/straight/build/org/ox-html hides /usr/share/emacs/28.0.50/lisp/org/ox-html /home/lailamor/.emacs.d/straight/build/org/ol-eww hides /usr/share/emacs/28.0.50/lisp/org/ol-eww /home/lailamor/.emacs.d/straight/build/org/org-attach-git hides /usr/share/emacs/28.0.50/lisp/org/org-attach-git /home/lailamor/.emacs.d/straight/build/org/ob hides /usr/share/emacs/28.0.50/lisp/org/ob /home/lailamor/.emacs.d/straight/build/org/org-id hides /usr/share/emacs/28.0.50/lisp/org/org-id /home/lailamor/.emacs.d/straight/build/org/ob-ocaml hides /usr/share/emacs/28.0.50/lisp/org/ob-ocaml /home/lailamor/.emacs.d/straight/build/org/ob-io hides /usr/share/emacs/28.0.50/lisp/org/ob-io /home/lailamor/.emacs.d/straight/build/org/org-attach hides /usr/share/emacs/28.0.50/lisp/org/org-attach /home/lailamor/.emacs.d/straight/build/org/ob-eval hides /usr/share/emacs/28.0.50/lisp/org/ob-eval /home/lailamor/.emacs.d/straight/build/org/ob-groovy hides /usr/share/emacs/28.0.50/lisp/org/ob-groovy /home/lailamor/.emacs.d/straight/build/org/org-protocol hides /usr/share/emacs/28.0.50/lisp/org/org-protocol /home/lailamor/.emacs.d/straight/build/org/ob-tangle hides /usr/share/emacs/28.0.50/lisp/org/ob-tangle /home/lailamor/.emacs.d/straight/build/org/org-footnote hides /usr/share/emacs/28.0.50/lisp/org/org-footnote /home/lailamor/.emacs.d/straight/build/org/ob-lua hides /usr/share/emacs/28.0.50/lisp/org/ob-lua /home/lailamor/.emacs.d/straight/build/org/org-lint hides /usr/share/emacs/28.0.50/lisp/org/org-lint /home/lailamor/.emacs.d/straight/build/org/ob-gnuplot hides /usr/share/emacs/28.0.50/lisp/org/ob-gnuplot /home/lailamor/.emacs.d/straight/build/org/org-timer hides /usr/share/emacs/28.0.50/lisp/org/org-timer /home/lailamor/.emacs.d/straight/build/org/ob-eshell hides /usr/share/emacs/28.0.50/lisp/org/ob-eshell /home/lailamor/.emacs.d/straight/build/org/ob-awk hides /usr/share/emacs/28.0.50/lisp/org/ob-awk /home/lailamor/.emacs.d/straight/build/org/ol-bbdb hides /usr/share/emacs/28.0.50/lisp/org/ol-bbdb /home/lailamor/.emacs.d/straight/build/org/ol-rmail hides /usr/share/emacs/28.0.50/lisp/org/ol-rmail /home/lailamor/.emacs.d/straight/build/org/org-goto hides /usr/share/emacs/28.0.50/lisp/org/org-goto /home/lailamor/.emacs.d/straight/build/org/org-element hides /usr/share/emacs/28.0.50/lisp/org/org-element /home/lailamor/.emacs.d/straight/build/org/org-table hides /usr/share/emacs/28.0.50/lisp/org/org-table /home/lailamor/.emacs.d/straight/build/org/ob-shen hides /usr/share/emacs/28.0.50/lisp/org/ob-shen /home/lailamor/.emacs.d/straight/build/org/org-tempo hides /usr/share/emacs/28.0.50/lisp/org/org-tempo /home/lailamor/.emacs.d/straight/build/org/org-mouse hides /usr/share/emacs/28.0.50/lisp/org/org-mouse /home/lailamor/.emacs.d/straight/build/org/ob-sqlite hides /usr/share/emacs/28.0.50/lisp/org/ob-sqlite /home/lailamor/.emacs.d/straight/build/org/ob-ruby hides /usr/share/emacs/28.0.50/lisp/org/ob-ruby /home/lailamor/.emacs.d/straight/build/org/org-agenda hides /usr/share/emacs/28.0.50/lisp/org/org-agenda /home/lailamor/.emacs.d/straight/build/org/org-list hides /usr/share/emacs/28.0.50/lisp/org/org-list /home/lailamor/.emacs.d/straight/build/org/ob-lob hides /usr/share/emacs/28.0.50/lisp/org/ob-lob /home/lailamor/.emacs.d/straight/build/org/ob-asymptote hides /usr/share/emacs/28.0.50/lisp/org/ob-asymptote /home/lailamor/.emacs.d/straight/build/org/ob-mscgen hides /usr/share/emacs/28.0.50/lisp/org/ob-mscgen /home/lailamor/.emacs.d/straight/build/org/org-ctags hides /usr/share/emacs/28.0.50/lisp/org/org-ctags /home/lailamor/.emacs.d/straight/build/org/org hides /usr/share/emacs/28.0.50/lisp/org/org /home/lailamor/.emacs.d/straight/build/org/org-habit hides /usr/share/emacs/28.0.50/lisp/org/org-habit /home/lailamor/.emacs.d/straight/build/org/org-plot hides /usr/share/emacs/28.0.50/lisp/org/org-plot /home/lailamor/.emacs.d/straight/build/org/ob-haskell hides /usr/share/emacs/28.0.50/lisp/org/ob-haskell /home/lailamor/.emacs.d/straight/build/org/ob-vala hides /usr/share/emacs/28.0.50/lisp/org/ob-vala /home/lailamor/.emacs.d/straight/build/org/org-capture hides /usr/share/emacs/28.0.50/lisp/org/org-capture /home/lailamor/.emacs.d/straight/build/org/ox-latex hides /usr/share/emacs/28.0.50/lisp/org/ox-latex /home/lailamor/.emacs.d/straight/build/org/ob-screen hides /usr/share/emacs/28.0.50/lisp/org/ob-screen /home/lailamor/.emacs.d/straight/build/org/org-feed hides /usr/share/emacs/28.0.50/lisp/org/org-feed /home/lailamor/.emacs.d/straight/build/org/org-duration hides /usr/share/emacs/28.0.50/lisp/org/org-duration /home/lailamor/.emacs.d/straight/build/org/ob-scheme hides /usr/share/emacs/28.0.50/lisp/org/ob-scheme /home/lailamor/.emacs.d/straight/build/org/ob-sql hides /usr/share/emacs/28.0.50/lisp/org/ob-sql /home/lailamor/.emacs.d/straight/build/org/ob-ledger hides /usr/share/emacs/28.0.50/lisp/org/ob-ledger /home/lailamor/.emacs.d/straight/build/org/ob-css hides /usr/share/emacs/28.0.50/lisp/org/ob-css /home/lailamor/.emacs.d/straight/build/org/ol-info hides /usr/share/emacs/28.0.50/lisp/org/ol-info /home/lailamor/.emacs.d/straight/build/org/ob-J hides /usr/share/emacs/28.0.50/lisp/org/ob-J /home/lailamor/.emacs.d/straight/build/org/ob-exp hides /usr/share/emacs/28.0.50/lisp/org/ob-exp /home/lailamor/.emacs.d/straight/build/org/org-install hides /usr/share/emacs/28.0.50/lisp/org/org-install Study the output of `M-x list-load-path-shadows`. ## `ox-hugo` defcustoms