other versions
- wheezy 1:15.b.1-dfsg-4+deb7u1
- wheezy-backports 1:17.3-dfsg-4~bpo70+1
- jessie 1:17.3-dfsg-4+deb8u1
- jessie-backports 1:19.2.1+dfsg-2~bpo8+1
- testing 1:19.2.1+dfsg-2
- unstable 1:19.2.1+dfsg-2
- experimental 1:19.3.1+dfsg-1
tags(3erl) | Erlang Module Definition | tags(3erl) |
NAME¶
tags - Generate Emacs TAGS file from Erlang source filesDESCRIPTION¶
A TAGS file is used by Emacs to find function and variable definitions in any source file in large projects. This module can generate a TAGS file from Erlang source files. It recognises functions, records, and macro definitions.EXPORTS¶
file(File [, Options])
Create a TAGS file for the file File.
Create a TAGS file for the files in the list FileList.
Create a TAGS file for all files in directory Dir.
Create a TAGS file for all files in any directory in DirList.
Descend recursively down the directory Dir and create a TAGS file
based on all files found.
Descend recursively down all the directories in DirList and create a
TAGS file based on all files found.
Create a TAGS file covering all files in the Erlang distribution.
OPTIONS¶
The functions above have an optional argument, Options. It is a list which can contain the following elements:- *
- {outfile, NameOfTAGSFile} Create a TAGS file named NameOfTAGSFile.
- *
- {outdir, NameOfDirectory} Create a file named TAGS in the directory NameOfDirectory.
EXAMPLES¶
- *
- tags:root([{outfile, "root.TAGS"}]).
This command will create a file named root.TAGS in the current directory.
The file will contain references to all Erlang source files in the Erlang
distribution.
- *
- tags:files(["foo.erl", "bar.erl",
"baz.erl"], [{outdir, "../projectdir"}]).
Here we create file named TAGS placed it in the directory
../projectdir. The file contains information about the functions,
records, and macro definitions of the three files.
SEE ALSO¶
- *
- Richard M. Stallman. GNU Emacs Manual, chapter "Editing Programs", section "Tag Tables". Free Software Foundation, 1995.
- *
- Anders Lindgren. The Erlang editing mode for Emacs. Ericsson, 1998.
tools 2.7 | Ericsson AB |