From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: [ELPA] New package: hierarchy
Date: Fri, 20 Oct 2017 16:26:17 -0400 [thread overview]
Message-ID: <jwvshed4ltx.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: 87sheh8wuv.fsf@cassou.me
> I would like to add my package 'hierarchy', a library to create and
> display hierarchy structures, to ELPA. The hierarchy library has already
> been used to implement a json navigator and a Javascript class hierarchy
> navigator.
This looks really nice. I'd welcome it into GNU ELPA.
If you need any help to install it there, let me know.
Glancing at the code, I wonder how the JSON and Javascript class
navigators work, tho: do they first convert the original tree to
a `hierarchy` struct? How would it work if you wanted to use it to
navigate your local file-system (where the complete hierarchy might be
extremely and costly to create)? Is there some way to construct (and
display) it lazily?
Looking at the code I get the impression that it would be nice to split
it into 3 parts:
- the `hierarchy` defstruct with associated manipulation functions.
- the display code.
- an API between the two, which we could call `tree`, a bit like `seq.el`
defining the tree navigation primitives needed by the display code
and which could be implemented by all kinds of data types, including
the `hierarchy` struct.
WDYT?
Stefan
next prev parent reply other threads:[~2017-10-20 20:26 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-17 18:15 [ELPA] New package: hierarchy Damien Cassou
2017-10-17 21:17 ` Stefan Monnier
2017-10-23 7:47 ` Damien Cassou
2017-10-23 11:55 ` Stefan Monnier
2017-10-20 20:26 ` Stefan Monnier [this message]
2017-10-20 21:05 ` John Wiegley
2017-10-20 21:54 ` Clément Pit-Claudel
2017-10-21 8:52 ` João Távora
2017-10-23 8:17 ` Damien Cassou
2017-10-23 8:28 ` João Távora
2017-10-23 8:05 ` Damien Cassou
2017-10-23 12:03 ` Stefan Monnier
2017-10-21 7:27 ` Eli Zaretskii
2017-10-22 13:20 ` Damien Cassou
2017-10-22 14:39 ` Eli Zaretskii
2017-10-22 15:23 ` Damien Cassou
2017-10-22 19:41 ` John Wiegley
2017-10-22 20:25 ` Damien Cassou
2017-10-23 2:49 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvshed4ltx.fsf-monnier+gmane.emacs.devel@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.