emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: [PATCH worg] Using asteriks as list item bullets.
       [not found] <165124442812.27548.1955860606903453353-0@git.sr.ht>
@ 2022-04-30  7:30 ` Ihor Radchenko
  2022-07-10  7:01   ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Ihor Radchenko @ 2022-04-30  7:30 UTC (permalink / raw)
  To: ~buhtz; +Cc: emacs-org list, Timothy

[-- Attachment #1: Type: text/plain, Size: 624 bytes --]

~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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-dev-org-syntax.org-Clarify-item-syntax-for-asterisk-.patch --]
[-- Type: text/x-patch, Size: 1654 bytes --]

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 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


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

* Re: [PATCH worg] Using asteriks as list item bullets.
  2022-04-30  7:30 ` [PATCH worg] Using asteriks as list item bullets Ihor Radchenko
@ 2022-07-10  7:01   ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2022-07-10  7:01 UTC (permalink / raw)
  To: ~buhtz; +Cc: emacs-org list, Timothy

Ihor Radchenko <yantar92@gmail.com> writes:

> 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.

Applied onto master via 9b93143f.

Best,
Ihor


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

end of thread, other threads:[~2022-07-10  7:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <165124442812.27548.1955860606903453353-0@git.sr.ht>
2022-04-30  7:30 ` [PATCH worg] Using asteriks as list item bullets Ihor Radchenko
2022-07-10  7:01   ` 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).