Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner

From: Stefan Monnier <[email-masked]>
Date: Wed, 31 Jan 2024 14:13:12 -0500

> ⛔ Warning (comp): Warning: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner

This looks like the warning emitted by `macroexp--compiler-macro` when
a compiler macro (here, generated by `define-inline`) signals an error.

This said, the warning should include (on the next line) the actual
error encountered.  Not sure why you don't seem to have that.

In any case the origin might be a bug in your code or in `inline.el`.

Is `org-element--standard-properties-idxs` defined at the time of
macro-expansion?  If not, that would explain the error because the macro
expansion will try to execute:

    (plist-get
     org-element--standard-properties-idxs
     (inline-const-val property))

and that will start by getting the value of
`org-element--standard-properties-idxs`.

        Stefan