mtekman / org-tanglesync.el

A package to pull external changes into an org-mode source block if that block is tangled to an external file
GNU General Public License v3.0
90 stars 7 forks source link

org-tanglesync-user-edit-buffer not fired up when the source code block is being edited #5

Closed BonfaceKilz closed 4 years ago

BonfaceKilz commented 4 years ago

I have a src code block like this:

#+NAME: snake.py
#+BEGIN_SRC python :tangle /home/bonface/SideProjects/python_curses_games/games/snake.py
#+END_SRC

From the README, I expect that when I hit C-c ', I'll be prompted to pull the external changes... but nothing happens. Could you help me out? This is a really nice feature for literate programming which I do a lot

mtekman commented 4 years ago

Hey thanks for finding this -- it looks like I did not have a handler for tangled files that either do not exist yet, or are blank blocks.

So I just pushed an update just now, which should be merged into melpa on their next build (tomorrow, I think?), so you would need to reinstall the package when it does.

This update now has provided two contingencies in the user-edit-mode:

Can you try this out (either by cloning the repo, or waiting for the melpa build tomorrow) and let me know if it works for you?

BonfaceKilz commented 4 years ago

Just tested it and it works like a charm. +1 for the really quick fix. Thanks a bunch! I'm going ahead to close this now.