[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-superstar 8fd1d05c6c 013/162: Added wrapper around org
From: |
Stefan Kangas |
Subject: |
[nongnu] elpa/org-superstar 8fd1d05c6c 013/162: Added wrapper around org-list-in-valid-context-p for refinement purposes |
Date: |
Fri, 31 Dec 2021 19:35:19 -0500 (EST) |
branch: elpa/org-superstar
commit 8fd1d05c6cb33ff7424ec98c4e40607aee0a337b
Author: D. Williams <d.williams@posteo.net>
Commit: D. Williams <d.williams@posteo.net>
Added wrapper around org-list-in-valid-context-p for refinement purposes
---
org-superstar.el | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/org-superstar.el b/org-superstar.el
index 998f121f47..37f73d89ee 100644
--- a/org-superstar.el
+++ b/org-superstar.el
@@ -60,7 +60,7 @@
"◉"
"○"
"✸"
- "✿")
+ "✿") ;; "◉" "🞛" "○" "▷"
"List of bullets used in Org headings.
It can contain any number of bullets, the Nth entry usually
corresponding to the bullet used for level N. The way this list
@@ -283,6 +283,10 @@ replaced by their corresponding entry in
‘org-sstar-item-bullet-alist’."
;;; Fontification
+(defun org-sstar-in-valid-context-p ()
+ "Return t if the current match is in a meaningful context."
+ (org-list-in-valid-context-p))
+
(defun org-sstar--prettify-ibullets ()
"Prettify plain list bullets.
@@ -307,9 +311,9 @@ prettifying bullets in (for example) source blocks."
(defun org-sstar--prettify-main-hbullet ()
"Prettify the trailing star in a headline.
-This function uses ‘org-list-in-valid-context-p’ to avoid
+This function uses ‘org-sstar-in-valid-context-p’ to avoid
prettifying bullets in (for example) source blocks."
- (when (org-list-in-valid-context-p)
+ (when (org-sstar-in-valid-context-p)
(let ((level (- (match-end 0) (match-beginning 0) 1)))
(compose-region (match-beginning 1) (match-end 1)
(org-sstar--hbullet level))))
@@ -322,9 +326,9 @@ inline task, see ‘org-inlinetask-min-level’. Otherwise,
this
block is formatted like the leading asterisks, see
‘org-sstar--prettify-leading-hbullets’.
-This function uses ‘org-list-in-valid-context-p’ to avoid
+This function uses ‘org-sstar-in-valid-context-p’ to avoid
prettifying bullets in (for example) source blocks."
- (when (org-list-in-valid-context-p)
+ (when (org-sstar-in-valid-context-p)
(let* ((level (- (match-end 0) (match-beginning 0) 1))
(is-inline-task
(and (boundp 'org-inlinetask-min-level)
@@ -349,9 +353,9 @@ Unless ‘org-hide-leading-stars’ is non-nil, each leading
star is
visually replaced by ‘org-sstar-leading-bullet-char’ and inherits
face properties from ‘org-sstar-leading’.
-This function uses ‘org-list-in-valid-context-p’ to avoid
+This function uses ‘org-sstar-in-valid-context-p’ to avoid
prettifying bullets in (for example) source blocks."
- (when (org-list-in-valid-context-p)
+ (when (org-sstar-in-valid-context-p)
(unless org-hide-leading-stars
(let ((star-beg (match-beginning 3))
(lead-end (match-end 3)))
- [nongnu] elpa/org-superstar a0d2cfaae1 076/162: "org-mode" -> "Org mode", (continued)
- [nongnu] elpa/org-superstar a0d2cfaae1 076/162: "org-mode" -> "Org mode", Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 4500a774bb 068/162: Added an FAQ., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar a078ca392a 079/162: Remove unnecessary lighter for Org Superstar., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 369292856e 042/162: reduced minimal-setup, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 3818dff655 006/162: Completed first draft of README., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 3bbb8e551c 011/162: updating gitignore to correctly handle temp files, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar d9accdcad7 002/162: Added README, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 02497248a9 007/162: Adding first revision of org-superstar.el, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar d45e1eb060 004/162: Added further fix: forgot that ‘’-support was a custom modification., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 3f29ff9cba 010/162: added disclaimer, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 8fd1d05c6c 013/162: Added wrapper around org-list-in-valid-context-p for refinement purposes,
Stefan Kangas <=
- [nongnu] elpa/org-superstar 54811604be 012/162: adding new sample image, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 070360a2d2 009/162: Formatting changes to adhere more closely to coding conventions., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 6143af17ed 015/162: updating .gitignore to skip .dir-locals.el, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar b72da86641 014/162: added image to README, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 59391390df 056/162: Added support for making leading stars invisible., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 7e2ca95932 033/162: added new, more modular sample inputs for incoming unit testing, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar d6071eb477 071/162: Updating README to fit first major version (1.0.0), Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar c3de9e52a8 035/162: adding reference files in faceup format, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 4517690c41 021/162: Copied description from README, added more UTF8 bullet hints., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar da32880de2 047/162: Honor org-odd-levels-only when computing heading levels., Stefan Kangas, 2021/12/31