In article <············@news-int.gatech.edu>,
lama <·····@cc.gatech.edu> wrote:
>Is there a way, in allegro lisp, to see the list of functions that the
>user defined and added to the history ?
One answer below, but you probably don't want it.
You shouldn't be defining most of your functions
in a listener or debug window to begin with. Define
them in a file. That way you don't lose them when
you leave Lisp, and you get better editing and
layout support. Use the listener window
as a command panel to load and run things.
Also note that the history is just a list of the
expressions you've typed to listener. It knows
nothing about which commands define functions.
You can get a list of symbols that are currently
defined to be function names in a given package,
default common-lisp-user, with
(defun get-functions (&optional (pkg-name :common-lisp-user))
(let ((fns nil)
(package (find-package pkg-name)))
(do-all-symbols (sym package)
(when (and (eql (symbol-package sym) package)
(fboundp sym))
(push sym fns)))
(sort fns #'string< :key #'symbol-name)))
Sample usage:
> (get-functions)
This includes any functions defined in files
you've loaded.
lama <·····@cc.gatech.edu> writes:
> Is there a way, in allegro lisp, to see the list of functions that the
> user defined and added to the history ?
If the definitions are in files, then (from Emacs) M-x
fi:list-changed-definitions will do it.