Add function that dump all function calls in current buffer. Useful to explore
elisp API from somebody else files.
--- a/.emacs-my Sun Dec 16 18:07:16 2012 +0200
+++ b/.emacs-my Sun Dec 16 20:04:53 2012 +0200
@@ -2167,6 +2167,20 @@
)
))
+(defun my-dump-funcs ()
+ "Dump all function calls in current buffer. Useful to explore
+elisp API from somebody else files."
+ (interactive)
+ (let* ( (cur-buffer (current-buffer)) (new-buffer (get-buffer-create (concat (buffer-name cur-buffer) "-funcs.el"))) symb )
+ (while (search-forward-regexp "([[:alnum:]*]" nil t)
+ (setq symb (thing-at-point 'symbol))
+ (with-current-buffer new-buffer
+ (insert-string symb)
+ (insert-char ?\n 1)))
+ (switch-to-buffer new-buffer)
+ (shell-command-on-region (point-min) (point-max) "sort -u" nil t)
+ ))
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(message "C, c-mode, C++, c++-mode")