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: Emanuel Berg
Subject: Re: How to get all commands defined in a specified file (or files)?
Date: Thu, 14 Nov 2024 00:46:38 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

mbork wrote:

> 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?

You will collect based on `symbol-file', as you said.

  (symbol-file #'find-sibling-file)
  ; /usr/local/share/emacs/31.0.50/lisp/files.elc

If n/a, it gets more tricky.

When it is eval'd, who gets that data?

Help does. And some other.
You must ask one of them.

  (setq help-mode--current-data (list :symbol f :file file-name))

Otherwise it cannot happen. You can grep the source and stuff,
but that only says it is defined here or there as a bunch of
chars in a text file, not that it is the definition in use.

PS. Hello, everyone! Soo good to see this list is alive again!
    I'm stuck with my project but any day now I'll be my last
    commit on that. I've said for several weeks ...
    https://dataswamp.org/~incal/tr/good/bad-alive.png
DS.

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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