From 89a0ce8f1f7063bd547a7a841ae5c2af26d728e3 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Tue, 20 Jun 2023 15:06:01 +0200 Subject: [PATCH] Fix upload buffer --- org-share-to-web.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-share-to-web.el b/org-share-to-web.el index 6996d40..9f6d832 100644 --- a/org-share-to-web.el +++ b/org-share-to-web.el @@ -17,7 +17,7 @@ (defun org-share-to-web-buffer () "Share the current org file to the server, export to html and copy URL to clipboard." (interactive) - (let* ((filename-current-buffer (file-name-nondirectory (buffer-file-name))) + (let* ((filename-current-buffer (buffer-name)) (filename-sans-extension (file-name-sans-extension filename-current-buffer)) (filename-html (concat filename-sans-extension ".html")) (export-html (org-export-string-as (buffer-string) 'html)))