Print emacs characters in elisp

How to print all characters in emacs using elisp.

You can verify that the lisp object is a symbol using the symbol p function. But how to collect all the characters.

Can I access the emacs character table?

+5
source share
2 answers

Here is one way to do this:

(require 'cl)

(loop for x being the symbols
    if (boundp x)
    collect (symbol-name x))

loopis a common Lisp macro that has also been ported to Emacs Lisp. This is part of the package cl(part of the standard Emacs distribution) that you will need to use require.

Another possibility is possible:

(apropos "." t)

To perform the aproposinvocation will require much more time, but you will get more information about the symbols.

+6
source

, cl:

M-: (mapatoms (lambda (s) (insert (symbol-name s) "\n"))) RET. , .

+4

All Articles