From: Tim Cross <theophilusx@gmail.com>
To: Edouard Debry <edouard.debry@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Orgmode plain list bullet : change automatically with list depth
Date: Mon, 20 Jun 2022 08:50:16 +1000 [thread overview]
Message-ID: <87ilowntle.fsf@gmail.com> (raw)
In-Reply-To: <86wndc93fz.fsf@gmail.com>
Edouard Debry <edouard.debry@gmail.com> writes:
> Are you sure bullet lists are irrelevant to org ?
>
> I tried without success to make a list without "-" or "+" in my
> *scratch*.
>
Sorry, I wasn't clear enough. The 'marker' which is at the start of a
list item is important to org. What isn't important is the type of list
marker i.e. '-', '+', and '*' are all the same token which designate the
start of a list item when the first character of an indented line. There
is no relationship to item nesting depth.
The point I was trying to make is that the token when used to convey
other meanings, like nesting depth, sits at the 'human' layer and
therefore, should be 'tweaked' using font-lock i.e. if you want
different tokens to mark different list nesting levels, use font-lock to
adjust the appearance of the token at each level rather than changing
underlying syntax to give '-', '+' and '*' additional meanings they
don't have at the code layer now. This also has the advantage of not
imposing a specific use for different tokens on all users i.e. some
users might want to use all 3 tokens in a list, but not simply to
reflect nesting levels. The disadvantage of using font-lock is that
currently, defining the regular expression can be hard. However, I think
other work being done to allow font-lock to leverage off information
supplied by the parser might simplify that situation.
So to be clear, I was not saying that the ability to have different
characters to represent different nesting depth in lists was misguided,
only implementing that as part of the syntax and having org enforce it
with actual characters in the file was. Remapping to a different
character for display purposes based on the depth of the list item is
perfectly fine and in-line with similar techniques to do things like
replacing multiple '*' in headers with different single unicode
characters (like the various 'bullets' packages do).
next prev parent reply other threads:[~2022-06-19 23:05 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-14 15:03 Orgmode plain list bullet : change automatically with list depth DEBRY.Edouard
2022-06-15 4:31 ` Ihor Radchenko
2022-06-16 9:14 ` DEBRY.Edouard
2022-06-16 9:59 ` Ihor Radchenko
2022-06-16 23:26 ` Samuel Wales
2022-06-16 23:27 ` Samuel Wales
2022-06-17 11:54 ` Ihor Radchenko
2022-06-17 23:27 ` Samuel Wales
2022-06-18 0:17 ` Tim Cross
2022-06-19 13:40 ` Edouard Debry
2022-06-19 22:50 ` Tim Cross [this message]
2022-06-19 13:55 ` Edouard Debry
2022-06-19 14:03 ` Ihor Radchenko
2022-06-19 14:49 ` Edouard Debry
2022-06-24 14:28 ` DEBRY.Edouard
2022-06-25 3:27 ` Ihor Radchenko
2022-06-29 12:42 ` DEBRY.Edouard
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=87ilowntle.fsf@gmail.com \
--to=theophilusx@gmail.com \
--cc=edouard.debry@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).