helpful

a fork of Wilfred's helpful
git clone https://git.trogloxene.org/helpful.git
Log | Files | Refs | README

commit 7b2d079e368dd938ee5c29875b65e6fcb12a9f8f
parent f1536b5dce84dd456ae512bf9cd75fcb47f3abf1
Author: Wilfred Hughes <me@wilfred.me.uk>
Date:   Thu,  1 Jun 2017 08:50:18 +0100

Improve references display: don't show duplicates

Diffstat:
Mhelpful.el | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/helpful.el b/helpful.el @@ -279,7 +279,7 @@ state of the current symbol." (positions (helpful--reference-positions helpful--sym buf))) (setq references - (--map (helpful--position-head buf it) positions)) + (-uniq (--map (helpful--position-head buf it) positions))) (kill-buffer buf))) (erase-buffer) (insert @@ -300,7 +300,7 @@ state of the current symbol." "No properties.") (helpful--heading "\n\nReferences\n") (if source-path - (format "Defined in %s\n%s\n" + (format "Defined in %s\n\nCallers:\n%s\n" (helpful--navigate-button source-path (helpful--source-pos helpful--sym))