[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Description list with " :: " in the tag.
From: |
Tom Alexander |
Subject: |
Description list with " :: " in the tag. |
Date: |
Fri, 08 Sep 2023 13:25:04 -0400 |
User-agent: |
Cyrus-JMAP/3.9.0-alpha0-711-g440737448e-fm-20230828.001-g44073744 |
Emacs version: 29.1
Org-mode version: 163bafb43dcc2bc94a2c7ccaa77d3d1dd488f1af
Found a conflict between the documentation and the parser behavior. The
org-mode documentation[1] for description list items says that TAG '[...] does
not contain the substring " :: "'
Using this sample document, I have created a plain list item with a tag that
contains that substring by wrapping it in a verbatim block:
```
- =foo :: bar= :: baz
```
Which parses to:
```
(org-data
(:standard-properties
[1 1 1 23 23 0 nil org-data nil nil nil 3 23 nil #<buffer *scratch*> nil nil
nil]
:path nil :CATEGORY nil)
(section
(:standard-properties
[1 1 1 23 23 0 nil first-section nil nil nil 1 23 nil #<buffer *scratch*>
nil nil #0])
(plain-list
(:standard-properties
[1 1 1 23 23 0 nil top-comment nil nil nil nil nil nil #<buffer *scratch*>
nil
((1 0 "- " nil nil "=foo :: bar=" 23))
#1]
:type descriptive)
(item
(:standard-properties
[1 1 19 23 23 0
(:tag)
item nil nil nil nil nil nil #<buffer *scratch*> nil
((1 0 "- " nil nil "=foo :: bar=" 23))
#2]
:bullet "- " :checkbox nil :counter nil :pre-blank 0 :tag
((verbatim
(:standard-properties
[3 nil nil nil 15 0 nil nil nil nil nil nil nil nil #<buffer *scratch*>
nil nil #3]
:value "foo :: bar"))))
(paragraph
(:standard-properties
[19 19 19 23 23 0 nil nil nil nil nil nil nil nil #<buffer *scratch*> nil
nil #3])
#("baz\n" 0 4
(:parent #4)))))))
```
It seems that "TAG-TEXT" is not just text but it can include objects and those
objects can include the substring " :: ".
[1] https://orgmode.org/worg/org-syntax.html#Items
--
Tom Alexander
- Description list with " :: " in the tag.,
Tom Alexander <=
- Re: Description list with " :: " in the tag., Max Nikulin, 2023/09/08
- Re: Description list with " :: " in the tag., Ihor Radchenko, 2023/09/09
- Re: Description list with " :: " in the tag., Max Nikulin, 2023/09/10
- Re: Description list with " :: " in the tag., Tom Alexander, 2023/09/11
- Re: Description list with " :: " in the tag., Tom Alexander, 2023/09/13
- [PATCH] Re: Description list with " :: " in the tag., Ihor Radchenko, 2023/09/14
- [PATCH] Re: Description list with " :: " in the tag., Ihor Radchenko, 2023/09/14
- Re: [PATCH] Re: Description list with " :: " in the tag., Tom Alexander, 2023/09/19
- Re: [PATCH] Re: Description list with " :: " in the tag., Ihor Radchenko, 2023/09/20