From: Damien Cassou <damien@cassou.me>
To: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: Re: [ELPA] New package: hierarchy
Date: Mon, 23 Oct 2017 10:05:48 +0200 [thread overview]
Message-ID: <87po9ewaoz.fsf@cassou.me> (raw)
In-Reply-To: <jwvshed4ltx.fsf-monnier+gmane.emacs.devel@gnu.org>
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> 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?
they do. That's fast enough for every day use.
> 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)?
This is implemented here
https://github.com/DamienCassou/hierarchy/blob/master/examples/hierarchy-examples-fs.el.
But, as you expect, this is not usable for a complete file system
(displaying ~/.emacs.d takes 4 seconds on my fast computer).
> Is there some way to construct (and display) it
> lazily?
could you please share your ideas at
https://github.com/DamienCassou/hierarchy/issues/49?
> Looking at the code I get the impression that it would be nice to split
> it into 3 parts:
by parts, you mean files? The code is currently split into pages. I
don't mind separating into files if that's what people want.
> - 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.
it makes sense even though I need to look deeper into it to have a clue
about what this would mean in practice.
--
Damien Cassou
http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill
next prev parent reply other threads:[~2017-10-23 8:05 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
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 [this message]
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=87po9ewaoz.fsf@cassou.me \
--to=damien@cassou.me \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.