[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-modern e13be0f433 40/65: Preserve line-prefix and w
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-modern e13be0f433 40/65: Preserve line-prefix and wrap-prefix if org-indent-mode is enabled (Fix #7) |
Date: |
Mon, 7 Mar 2022 12:57:47 -0500 (EST) |
branch: externals/org-modern
commit e13be0f433fd175e475491ffcc577321b2d74802
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Preserve line-prefix and wrap-prefix if org-indent-mode is enabled (Fix #7)
---
org-modern.el | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/org-modern.el b/org-modern.el
index c247e3ff4b..b9678d2c1f 100644
--- a/org-modern.el
+++ b/org-modern.el
@@ -464,17 +464,21 @@ Set to nil to disable the indicator."
(font-lock-add-keywords nil org-modern--keywords 'append)
(advice-add #'org-unfontify-region :after #'org-modern--unfontify))
(t (font-lock-remove-keywords nil org-modern--keywords)
- ;; TODO implement better unfontify
- (with-silent-modifications
- (remove-list-of-text-properties (point-min) (point-max)
- '(wrap-prefix line-prefix display face
invisible)))))
+ (let ((org-modern-mode t))
+ (org-modern--unfontify (point-min) (point-max)))))
(font-lock-flush))
(defun org-modern--unfontify (beg end &optional _)
"Unfontify prettified elements between BEG and END."
(when org-modern-mode
;; TODO implement better unfontify
- (remove-list-of-text-properties beg end '(wrap-prefix line-prefix display
face invisible))))
+ (with-silent-modifications
+ ;; Only remove line-prefix and wrap-prefix if org-indent-mode is
disabled.
+ (remove-list-of-text-properties
+ beg end
+ (if (bound-and-true-p org-indent-mode)
+ '(display face invisible)
+ '(wrap-prefix line-prefix display face invisible))))))
(define-fringe-bitmap 'org-modern--line (make-vector 1 #x80) nil nil '(top t))
(define-fringe-bitmap 'org-modern--top (vconcat (make-vector 20 0) [#xFF]
(make-vector 107 #x80)) nil nil 'top)
- [elpa] externals/org-modern a63a427991 28/65: Fix docstring, (continued)
- [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, 2022/03/07
- [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 <=
- [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
- [elpa] externals/org-modern 8c4bc6a320 12/65: Ensure that todo keywords stay editable (See #2), ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 664f57ae12 10/65: Add option org-modern-hide-stars, ELPA Syncer, 2022/03/07