[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-superstar b366a40451 091/162: Allow for item bullets o
From: |
Stefan Kangas |
Subject: |
[nongnu] elpa/org-superstar b366a40451 091/162: Allow for item bullets other than "*" to lack leading spaces. |
Date: |
Fri, 31 Dec 2021 19:35:29 -0500 (EST) |
branch: elpa/org-superstar
commit b366a404517f7ab2d325c59516a38d5c5cae690b
Author: D. Williams <d.williams@posteo.net>
Commit: D. Williams <d.williams@posteo.net>
Allow for item bullets other than "*" to lack leading spaces.
Thanks to @ogdenwebb for pointing this out (Issue #10).
Also added an MWE file (temporarily) for archiving purposes.
---
org-superstar.el | 9 +++++----
tests/issue-10.org | 5 +++++
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/org-superstar.el b/org-superstar.el
index 4ebebbafe8..4b5fb97690 100644
--- a/org-superstar.el
+++ b/org-superstar.el
@@ -5,7 +5,7 @@
;; Author: D. Williams <d.williams@posteo.net>
;; Maintainer: D. Williams <d.williams@posteo.net>
;; Keywords: faces, outlines
-;; Version: 1.0.2
+;; Version: 1.0.3
;; Homepage: https://github.com/integral-dw/org-superstar-mode
;; Package-Requires: ((org "9.1.9") (emacs "26.2"))
@@ -558,11 +558,12 @@ last regexp. If there is no SUBEXPth pair, do nothing."
You should not call this function to avoid confusing this mode’s
cleanup routines."
;; The below regex is nicked from ‘org-list-full-item-re’, but
- ;; reduced to only match simple lists. Replaced [ \t]* by [ \t]+ to
- ;; avoid confusion with title bullets.
+ ;; reduced to only match simple lists. Changes were made to enforce
+ ;; a leading space before asterisks to avoid confusion with title
+ ;; bullets.
(setq org-superstar--font-lock-keywords
`(,@(when org-superstar-prettify-item-bullets
- '(("^[ \t]+\\([-+*]\\) "
+ '(("^[ \t]*?\\(?:\\(?1:[-+]\\)\\|[ \t]\\(?1:\\*\\)\\) "
(1 (org-superstar--prettify-ibullets)))))
("^\\(?3:\\**?\\)\\(?2:\\*?\\)\\(?1:\\*\\) "
(1 (org-superstar--prettify-main-hbullet) prepend)
diff --git a/tests/issue-10.org b/tests/issue-10.org
new file mode 100644
index 0000000000..df0e8b7f3d
--- /dev/null
+++ b/tests/issue-10.org
@@ -0,0 +1,5 @@
+This is a MWE for the bug discussed in Issue #10.
+
+- A.
+ - B.
+ - B.
- [nongnu] elpa/org-superstar c58d1e2689 046/162: force org-superstar to clean up --font-lock-keywords, (continued)
- [nongnu] elpa/org-superstar c58d1e2689 046/162: force org-superstar to clean up --font-lock-keywords, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar a7d6b37ea2 062/162: Removing references to org-hide-leading-stars-before-indent-mode., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 6ef00c4eaf 034/162: renamed sample-titles to sample-headlines, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar bd99047cb3 048/162: updating README, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar b7c660aa32 038/162: adding further faceup files, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 4c2015072c 024/162: updated roadmap, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 845aa85b78 080/162: fixed typo in docstring, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar fc62da2f85 077/162: fixed README conflict, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 772719da34 074/162: Streamlined headline predicates., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar ceb3be1018 088/162: Implement circumvention for plain list syntax checking, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar b366a40451 091/162: Allow for item bullets other than "*" to lack leading spaces.,
Stefan Kangas <=
- [nongnu] elpa/org-superstar 7b576a0f23 083/162: Fix org-superstar-restart docstring, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar addff4c813 086/162: Moved NEWS section to the bottom of the README., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 10735de9e9 093/162: Updating README (news), Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 9551ab129d 094/162: Merging updates from master branch., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 17481852c1 110/162: Merge pull request #17 from progfolio/fix/16, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 746d7afa3e 101/162: Updating README to reflect version bump., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 0a2dedc91f 107/162: Fix typo in org-superstar-plain-list-p causing it to always return t., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 3db4ab5d4d 096/162: Merge branch 'master' into volatile, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar a984d0d05a 104/162: Merge branch 'master' into volatile, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 401bc67302 119/162: Updating README: add hack for dealing with legacy Org, Stefan Kangas, 2021/12/31