Skip to content

Commit

Permalink
Fix #41 silence weblorg-export warning in interactive mode
Browse files Browse the repository at this point in the history
Mark temp buffer as non-modified to silence prompt when closing it in
interactive mode.
  • Loading branch information
markokocic committed Jul 8, 2024
1 parent c9843c1 commit 2f21073
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions weblorg.el
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,7 @@ an INPUT-PATH to resolve relative links and INCLUDES from."
(with-temp-buffer
(insert input-data)
(if input-path (set-visited-file-name input-path t t))
(set-buffer-modified-p nil)
(setq html (org-export-as 'html nil nil t)))
;; Uninstall advices
(ad-unadvise 'org-html-keyword)
Expand Down

0 comments on commit 2f21073

Please sign in to comment.