emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH worg] Using asteriks as list item bullets.


From: Ihor Radchenko
Subject: Re: [PATCH worg] Using asteriks as list item bullets.
Date: Sat, 30 Apr 2022 15:30:53 +0800

~buhtz <buhtz@git.sr.ht> writes:

> From: buhtz <c.buhtz@posteo.jp>
>
> The text no points to the exception that an asteriks have to have a
> whitespace before it when using it as a bullet for a list item.
> Otherwise it would be recognized as a heading.
> ---
>  dev/org-syntax.org | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Thanks for the patch. We use the same Org mailing list of worg fixes, so
I am CCing emacs-orgmode.

I have updated the patch after rewording and changing the commit message
to comply with
https://orgmode.org/worg/org-contribute.html#commit-messages

See the attached.

Best,
Ihor

>From a977621a19d3786bf256fb20a8b142fc859e429d Mon Sep 17 00:00:00 2001
Message-Id: 
<a977621a19d3786bf256fb20a8b142fc859e429d.1651303668.git.yantar92@gmail.com>
From: buhtz <c.buhtz@posteo.jp>
Date: Fri, 29 Apr 2022 16:56:31 +0200
Subject: [PATCH] dev/org-syntax.org: Clarify item syntax for asterisk bullet

* dev/org-syntax.org (Items): Mention that headline syntax match takes
precedence over item syntax for constructs like
"^* heading, not an item with =*= bullet".
Provide an example.

Reported in 
78aed94a0114fd29322e6da7581161ec@posteo.de/">https://list.orgmode.org/orgmode/78aed94a0114fd29322e6da7581161ec@posteo.de/
---
 dev/org-syntax.org | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dev/org-syntax.org b/dev/org-syntax.org
index 650390cd..f9dcfe4c 100644
--- a/dev/org-syntax.org
+++ b/dev/org-syntax.org
@@ -428,7 +428,10 @@ *** Items
 
 + BULLET :: One of the two forms below, followed by either a
   whitespace character or line ending.
-  - An asterisk, hyphen, or plus sign character (i.e., =*=, =-=, or =+=).
+  - An asterisk (=*=), hyphen (=-=), or plus sign (=+=) character.
+    Note that asterisk =*= character starting at the beginning of
+    line and followed by whitespace cannot be an item as it would
+    match a [[#Headings][heading]].
   - Either the pattern =COUNTER.= or =COUNTER)=.
     + COUNTER :: Either a number or a single letter (a-z).
 + COUNTER-SET (optional) :: An instance of the pattern =[@COUNTER]=.
@@ -452,6 +455,8 @@ *** Items
 - item
 3. [@3] set to three
 + [-] tag :: item contents
+ * item, note whitespace in front
+,* not an item, but heading - heading takes precedence
 #+end_example
 
 *** Plain Lists
-- 
2.35.1


reply via email to

[Prev in Thread] Current Thread [Next in Thread]