Re: [BUG] org-element--cache gives "Unregistered buffer modifications" warning [9.5 (9.5-g859984 @ /home/john/.emacs.d/straight/build/org/)]

2021-12-15 Thread Ihor Radchenko
Kaushal Modi writes: > Also looking closely, I am seeing a different warning: > > Warning (org-element-cache): org-element--cache: > (org-hugo-export-wim-to-md) Cached element is incorrect in *Ox-hugo > Pre-processed ox-hugo-manual.org *<2>. (Cache tic up to date: "yes") Can you: 1. Update Org t

Re: [BUG] org-element--cache gives "Unregistered buffer modifications" warning [9.5 (9.5-g859984 @ /home/john/.emacs.d/straight/build/org/)]

2021-12-15 Thread Kaushal Modi
On Wed, Dec 15, 2021 at 9:29 PM Kaushal Modi wrote: > > Can you help fix this? > Also looking closely, I am seeing a different warning: Warning (org-element-cache): org-element--cache: (org-hugo-export-wim-to-md) Cached element is incorrect in *Ox-hugo Pre-processed ox-hugo-manual.org *<2>. (Ca

Re: [BUG] org-element--cache gives "Unregistered buffer modifications" warning [9.5 (9.5-g859984 @ /home/john/.emacs.d/straight/build/org/)]

2021-12-15 Thread Kaushal Modi
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 l

Re: org-cite and export to ODT

2021-12-15 Thread John Kitchin
you are still not getting the directions. You don't export with C-c Ce oo here. You run that src block by putting your cursor in it and typing C-c C-c to run it. For org-ref, you have to use a preprocessing hook to replace the cite links with the csl derived links before the export is done. That i

Re: org-cite and export to ODT

2021-12-15 Thread 陈贤文
Thank you John. I'm not sure why it does not work. Below is the minimal example I created, using your example. I ran C-e o o to export to ODT. The resulted ODT file didn't have the reference. #+title: A basic example of org-ref for csl export #+options: toc:nil #+csl-style: apa-5th-edition.csl #+c

Re: org-cite and export to ODT

2021-12-15 Thread John Kitchin
That code does not belong in your .emacs file. It should be in an emacs-lisp block in your org-file like it is in the example. You should run it from the org file. John --- Professor John Kitchin (he/him/his) Doherty Hall A207F Department of Chemical Engineering

Re: org-cite and export to ODT

2021-12-15 Thread 陈贤文
Thank you all for the responses. I have to upgrade from orgmode 9.4.4 to 9.5 first, to try out org-cite. I tried https://github.com/jkitchin/org-ref/blob/master/examples/basic-csl.org#opendocument. I added the following codes to my .emacs: (let ((org-export-before-parsing-hook '(org-ref-cite-natm

Re: [PATCH] org-test: Create a collaborative test set for Org buffer parser

2021-12-15 Thread Ihor Radchenko
Max Nikulin writes: > On 11/12/2021 21:39, Ihor Radchenko wrote: >> >> The attached patch is an attempt to create something like shared repo >> for Org element parser tests. > > "[PATCH]" prefix in the subject might be a reason why you message > received less attention than it should. Well. I

Re: [PATCH] org-test: Create a collaborative test set for Org buffer parser

2021-12-15 Thread Ihor Radchenko
Tim Cross writes: I have nothing to say about licence question. Replying to the other part > ... On > the other hand, I guess there could be cases where people want to just > checkout these samples to use to validate their own library/parser etc. > I tend towards putting them in the org-mode rep

Re: [BUG] Cache corruption [9.6 (9.6-??-27edae8ce @ /home/antoine/.emacs.d/.local/straight/build-27.2/org/)]

2021-12-15 Thread Ihor Radchenko
Antoine Guérin writes: > Just got this error message while editing an *.org file > > Package: Org mode version 9.6 (9.6-??-27edae8ce @ > /home/antoine/.emacs.d/.local/straight/build-27.2/org/) Thanks for reporting! Note that your Org is 1 month old. Can you update to more recent version? Since

Re: [BUG] Cache corruption [9.6 (9.6-??-27edae8 @ /Users/apc/.emacs.d/.local/straight/build-28.0.90/org/)]

2021-12-15 Thread Ihor Radchenko
Alejandro Pérez Carballo writes: > I was simply navigating an org file after installing emacs 28 and doom. > I got the message below and was asked to submit. So here I am. Thanks for reporting! Note that your Org is 1 month old. Can you update to more recent version? Since then, I have pushed so

[BUG] Cache corruption [9.6 (9.6-??-27edae8ce @ /home/antoine/.emacs.d/.local/straight/build-27.2/org/)]

2021-12-15 Thread Antoine Guérin
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. --

[BUG] Cache corruption [9.6 (9.6-??-27edae8 @ /Users/apc/.emacs.d/.local/straight/build-28.0.90/org/)]

2021-12-15 Thread Alejandro Pérez Carballo
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ---