commit b80701b193bddfffdacd2ab065749cc63d0e45d0 parent cf24f963bd77f679f09057c55c6a4683b3f3a5cb Author: Wilfred Hughes <me@wilfred.me.uk> Date: Sun, 3 Feb 2019 01:12:11 -0800 If there are no primitives, don't show that header Diffstat:
| M | helpful.el | | | 8 | ++++---- |
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/helpful.el b/helpful.el @@ -657,10 +657,10 @@ overrides that to include previously opened buffers." (insert (format "Functions called by %s:\n\n" sym)) (helpful--display-callee-group compounds) - (insert "\n") - - (insert (format "Primitives called by %s:\n\n" sym)) - (helpful--display-callee-group primitives) + (when primitives + (insert "\n") + (insert (format "Primitives called by %s:\n\n" sym)) + (helpful--display-callee-group primitives)) (goto-char (point-min))