Re: strange error exporting to ascii

2023-12-27 Thread Fraga, Eric
On Sunday, 24 Dec 2023 at 11:20, Ihor Radchenko wrote:
> Should work now. I reverted the problematic commit.

Confirmed.  Thank you!

-- 
: Eric S Fraga, with org release_9.6.13-1003-g872c1b in Emacs 30.0.50


Re: strange error exporting to ascii

2023-12-24 Thread Ihor Radchenko
Ihor Radchenko  writes:

> "Fraga, Eric"  writes:
>
>> So there seems to be some compilation bug maybe?  I will build Emacs
>> from git as the version I'm using was built in September (I don't update
>> during term time as I depend on Emacs and org for my teaching).  I'll
>> report back after doing so.
>
> This is most likely a bug with internal dependencies.
> I need some time to figure out how to approach it.

Should work now. I reverted the problematic commit.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=cee9b6abc

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: strange error exporting to ascii

2023-12-23 Thread Fraga, Eric
On Saturday, 23 Dec 2023 at 09:52, Ihor Radchenko wrote:
> ... me adding one innocent require to ox.el

Complex systems... :-)

Fantastic video, by the way.

-- 
: Eric S Fraga, with org release_9.6.13-1003-g872c1b in Emacs 30.0.50


Re: strange error exporting to ascii

2023-12-23 Thread Ihor Radchenko
Ihor Radchenko  writes:

> This is most likely a bug with internal dependencies.
> I need some time to figure out how to approach it.

... me adding one innocent require to ox.el

   https://youtu.be/OpLU__bhu2w?t=237 _//

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: strange error exporting to ascii

2023-12-22 Thread Fraga, Eric
On Friday, 22 Dec 2023 at 16:36, Ihor Radchenko wrote:
>
> This is most likely a bug with internal dependencies.
> I need some time to figure out how to approach it.

Okay, thank you.

For the record, I've re-built Emacs from git and the problem persists so
it's not (necessarily) Emacs itself.

And no rush, by the way: I have a working solution which is what
matters!

Thanks again,
eric

-- 
: Eric S Fraga, with org release_9.6.13-1003-g872c1b in Emacs 30.0.50


Re: strange error exporting to ascii

2023-12-22 Thread Ihor Radchenko
"Fraga, Eric"  writes:

> So there seems to be some compilation bug maybe?  I will build Emacs
> from git as the version I'm using was built in September (I don't update
> during term time as I depend on Emacs and org for my teaching).  I'll
> report back after doing so.

This is most likely a bug with internal dependencies.
I need some time to figure out how to approach it.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: strange error exporting to ascii

2023-12-22 Thread Fraga, Eric
Another data point: if I do a

make cleanall

and then start emacs without org compiled, exporting (to both targets)
works, although there are complaints initially about the autoload file
not being present etc.

Slow, mind you. ;-) But I can live with this in the short term so I can
get my work done!

So there seems to be some compilation bug maybe?  I will build Emacs
from git as the version I'm using was built in September (I don't update
during term time as I depend on Emacs and org for my teaching).  I'll
report back after doing so.

Thank you for helping me out.

-- 
: Eric S Fraga, with org release_9.6.7-13-g99cc96 in Emacs 30.0.50


Re: strange error exporting to ascii

2023-12-22 Thread Fraga, Eric
On Friday, 22 Dec 2023 at 15:58, Ihor Radchenko wrote:
> This is a problem with Org mode compilation. Try to reinstall.

Problem persists.  I've done

make update

restart emacs: fails to export.  Then

make cleanall
make

and restart emacs but also fails to export, both times with same error
message:

 Debugger entered--Lisp error: (invalid-function org-element-with-buffer-copy)
  org-element-with-buffer-copy([...])
  org-cite-parse-elements("Alba, E.; Tomassini, M. 
[[https://doi.org/10.1109/...;)
  org-cite-csl-render-bibliography([...])
  org-cite-export-bibliography([...])


Extra data point: using older version of org (on a different computer),
having removed ox-bibtex requirement, is able to export to both ascii
and odt.

-- 
: Eric S Fraga, with org release_9.6.13-1003-g872c1b in Emacs 30.0.50


Re: strange error exporting to ascii

2023-12-22 Thread Fraga, Eric
On Friday, 22 Dec 2023 at 15:14, Ihor Radchenko wrote:

[...]

> This is also something from ox-bibtex.el. I suspect that you do not need
> ox-bibtex.el. It is an old library predating Org's native citation support.
>
> Also, merely loading ox-bibtex.el changes Org export behaviour. Be careful.

Ah!  Interesting.  I had forgotten about requiring ox-bibtex in my
configuration files.  I've now removed it but now get a new error
(elided):

Debugger entered--Lisp error: (invalid-function org-element-with-buffer-copy)
  org-element-with-buffer-copy(:to-buffer # :drop-contents 
t :drop-visibility t :drop-narrowing t :drop-locals t nil nil [...])
  org-cite-parse-elements("Alba, E.; Tomassini, M. 
[[https://doi.org/10.1109/...;)
  org-cite-csl-render-bibliography([...])

for both exports to ascii and odt, although slightly different text in
the org-cite-parse-elements function.

Export to LaTeX continues to work.

-- 
: Eric S Fraga, with org release_9.6.8-771-gdf0539 in Emacs 30.0.50


Re: strange error exporting to ascii

2023-12-22 Thread Ihor Radchenko
"Fraga, Eric"  writes:

> Ah!  Interesting.  I had forgotten about requiring ox-bibtex in my
> configuration files.  I've now removed it but now get a new error
> (elided):
>
> Debugger entered--Lisp error: (invalid-function org-element-with-buffer-copy)
>   org-element-with-buffer-copy(:to-buffer # 
> :drop-contents t :drop-visibility t :drop-narrowing t :drop-locals t nil nil 
> [...])
>   org-cite-parse-elements("Alba, E.; Tomassini, M. 
> [[https://doi.org/10.1109/...;)
>   org-cite-csl-render-bibliography([...])

This is a problem with Org mode compilation. Try to reinstall.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: strange error exporting to ascii

2023-12-22 Thread Ihor Radchenko
"Fraga, Eric"  writes:

> On Friday, 22 Dec 2023 at 13:53, Ihor Radchenko wrote:
>> Looks like your #+bibliography does not follow
>>
>> #+BIBLIOGRAPHY: /home/user/Literature/foo.bib plain option:-d
>>
>> format.
>
> It does not but the documentation does not say anything about a format
> at all like this.  What are the two items following the bib file?

I have no clue. The error you are seeing is coming from
`org-bibtex-process-bib-files', which is not a part of Org mode - it is
defined in ox-bibtex.el from org-contrib (unmaintained!!!).

> I do have
> #+cite_export: csl "/somepath/style.csl"
> as well as a BIBLIOGRAPHY entry with just a file name.
>
> In any case, I modified the bibliography line and it then complained
> about no bibtex2html (which didn't seem to be needed before?).  I
> installed that package and now the export complains about that command
> failing.  I seem to be going down a rabbit hole.

This is also something from ox-bibtex.el. I suspect that you do not need
ox-bibtex.el. It is an old library predating Org's native citation support.

Also, merely loading ox-bibtex.el changes Org export behaviour. Be careful.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: strange error exporting to ascii

2023-12-22 Thread Fraga, Eric
Hi Ihor,

thank you for the response.

On Friday, 22 Dec 2023 at 13:53, Ihor Radchenko wrote:
> Looks like your #+bibliography does not follow
>
> #+BIBLIOGRAPHY: /home/user/Literature/foo.bib plain option:-d
>
> format.

It does not but the documentation does not say anything about a format
at all like this.  What are the two items following the bib file?

I do have
#+cite_export: csl "/somepath/style.csl"
as well as a BIBLIOGRAPHY entry with just a file name.

In any case, I modified the bibliography line and it then complained
about no bibtex2html (which didn't seem to be needed before?).  I
installed that package and now the export complains about that command
failing.  I seem to be going down a rabbit hole.

Thanks again,
eric

-- 
: Eric S Fraga, with org release_9.6.8-771-gdf0539 in Emacs 30.0.50


Re: strange error exporting to ascii

2023-12-22 Thread Ihor Radchenko
"Fraga, Eric"  writes:

> So, long story short, I try to export the original document to ascii and
> I get an error related to citations.  Having seen some updates to
> exporting citations on the list over the past few weeks, I figured I
> should upgrade org to the latest version.  Now exporting to LaTeX still
> works just fine but exporting to ascii still does not work (with the
> same error: see backtrace-ascii.txt attached) *and* exporting to ODT now
> no longer works (see backtrace-odt.txt).
>
> Any suggestions?  I have not tried emacs -Q because that is non-trivial
> due to my configuration but will do so if nothing obvious jumps out to
> anybody.

Looks like your #+bibliography does not follow

#+BIBLIOGRAPHY: /home/user/Literature/foo.bib plain option:-d

format.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: strange error exporting to ascii

2023-12-21 Thread William Denton
On Thursday, December 21st, 2023 at 10:44, Fraga, Eric  
wrote:

> So, long story short, I try to export the original document to ascii and
> I get an error related to citations. Having seen some updates to
> exporting citations on the list over the past few weeks, I figured I
> should upgrade org to the latest version. Now exporting to LaTeX still
> works just fine but exporting to ascii still does not work (with the
> same error: see backtrace-ascii.txt attached) and exporting to ODT now
> no longer works (see backtrace-odt.txt).

I've been doing a lot of exporting to various formats lately, testing out basic 
and CSL citations, and ran into a few bugs but not what you're showing.  And 
nothing about ODT was touched, IIRC. Could you try narrowing down to citations 
only, and commenting out one by one until it works?  


Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada