diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2014-01-25 20:01:38 +0100 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2014-01-25 20:01:38 +0100 |
commit | 435bf0544ebe2bafc66af61b7b750cdece3432d3 (patch) | |
tree | aa3073412b15bee628acee1b5ba48ef3eec0883d /helm-imenu.el | |
parent | 209996c98c40669fecc2e3d76da5e2610f4e4d4c (diff) |
* helm-imenu.el (helm-imenu--get-prop): Add comments.
Diffstat (limited to 'helm-imenu.el')
-rw-r--r-- | helm-imenu.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/helm-imenu.el b/helm-imenu.el index c8c711de..0450c191 100644 --- a/helm-imenu.el +++ b/helm-imenu.el @@ -91,13 +91,15 @@ (list elm))))) (defun helm-imenu--get-prop (item) + ;; property value of ITEM can have itself + ;; a property value which have itself a property value + ;; ...and so on; Return a list of all these + ;; properties values starting at ITEM. (let* ((prop (get-text-property 0 'helm-imenu-type item)) (lst (list prop item))) (when prop (while prop - (setq prop (get-text-property - 0 'helm-imenu-type - prop)) + (setq prop (get-text-property 0 'helm-imenu-type prop)) (and prop (push prop lst))) lst))) |