0

I was recently looking for a way to represent a simple hierarchy (directory layout), and came across the emacs hierarchy library by Damien Cassou. The page mentions that it was integrated into Emacs Core as of 28.1, but I am running 28.2, 29.x, 30.1 on various machines, and cannot find or use it. It is also not pulling up on Melpa, where it was previously hosted (apparently).

I assume if it is in core, then I don't need to (require 'hierarchy) in my init file?

It seemed like such a simple elegant solution. Anyone know what happened to it, or how to access it short of manually importing the hierarchy.el file directly?

3
  • C-h P hierarchy shows that it is indeed built-in (at least in 30.1). But you still need to require it to load and use it. Commented Sep 5 at 8:36
  • AFAICT, it is part of emacs but it is optional: if you want to use it, you need to (require 'hierarchy). OTOH, if you ask for help on something that begins with hier, the library is autoloaded at that point, but if you need to use it, you should not depend on that: you should require it explicitly. Commented Sep 5 at 14:55
  • If either of you (@FranBurstall and @NickD) could post your comment as an answer, I would be happy to accept it. Commented Sep 8 at 15:41

1 Answer 1

0

Do C-h P hierarchy to see that it is indeed built-in. However, it is not loaded by default so you still need to do an explicit (require 'hierarchy) in your init file.

As far as I can see, the package defines no autoloads so an explicit require is the only way to load it.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.