[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-modern 5f132cd720 54/65: Fix statistics face
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-modern 5f132cd720 54/65: Fix statistics face |
Date: |
Mon, 7 Mar 2022 12:57:48 -0500 (EST) |
branch: externals/org-modern
commit 5f132cd720b108dc46d83018e604517a925b537d
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Fix statistics face
---
org-modern.el | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/org-modern.el b/org-modern.el
index 766228d0f1..2892b86ecc 100644
--- a/org-modern.el
+++ b/org-modern.el
@@ -242,7 +242,7 @@ Set to nil to disable the indicator."
(defun org-modern--statistics ()
"Prettify headline todo statistics."
- (let ((label (propertize (match-string 1) 'face 'org-modern-statistics)))
+ (let ((label (substring-no-properties (match-string 1))))
(when org-modern-progress
(let ((idx (floor
(* (1- (length org-modern-progress))
@@ -254,10 +254,8 @@ Set to nil to disable the indicator."
(/ (* 1.0 (string-to-number (match-string 3)))
q))))))))
(setq label (concat (aref org-modern-progress idx) " " label))))
(setq label (concat " " label " "))
- (add-face-text-property 0 (length label)
- 'org-modern-statistics 'append label)
- (put-text-property (1- (match-beginning 1)) (1+ (match-end 1))
- 'display label)))
+ (add-text-properties (1- (match-beginning 1)) (1+ (match-end 1))
+ `(display ,label face org-modern-statistics))))
(defun org-modern--tag ()
"Prettify headline tags."
- [elpa] externals/org-modern 8a0bce9661 26/65: Blocks: Add wrap-prefix to support visual-line-mode, (continued)
- [elpa] externals/org-modern 8a0bce9661 26/65: Blocks: Add wrap-prefix to support visual-line-mode, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 008f6baa8a 27/65: Improve block font locking, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern a63a427991 28/65: Fix docstring, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern d2bda1d449 29/65: Improve table editability, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern d6e8889e32 31/65: Fix indented tables, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern f0532357fe 32/65: Handle upper case block keywords, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 14637f0a5f 34/65: Fix source block indicators for source blocks with empty lines, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 6b13500969 38/65: Improve docstring, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern f45be59ff5 46/65: org-modern-keyword: Configurable replacement, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern b4d6b37eba 47/65: README: Expand on the current limitations, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 5f132cd720 54/65: Fix statistics face,
ELPA Syncer <=
- [elpa] externals/org-modern 7d741dba51 60/65: Take advantage of more flexible boxes on Emacs 28, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern e13be0f433 40/65: Preserve line-prefix and wrap-prefix if org-indent-mode is enabled (Fix #7), ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 4f5d010a9f 42/65: Use en-dash for list bullets, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 394460be40 50/65: Document minimal setup (Fix #13), ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 37bbac24a0 55/65: Increase font sizes by default (See #19), ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern a15d8353ed 61/65: Fix :type, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 83ee897ac1 63/65: Update face when org-modern-variable-pitch is changed, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 7bce289ac6 62/65: Improve timestamp handling, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 3baf87f80e 09/65: README: Mention manual installation, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 5278d9787c 01/65: Initial commit, ELPA Syncer, 2022/03/07