emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Description list with " :: " in the tag.
@ 2023-09-08 17:25 Tom Alexander
  2023-09-09  3:15 ` Max Nikulin
  2023-09-09  9:06 ` Ihor Radchenko
  0 siblings, 2 replies; 10+ messages in thread
From: Tom Alexander @ 2023-09-08 17:25 UTC (permalink / raw)
  To: emacs-orgmode

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



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-09-20  8:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-08 17:25 Description list with " :: " in the tag Tom Alexander
2023-09-09  3:15 ` Max Nikulin
2023-09-09  9:06 ` Ihor Radchenko
2023-09-10  4:22   ` Max Nikulin
2023-09-11 16:05   ` Tom Alexander
2023-09-13 22:52     ` Tom Alexander
2023-09-14 11:24       ` [PATCH] " Ihor Radchenko
2023-09-20  0:09         ` Tom Alexander
2023-09-20  9:00           ` Ihor Radchenko
2023-09-14 11:25       ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).