On Mon, Nov 8, 2021 at 1:05 AM Ihor Radchenko wrote: > > I was able to reproduce the issue. This is a bug on ox-hugo side. > `org-hugo--get-pre-processed-buffer' inserts text with > inhibit-modification-hooks bound to non-nil, which breaks > org-element-cache. The cache is enabled by default in latest Org, which > is why the issue revealed itself. > > The fix on ox-hugo side can be made similarly to the new implementation > of `org-export--generate-copy-script' - ox-hugo needs to manually reset > the cache after silent changes in temporary Org buffer. > Hi Ihor, I followed your change to `org-export--generate-copy-script' in https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=fe6cefdaaf020c315031a139a7b9bc443cbefc5c and added a `(org-element-cache-reset)' call in `org-hugo--get-pre-processed-buffer' after the `(insert ..)' in the temp buffer. But I am still seeing that warning. Ref commit to a branch: https://github.com/kaushalmodi/ox-hugo/commit/2bdbf51922ec2e01be65397b237d0b716edb5cb4 Can you help fix this? Thanks!