[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-remark 4e57d99e2d 68/75: fix: use space display spe
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-remark 4e57d99e2d 68/75: fix: use space display specification instead of a string of \s |
Date: |
Fri, 6 Oct 2023 12:59:21 -0400 (EDT) |
branch: externals/org-remark
commit 4e57d99e2df9e8dbfc1f1f65bd2dd82bf54e189c
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>
fix: use space display specification instead of a string of \s
---
org-remark-line.el | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/org-remark-line.el b/org-remark-line.el
index e30a44041c..a4bcd9b5bf 100644
--- a/org-remark-line.el
+++ b/org-remark-line.el
@@ -5,7 +5,7 @@
;; Author: Noboru Ota <me@nobiot.com>
;; URL: https://github.com/nobiot/org-remark
;; Created: 01 August 2023
-;; Last modified: 20 August 2023
+;; Last modified: 30 August 2023
;; Package-Requires: ((emacs "27.1") (org "9.4"))
;; Keywords: org-mode, annotation, note-taking, marginal-notes, wp
@@ -88,9 +88,9 @@ The maximum is set in
`org-remark-line-heading-title-max-length'."
(defface org-remark-line-highlighter
'((((class color) (min-colors 88) (background light))
- :foreground "#dbba3f")
+ :foreground "#dbba3f" :inherit default)
(((class color) (min-colors 88) (background dark))
- :foreground "#e2d980")
+ :foreground "#e2d980" :inherit default)
(t
:inherit highlight))
"Face for the default line highlighter pen.")
@@ -173,9 +173,10 @@ marginal area does not exist, its width will be returned
as nil."
(setq org-remark-line-margins-original (window-margins))
(setq org-remark-line-margins-set-p t)
(setq org-remark-line-minimum-left-margin-width
- (if (numberp org-remark-line-minimum-margin-width)
+ (+ (if (numberp org-remark-line-minimum-margin-width)
org-remark-line-minimum-margin-width
- (car org-remark-line-minimum-margin-width)))
+ (car org-remark-line-minimum-margin-width))
+ org-remark-line-margin-padding))
(setq org-remark-line-minimum-right-margin-width
(+ (if (numberp org-remark-line-minimum-margin-width)
org-remark-line-minimum-margin-width
@@ -242,8 +243,6 @@ This happens only when HIGHLIGHT is a line-highlight."
(- left-margin
(+ string-length
org-remark-line-margin-padding))))
(spaces-length (if (> spaces-base-length 0) spaces-base-length 0))
- (spaces (with-temp-buffer (insert-char ?\s spaces-length)
- (buffer-string)))
(spacer-ov (make-overlay pos pos nil :front-advance)))
;; Add a spacing overlay before the line-highlight overlay but we
;; only need one of these; remove it if one already exits
@@ -253,7 +252,7 @@ This happens only when HIGHLIGHT is a line-highlight."
(propertize " "
'display
`((margin ,org-remark-line-margin-side)
- ,spaces)))
+ (space . (:width ,spaces-length)))))
(overlay-put spacer-ov 'category 'org-remark-spacer)
spacer-ov))
@@ -282,8 +281,10 @@ This happens only when HIGHLIGHT is a line-highlight."
;; If the icon-string has a display properties, assume it is an icon image
(let ((display-prop (get-text-property 0 'display icon-string)))
(cond (display-prop ; svg-based icon
- (let* ((display-prop
- (list `(margin ,org-remark-line-margin-side) display-prop))
+ (let* ((display-prop (list `(margin ,org-remark-line-margin-side)
display-prop))
+ ;; TODO margin needs to be calculated
+ ;; (list `(margin ,org-remark-line-margin-side)
+ ;; (append display-prop '(:margin (10 . 0))))))
(icon-face (get-text-property 0 'face icon-string))
(icon-string (propertize " " 'display display-prop)))
(when icon-face
- [elpa] externals/org-remark cbc26304a8 23/75: refactor: add org-remark-default-features to automatically load, (continued)
- [elpa] externals/org-remark cbc26304a8 23/75: refactor: add org-remark-default-features to automatically load, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark f37ddb69e7 22/75: fix(change): force trigger of notes buffer face, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark d606d80a47 29/75: refactor: move highlights-delay-load to org-remark.el, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 335293a03e 41/75: style(line):Clean up comments, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 8c3238902b 54/75: docs: keybinding sync with README, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark e904b53b2c 60/75: refactor: silence compilier warning, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark af03b2103e 50/75: docs: Docstring for org-remark-default-features, etc., ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 16622af0c0 66/75: fix: add org-remark-find-overlay-at-point to local hook, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 2fd1025490 63/75: fix: Regression. Delete only removes., ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 8020d33380 47/75: docs: organize customizing groups, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 4e57d99e2d 68/75: fix: use space display specification instead of a string of \s,
ELPA Syncer <=
- [elpa] externals/org-remark 3997025261 33/75: feat: icons for line-hl get their default face when notes exit, ELPA Syncer, 2023/10/06