[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support
From: |
Ihor Radchenko |
Subject: |
Re: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support) |
Date: |
Sun, 12 Jan 2025 08:15:14 +0000 |
Richard Lawrence <rwl@recursewithless.net> writes:
> I looked briefly at the definition of org-element--property-idx and at
> its disassembly, which makes it look like one can actually do something
> like what I was suggesting by modifying the property list
> org-element--standard-properties-idxs, like:
>
> (let ((org-element--standard-properties-idxs
> (plist-put org-element--standard-properties-idxs
> :value 5))) ;; use the :post-blank slot for :value instead
> ...)
>
> but maybe I'm not understanding something. Would modifying this plist
> from the calling code work as a strategy for "renaming" the standard
> properties slots?
It might work, but you will need to wrap your code into the let above.
I think that it is what I suggested at the very beginning:
> > The only thing coming to my mind is asking the libraries to use
> >
> > (let ((org-element--standard-properties <custom value>))
> > (defun library-x (...)
> > ...))
>
> Personally I think this would be a bit much to ask...it would be fairly
> annoying to have to wrap all one's functions like this, even if there
> was a macro to do it.
--
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
- Re: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support), (continued)
- Re: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support), Ihor Radchenko, 2025/01/05
- Re: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support), Richard Lawrence, 2025/01/10
- Re: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support), Ihor Radchenko, 2025/01/12
- Re: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support), Richard Lawrence, 2025/01/15
- Re: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support), Ihor Radchenko, 2025/01/15
Re: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support), Richard Lawrence, 2025/01/01
- Re: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support), Ihor Radchenko, 2025/01/05
- Re: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support), Richard Lawrence, 2025/01/10
- Re: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support), Ihor Radchenko, 2025/01/10
- Re: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support), Richard Lawrence, 2025/01/11
- Re: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support),
Ihor Radchenko <=
- Re: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support), Richard Lawrence, 2025/01/15
- Re: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support), Ihor Radchenko, 2025/01/15