[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Old patch] Unify fn and var help to make learning elisp a little ea
From: |
Alexis |
Subject: |
Re: [Old patch] Unify fn and var help to make learning elisp a little easier |
Date: |
Wed, 21 Jan 2015 10:17:24 +1100 |
Kelly Dean writes:
> I originally proposed this a couple years ago:
> https://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00165.html
+1 for adding this functionality. At the moment i'm using the following
for exploring (a) the functionality provided by various Emacs
subsystems/packages, and (b) the potential customisations available:
(defun list-symbols-with-prefix (prefix)
"Create a buffer listing functions and variables with prefix PREFIX."
(interactive "sPrefix: ")
(let ((candidates (sort (all-completions prefix obarray) #'string<)))
(switch-to-buffer (generate-new-buffer "*Symbols*"))
(dolist (c candidates)
(let ((s (intern c)))
(cond
((fboundp s)
(insert (concat (symbol-name s) " <f>\n")))
((boundp s)
(insert (concat (symbol-name s) " <v>\n")))
(t))))
(beginning-of-buffer)
(local-set-key (kbd "RET") 'doc-for-symbol-at-point)))
Alexis.