help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get all commands defined in a specified file (or files)?


From: Eduardo Ochs
Subject: Re: How to get all commands defined in a specified file (or files)?
Date: Tue, 12 Nov 2024 10:14:07 -0300

On Mon, 11 Nov 2024 at 16:38, <mbork@mbork.pl> wrote:

> Hi all,
>
> say that I'd like to define a `execute-extended-command' alternative
> which would only allow to run commands defined in a specified file.  How
> can I get all such commands?  I know about `symbol-file', but I don't
> know how it works (and it's complicated enough that I'm not sure I want
> to study it ATM;-) - I tried to instrument it for edebug, but a quick
> run revealed only that it's pretty mysterious).  I also looked at the
> property plist of a function name and saw that the filename is not kept
> there.  Any hints?
>
> TIA,
>
> --
> Marcin Borkowski
> https://mbork.pl
> https://crimsonelevendelightpetrichor.net/
>
>
 Hi Marcin,

eev has some functions for examining the load-history. I'm attaching a
screenshot, and you can try them with:

  ;; From: http://anggtwu.net/2024-find-tryit-links.html
  (progn
    (package-initialize)
    (package-refresh-contents)
    (package-install 'eev)
    (eev-beginner)
    (find-eev-quick-intro "2. Evaluating Lisp")
    )
  )

and then `M-x find-eloadhistory-links'.

The load-history is easy to use with cl-loop after we understand its
format, but understanding its format took me a while.

"Eev is not for adults - and if you're an adult then you will probably
want to uninstall it after a few minutes". More on that here:

  http://anggtwu.net/2024-find-tryit-links.html#uninstalling

Cheers!
  Eduardo Ochs

Attachment: sshot.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]