From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Burbage Subject: Re: org-mode: Would like to add custom chars as org-list bullets Date: Mon, 29 Oct 2018 12:21:31 -0700 Message-ID: <05fb4527-84fa-5fab-3243-4a4572ec263a@gmail.com> References: <599fd6c9-88a7-eb68-9363-0ed5d4336e27@gmail.com> <87tvlq49on.fsf@yandex.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------A8C7E09B93572DFCD037FDB6" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHD6d-0002aA-N9 for emacs-orgmode@gnu.org; Mon, 29 Oct 2018 15:21:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHD6c-0000tb-Pl for emacs-orgmode@gnu.org; Mon, 29 Oct 2018 15:21:43 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:42135) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHD6a-0000rk-RN for emacs-orgmode@gnu.org; Mon, 29 Oct 2018 15:21:41 -0400 Received: by mail-pl1-x62f.google.com with SMTP id t6-v6so4275611plo.9 for ; Mon, 29 Oct 2018 12:21:35 -0700 (PDT) In-Reply-To: Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Grant Rettke , m43cap@yandex.com Cc: Org-mode This is a multi-part message in MIME format. --------------A8C7E09B93572DFCD037FDB6 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit I don't think the suggestions made in that thread are going to help in terms of org-mode recognizing a line as being a list item. What I tried that I did think might work was to customize org-list-full-item-re: org-list-full-item-re is a variable defined in ‘org-list.el’. Its value is "^[     ]*\\(\\*(?:[-+*]\\|\\(?:[0-9]+\\|[A-Za-z]\\)[.)]\\)*\\(?:[     ]+\\|$\\)\\)\\(?:\\[@\\(?:start:\\)?\\([0-9]+\\|[A-Za-z]\\)\\][     ]*\\)?\\(?:\\(\\[[ X-]\\]\\)\\(?:[ ]+\\|$\\)\\)?\\(?:\\(.*\\)[     ]+::\\(?:[     ]+\\|$\\)\\)?"   This variable may be risky if used as a file-local variable. Documentation: Matches a list item and puts everything into groups: *group 1: bullet* group 2: counter group 3: checkbox group 4: description tag to add '!' and '?' to '-+' in the group 1 expression, but that didn't do it. ( *[-+*] => [-+!?*]* ) On 10/24/2018 5:47 PM, Grant Rettke wrote: > On Sat, Oct 13, 2018 at 1:56 AM Colin Baxter wrote: >>>>>>> Tom Burbage writes: >> > When I use simple lists, I would like to be able to mix in '!' and >> > '?' with '-' as these are sometimes more expressive of what the >> > list item represents. My request is that the list of characters >> > org-list recognizes as being a valid "bullet" be customizable by >> > the user. >> >> Have a look at https://emacs.stackexchange.com/questions/35626/how-to-make-my-own-org-mode-text-emphasis-work-again. > Which code are you recommending? --------------A8C7E09B93572DFCD037FDB6 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit I don't think the suggestions made in that thread are going to help in terms of org-mode recognizing a line as being a list item.
What I tried that I did think might work was to customize org-list-full-item-re:

org-list-full-item-re is a variable defined in ‘org-list.el’.
Its value is
"^[     ]*\\(\\(?:[-+*]\\|\\(?:[0-9]+\\|[A-Za-z]\\)[.)]\\)\\(?:[     ]+\\|$\\)\\)\\(?:\\[@\\(?:start:\\)?\\([0-9]+\\|[A-Za-z]\\)\\][     ]*\\)?\\(?:\\(\\[[ X-]\\]\\)\\(?:[     ]+\\|$\\)\\)?\\(?:\\(.*\\)[     ]+::\\(?:[     ]+\\|$\\)\\)?"

  This variable may be risky if used as a file-local variable.

Documentation:
Matches a list item and puts everything into groups:
group 1: bullet
group 2: counter
group 3: checkbox
group 4: description tag

to add '!' and '?' to '-+' in the group 1 expression, but that didn't do it. ( [-+*] => [-+!?*] )

On 10/24/2018 5:47 PM, Grant Rettke wrote:
On Sat, Oct 13, 2018 at 1:56 AM Colin Baxter <m43cap@yandex.com> wrote:

        
Tom Burbage <tiburbage@gmail.com> writes:
    > When I use simple lists, I would like to be able to mix in '!' and
    > '?'  with '-' as these are sometimes more expressive of what the
    > list item represents.  My request is that the list of characters
    > org-list recognizes as being a valid "bullet" be customizable by
    > the user.

Have a look at https://emacs.stackexchange.com/questions/35626/how-to-make-my-own-org-mode-text-emphasis-work-again.
Which code are you recommending?

--------------A8C7E09B93572DFCD037FDB6--