Skip to content

Commit

Permalink
fix: invoke kill-buffer after org-id-goto to avoid Fundamental buffers
Browse files Browse the repository at this point in the history
If we don't kill the buffer after org-id-goto, and then the
`org-id-goto' will then goto the previous buffer we openned. The
buffer's major mode will be Fundamental.
  • Loading branch information
coldnight committed Jul 26, 2021
1 parent db8bd9f commit 483a755
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ox-hugo.el
Original file line number Diff line number Diff line change
Expand Up @@ -2371,6 +2371,7 @@ and rewrite link paths to make blogging more seamless."
(with-temp-buffer
(org-id-goto (org-element-property :path link))
(let ((headline (org-find-top-headline)))
(kill-buffer (current-buffer))
(if headline
(org-hugo-slug headline)
""))))
Expand Down

0 comments on commit 483a755

Please sign in to comment.