1. Home
  2. Computing & Technology
  3. Linux

Find-func
Emacs Documentation

By Juergen Haas, About.com Guide

Finding Function and Variable Definitions

  • M-x find-function <RET> function <RET>
    Find the definition of function in its source file.
  • M-x find-variable <RET> variable <RET>
    Find the definition of variable in its source file.
  • M-x find-function-on-key <RET> key
    Find the definition of the function that key invokes.

These commands provide an easy way to find the definitions of Emacs Lisp functions and variables. They are similar in purpose to the Tags facility (see Tags), but don't require a tags table; on the other hand, they only work for function and variable definitions that are already loaded in the Emacs session.

To find the definition of a function, use M-x find-function. M-x find-variable finds the definition of a specified variable. M-x find-function-on-key finds the definition of the function bound to a specified key.

To use these commands, you must have the Lisp source (.el) files available along with the compiled (.elc) files, in directories in load-path. You can use compressed source files if you enable Auto Compression mode. These commands only handle definitions written in Lisp, not primitive functions or variables defined in the C code of Emacs.

* Emacs Manual Index

Explore Linux
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Linux
  4. Linux Software
  5. Editors
  6. Emacs
  7. Emacs Documentation - Find-func

©2009 About.com, a part of The New York Times Company.

All rights reserved.