[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-real 6e70f678b7 056/188: Don't highlight children w
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-real 6e70f678b7 056/188: Don't highlight children when following link |
Date: |
Sun, 5 May 2024 22:55:53 -0400 (EDT) |
branch: externals/org-real
commit 6e70f678b7c255f215716a761756255b2d20a8cf
Author: Amy Grinn <grinn.amy@gmail.com>
Commit: Amy Grinn <grinn.amy@gmail.com>
Don't highlight children when following link
---
org-real.el | 23 +++++++++++++++--------
1 file changed, 15 insertions(+), 8 deletions(-)
diff --git a/org-real.el b/org-real.el
index 51df8b2fd7..52f335b716 100644
--- a/org-real.el
+++ b/org-real.el
@@ -171,7 +171,7 @@ describing where BOX is."
(let* ((primary-name (plist-get (car (reverse containers)) :name))
(children (mapcar
(lambda (containers)
- (org-real--make-instance 'org-real-box containers))
+ (org-real--make-instance 'org-real-box containers
t))
(seq-filter
(lambda (containers)
(setq containers (reverse containers))
@@ -413,7 +413,9 @@ ORIG is `org-insert-link', ARGS are the arguments passed to
it."
(oset collection :box box)
collection))
-(cl-defmethod org-real--make-instance ((_ (subclass org-real-box)) containers)
+(cl-defmethod org-real--make-instance ((_ (subclass org-real-box))
+ containers
+ &optional skip-primary)
"Create an instance of `org-real-box' from CONTAINERS.
CONTAINERS is a list of plists containing at least a :name
@@ -425,7 +427,8 @@ property and optionally a :rel property."
(with-slots (children) world
(setq children (org-real--push children base)))
(if containers
- (org-real--make-instance-helper containers world base))
+ (org-real--make-instance-helper containers world base skip-primary)
+ (unless skip-primary (oset box :primary t)))
world))
(cl-defmethod org-real--merge (boxes)
@@ -667,10 +670,14 @@ If INCLUDE-ON-TOP is non-nil, also include height on top
of box."
;;;; Private class methods
-(cl-defmethod org-real--make-instance-helper (containers parent (prev
org-real-box))
+(cl-defmethod org-real--make-instance-helper (containers
+ parent
+ (prev org-real-box)
+ &optional skip-primary)
"Help create a 3D representation of CONTAINERS.
PREV must already existing in PARENT."
+ (message "Skip primary? %s" skip-primary)
(let* ((container (pop containers))
(rel (plist-get container :rel))
(box (org-real-box :name (plist-get container :name))))
@@ -737,14 +744,14 @@ PREV must already existing in PARENT."
(with-slots (children) prev
(setq children (org-real--push children box)))
(if containers
- (org-real--make-instance-helper containers prev box)
- (oset box :primary t)))
+ (org-real--make-instance-helper containers prev box skip-primary)
+ (unless skip-primary (oset box :primary t))))
(oset box :parent parent)
(with-slots (children) parent
(setq children (org-real--push children box)))
(if containers
- (org-real--make-instance-helper containers parent box)
- (oset box :primary t)))))
+ (org-real--make-instance-helper containers parent box skip-primary)
+ (unless skip-primary (oset box :primary t))))))
(cl-defmethod org-real--make-dirty (box)
"Clear all TOP LEFT WIDTH and HEIGHT coordinates from BOX and its children."
- [elpa] externals/org-real 4bfc97cc22 178/188: Remove org autoload, (continued)
- [elpa] externals/org-real 4bfc97cc22 178/188: Remove org autoload, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 361728f6e7 179/188: Updated contact details, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 7f689a429d 180/188: Updated dependencies, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 0cb14b4619 181/188: Remove package linter, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 0aa3926d29 183/188: Updated url, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real b3d55b3a8f 186/188: Removed md5 target, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 50bae7669a 188/188: Updated copyright, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 5d384d04e4 010/188: Typo, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real bcd3cb2c14 045/188: Refactoring, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real b6df63b9c8 187/188: Updated version, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 6e70f678b7 056/188: Don't highlight children when following link,
ELPA Syncer <=
- [elpa] externals/org-real 1d6e6054db 032/188: Linting, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 3a43ff3d2f 063/188: Satisfy elc compiler, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real b776aa7f67 064/188: Updated readme, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 902b7a6c08 068/188: Using infinity, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 36cdd58d63 070/188: Created buttons that link back to the location of the link, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real dbecf17555 075/188: Added ability to cycle children of a box, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 930333911f 080/188: Updated readme, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 00e4a4c595 096/188: Rotate locations of box when cycling, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 59236092f7 097/188: Show all containers while completing, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real c93e380141 101/188: Merge branch 'next' into 'main', ELPA Syncer, 2024/05/05