emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: ~buhtz <c.buhtz@posteo.jp>
Cc: emacs-org list <emacs-orgmode@gnu.org>, Timothy <tecosaur@gmail.com>
Subject: Re: [PATCH worg] Using asteriks as list item bullets.
Date: Sat, 30 Apr 2022 15:30:53 +0800	[thread overview]
Message-ID: <87a6c3ni36.fsf@localhost> (raw)
In-Reply-To: <165124442812.27548.1955860606903453353-0@git.sr.ht>

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


       reply	other threads:[~2022-04-30  7:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <165124442812.27548.1955860606903453353-0@git.sr.ht>
2022-04-30  7:30 ` Ihor Radchenko [this message]
2022-07-10  7:01   ` [PATCH worg] Using asteriks as list item bullets Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a6c3ni36.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=c.buhtz@posteo.jp \
    --cc=emacs-orgmode@gnu.org \
    --cc=tecosaur@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).