M-x < TAB > prints all the defined functions.
To check a variable is defined or not evaluating the following expression, (boundp 'variable-name) C-x C-e will print t if the variable-name is defined else nill.
How to print all the defined variables in emacs.
Interactively, you can set the buffer local value using C-x f. You can customize this variable. The line that says ' You can customize the variable ' indicates that this variable is a user option. C-h v is not restricted to user options; it allows non-customizable variables too.
Extrapolating (heavily!) what is being asked for, here is a way to get a pretty-printed alist of all buffer-local variables with their values. This is very convenient for finding out why for instance a mode isn't behaving the way one expects.
To get this listing, do:
M-x pp-eval-expression RET (buffer-local-variables) RET
Relevant portions from this list can be added almost verbatim to a .dir-locals.el
file for use with multiple files.
It's unclear exactly what you want to do with a full list of symbols, since the way in which M-x
displays function names is somewhat specialized.
Assuming that you want to programmatically obtain a list of all defined symbols, here's how auto-complete.el
does it:
(loop for x being the symbols
if (boundp x)
collect (symbol-name x))
Note that you can also enter M-x describe-var RET
, and then press TAB
to get a sorted completion list of all symbols.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With