[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] org-id: allow using parent's existing id in links to head
From: |
Rick Lupton |
Subject: |
Re: [PATCH v2] org-id: allow using parent's existing id in links to headlines |
Date: |
Thu, 08 Feb 2024 22:30:10 +0000 |
User-agent: |
Cyrus-JMAP/3.11.0-alpha0-144-ge5821d614e-fm-20240125.002-ge5821d61 |
On Thu, 8 Feb 2024, at 1:02 PM, Ihor Radchenko wrote:
> I have some thoughts about rewording your changes to the manual and
> ORG-NEWS. See the attached patch on top of yours.
Thanks, makes sense -- wasn't sure whether to keep this as a separate patch or
not, I have squashed into the attached updated version.
> [minor points on commit messages]
Fixed these.
> The new optional argument to a public function should be announced in
> ORG-NEWS.
Added.
>> + (new-heading-level (if new-heading-container
>> + (+ 1 (org-element-property :level
>> new-heading-container))
>
> What if new-heading-container is not a heading?
>
>> + 1)))
>> + (goto-char new-heading-position)
>
> This is err when container ends after narrowed region boundary.
Added checks for these.
>> +(defun org-link-precise-link-target ()
>> ...
>> + (cond
>> + (name
>> + (list name
>> + name
>> + (org-element-begin element)))
>
> It would make sense to use #+caption as default description when available.
Maybe... But I had a little look and it seems complicated, since caption is a
parsed property, it's not clear to me how to get a plain string in a simple
way. And there could be a long and a short caption, over multiple lines. If the
caption is long, it wouldn't make a good link description anyway.
The current behaviour is the same as it was before, so maybe we can leave this
as a future enhancement if wanted?
0001-lisp-org.el-org-insert-heading-Allow-specifying-head.patch
Description: Binary data
0002-org-id.el-Add-search-strings-inherit-parent-IDs.patch
Description: Binary data
- Re: [PATCH v2] org-id: allow using parent's existing id in links to headlines, Ihor Radchenko, 2024/02/01
- Re: [PATCH v2] org-id: allow using parent's existing id in links to headlines, Ihor Radchenko, 2024/02/03
- [PATCH] lisp/ol.el: Improve docstring, Rick Lupton, 2024/02/08
- Re: [PATCH v2] org-id: allow using parent's existing id in links to headlines, Rick Lupton, 2024/02/08
- Re: [PATCH v2] org-id: allow using parent's existing id in links to headlines, Ihor Radchenko, 2024/02/08
- Re: [PATCH v2] org-id: allow using parent's existing id in links to headlines,
Rick Lupton <=
- Re: [PATCH v2] org-id: allow using parent's existing id in links to headlines, Ihor Radchenko, 2024/02/09
- Re: [PATCH v2] org-id: allow using parent's existing id in links to headlines, Rick Lupton, 2024/02/09
- Re: [PATCH v2] org-id: allow using parent's existing id in links to headlines, Ihor Radchenko, 2024/02/09
- Re: [PATCH v2] org-id: allow using parent's existing id in links to headlines, Bastien Guerry, 2024/02/24
- Re: [PATCH v2] org-id: allow using parent's existing id in links to headlines, Ihor Radchenko, 2024/02/24
- Re: [PATCH v2] org-id: allow using parent's existing id in links to headlines, Rick Lupton, 2024/02/24
Re: [PATCH v2] org-id: allow using parent's existing id in links to headlines, Ihor Radchenko, 2024/02/03