0

Given that (setq org-list-allow-alphabetical t).

Consider the following example, where | stands for the point:

1. |Lorem Ipsum 1. Lorem Ipsum 
1. |Lorem Ipsum a. Lorem Ipsum 

While org-fill-paragraph does nothing in the first Org snippet, it collapses the two lines in the second:

1. Lorem Ipsum a. Lorem Ipsum 

I'm working on a specific case where read-only-mode is in use and don't need to export the Org buffer to pdf or other file types. However, I have to keep the alphabetical numbering at least visually as the content refer to them as such. Hence, I'm currently considering a workaround which consists of

  1. replacing alphabetical bullets by numeral ones ;
  2. then using overlays with the 'display property to display them as they were alphabetical bullets.

As the underlying bullets are numeral, org-fill-paragraph would work as expected.

Are there better solutions for this issue ?

4
  • I cannot reproduce this with Org mode version 9.4.6 (release_9.4.6-553-g9aa304). Neither of the lists gets reformatted. Commented Jul 14, 2021 at 19:58
  • 1
    Did you run (org-element-update-syntax) or restart emacs after updating org-list-allow-alphabetical? Commented Jul 14, 2021 at 20:06
  • @NickD Ah, my bad. Looks like I didn't read the documentation thoroughly... Do you perhaps know why org-list-allow-alphabetical is not set to t by default ? Commented Jul 14, 2021 at 20:22
  • 1
    I don't know - the manual may point to a rationale: confusion with normal text. Commented Jul 14, 2021 at 21:53

1 Answer 1

1

As @NickD pointed out and per the documentation:

This variable needs to be set before org.el is loaded. If you need to make a change while Emacs is running, use the customize interface or run the following code after updating it: ‘M-x org-element-update-syntax’ 
2
  • You can accept your own answer. Commented Jul 16, 2021 at 15:51
  • 1
    I always forget about the 48 hours... Commented Jul 16, 2021 at 18:56

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.