QBobWatson / poporg

Emacs programming tool for editing strings or comments in Org mode or any other text mode
GNU General Public License v3.0
91 stars 9 forks source link

Original string updated before exit hook is run #12

Open zellerin opened 1 year ago

zellerin commented 1 year ago

Hi,

I use poporg on Lisp code, and I want to unescape \" to " when moving to Org mode, and escape them again on save. No problem, I can use poporg-edit hook and poporg-edit-exit-hook, the only catch is that the poporg-edit-exit-hook is called only after (poporg-update nil).

Am i supposed to call myself the poporg-update from the hook? Or would it be possible to call the hook before poporg-update (which works fine for me, but I do not know what other hooks are in use)?

Thanks.

(this is a copy from https://github.com/pinard/poporg/issues/2, as this seems to be the active version in Melpa)