3

Say, there is some function and if I do a describe-function on it it says:

x is an interactive compiled Lisp function in x.el

Can I tell somehow if this loaded compiled code is byte compiled or natively compiled?

Tom
  • 1,190
  • 7
  • 16

2 Answers2

5

In emacs-28.1, describe-function gives this information:

switch-to-buffer is an interactive native compiled Lisp function in ‘window.el’.

Fran Burstall
  • 3,665
  • 10
  • 18
  • Thanks, I tried font-lock-mode, but that simply says 'interactive compiled Lisp function'. switch-to-buffer says native, though, for me too. I use the precompiled windows emacs binary, and I thought all lisp code files in the distribution is native compiled, but apparently this is not the case. I wonder why. – Tom Apr 06 '22 at 21:03
  • `font-lock-mode` is native compiled for me (emacs built from source on linux). – Fran Burstall Apr 06 '22 at 21:21
4

Variable system-configuration-features will contain NATIVE_COMP if your Emacs has been compiled with native compilation support.

gjm
  • 141
  • 1