nobiot / org-transclusion

Emacs package to enable transclusion with Org Mode
https://nobiot.github.io/org-transclusion/
GNU General Public License v3.0
919 stars 45 forks source link

When transclusion mode is on, enabling uncached latex preview fragment doesn't work #94

Closed HyunggyuJang closed 2 years ago

HyunggyuJang commented 2 years ago

Problem

Specifically, prompts Files to save mini buffer.

Was triggered by org-transclusion-before-kill.

I’ve sorted through what was the cause, and found that

org-element-parse-secondary-string function was the culprit, specifically,

((local-variables (buffer-local-variables)))

crawls buffer local settings, including kill-buffer-hook, where org-transclusion-before-kill resides.

Steps to reproduce

  1. Open org mode file and turn on org-transclusion mode
  2. Write some latex fragment, which isn't cached before
  3. Overlay latex preview
  4. You'll see the file prompter

Possible solutions

Double check whether current buffer is temp file, by checking the buffer name is starts with space, or no matched file to current buffer.

If you like this idea, I can make PR.

I have to say this, this package is marvelous! The line specification for source code link like github’s link is my favourite.

Thanks for providing this superb facility.