Skip to content

Commit

Permalink
Fix #41 weblorg-export warning in interactive mode
Browse files Browse the repository at this point in the history
By replacing with-temp-buffer with with-temp-file in weblorg--parse-org
the warning when closing buffer/file in interactive mode is gone.
  • Loading branch information
markokocic committed Jul 8, 2024
1 parent c9843c1 commit 9871c85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weblorg.el
Original file line number Diff line number Diff line change
Expand Up @@ -1058,10 +1058,10 @@ an INPUT-PATH to resolve relative links and INCLUDES from."
""
(funcall fn headline contents info))))
;; Trigger Org-Mode to generate the HTML off of the input data
(with-temp-buffer
(with-temp-file "weblorg.org.tmp"
(insert input-data)
(if input-path (set-visited-file-name input-path t t))
(setq html (org-export-as 'html nil nil t)))

;; Uninstall advices
(ad-unadvise 'org-html-keyword)
(ad-unadvise 'org-html-headline)
Expand Down

0 comments on commit 9871c85

Please sign in to comment.