Wilfred / helpful

A better Emacs *help* buffer
1.1k stars 62 forks source link

Idea: group callees #150

Open nickdrozd opened 6 years ago

nickdrozd commented 6 years ago

Here's the callees list for fill-paragrah:

Functions called by fill-paragraph:

  =
  barf-if-buffer-read-only
  buffer-hash
  buffer-modified-p
  concat
  current-buffer
  eq
  equal
  fill-comment-paragraph
  fill-forward-paragraph
  fill-region
  fill-region-as-paragraph
  funcall
  goto-char
  list
  minibufferp
  move-to-left-margin
  not
  point
  point-min
  region-beginning
  region-end
  save-excursion
  set-buffer-modified-p

I imagine that in most cases (and certainly for me), =, list, eq, etc, are not particularly interesting. It would be nice if these functions were grouped in some way. The easiest and simplest grouping would be to separate primitives and non-primitives. In this particular case it might also be nice to see, for instance, the buffer handling functions grouped together, but that would be a little harder to implement.

Wilfred commented 6 years ago

Yeah, I'd love to do this. This Helpful feature is inspired by slime, which does group:

slime_xref

Grouping by library is probably the best way to group, but having any grouping at all would be a huge improvement.