emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/taxy-magit-section e1e0520565 2/2: Comment: Add note


From: ELPA Syncer
Subject: [elpa] externals/taxy-magit-section e1e0520565 2/2: Comment: Add note
Date: Tue, 23 Jan 2024 18:58:45 -0500 (EST)

branch: externals/taxy-magit-section
commit e1e05205656a42fbf756c572a5bdbe83ae4ddeff
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>

    Comment: Add note
---
 taxy-magit-section.el | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/taxy-magit-section.el b/taxy-magit-section.el
index c4e68b18c8..362744cff5 100644
--- a/taxy-magit-section.el
+++ b/taxy-magit-section.el
@@ -96,6 +96,16 @@ this does not disable indentation of section headings.")
   ;; hierarchical path, but since the taxys aren't doubly linked, that isn't 
easily done.
   ;; Could probably be worked around by binding a special variable around the 
creation of
   ;; the taxy hierarchy that would allow the path to be saved into each taxy.
+
+  ;; NOTE: This method seems to slightly conflate a couple of things: the 
section class
+  ;; and the value of the section instance.  In the case of 
`taxy-magit-section', the
+  ;; non-leaf nodes will have a `taxy' as their value, but the leaves will be 
whatever
+  ;; type of object the `taxy' contains, and we can't account for that in the 
method
+  ;; specializer (or could we define our own specializer?  I guess we could, 
but the
+  ;; implications of that aren't obvious).  It's not clear that calling the 
next method
+  ;; (i.e. probably falling back on just the `magit-section' class) would 
produce a useful
+  ;; or "correct" value for visibility caching purposes, but at least it 
works, so it will
+  ;; do for now.
   (let ((value (oref section value)))
     (cl-typecase value
       (taxy (taxy-name value))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]