[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-modern 8a0bce9661 26/65: Blocks: Add wrap-prefix to
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-modern 8a0bce9661 26/65: Blocks: Add wrap-prefix to support visual-line-mode |
Date: |
Mon, 7 Mar 2022 12:57:46 -0500 (EST) |
branch: externals/org-modern
commit 8a0bce9661dd290003c7954c25f4641c9d209c85
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Blocks: Add wrap-prefix to support visual-line-mode
---
org-modern.el | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/org-modern.el b/org-modern.el
index acfb6f91b7..80d068fb41 100644
--- a/org-modern.el
+++ b/org-modern.el
@@ -402,9 +402,12 @@ Set to nil to disable the indicator."
(save-excursion
(re-search-forward
"^[ \t]*#\\+end_" (line-end-position) 'noerror))))
- (put-text-property
- (point) (1+ (point)) 'line-prefix
- #(" " 0 1 (display (left-fringe org-modern--line
org-block-begin-line))))
+ (add-text-properties
+ (point) (line-end-position)
+ '(wrap-prefix
+ #(" " 0 1 (display (left-fringe org-modern--line
org-block-begin-line)))
+ line-prefix
+ #(" " 0 1 (display (left-fringe org-modern--line
org-block-begin-line)))))
(forward-line))))
;;;###autoload
@@ -467,14 +470,14 @@ Set to nil to disable the indicator."
;; TODO implement better unfontify
(with-silent-modifications
(remove-list-of-text-properties (point-min) (point-max)
- '(line-prefix display face
invisible)))))
+ '(wrap-prefix line-prefix display face
invisible)))))
(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 '(line-prefix display face
invisible))))
+ (remove-list-of-text-properties beg end '(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 ff1160a03c 07/65: org-modern-label: Fix line-spacing handling, (continued)
- [elpa] externals/org-modern ff1160a03c 07/65: org-modern-label: Fix line-spacing handling, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern d28951932a 13/65: Ensure that tags stay editable (See #2), ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern be679b3a79 14/65: Improve cursor placement on TODO keywords, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern a84994dc77 15/65: Improve cursor placement on timestamps (See #2), ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern b17d32c576 16/65: README rewording, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 6b925b71ee 19/65: Add org-modern-label-border, do not overwrite line-spacing, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 7ceca7a3cc 20/65: More beautiful checkboxes, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 58252d0955 21/65: Fix typo (Fix #4), ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 8abe22886a 22/65: Improve checkboxes, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern a37053e995 23/65: More elegant progress indicator, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 8a0bce9661 26/65: Blocks: Add wrap-prefix to support visual-line-mode,
ELPA Syncer <=
- [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, 2022/03/07