tags(3erl)
πΈ NAME πΈ
okay bestie, meet tags β from the Erlang module definition page (tags(3erl)), and its whole job is generating an Emacs TAGS file from Erlang source files. itβs giving βdefinition index but make it cute,β and honestly? iconic. π
β¨ DESCRIPTION β¨
so a TAGS file is what Emacs uses to find function and variable definitions in any source file in large projects. this module can generate a TAGS file from Erlang source files, and it recognises functions, records, and macro definitions. periodt. π
π οΈ EXPORTS π οΈ
hereβs the whole roster, no skips, fr fr:
π
file(File) -> ok | error / file(File, Options) -> ok | error
file(File) -> ok | error
file(File, Options) -> ok | error
types:
File = file:filename()
Options = [option()]
option() =
{outfile, NameOfTAGSFile :: file:filename()} |
{outdir, NameOfDirectory :: file:filename()}
creates a TAGS file for the file File. slay. β¨
π files(FileList) -> ok | error / files(FileList, Options) -> ok | error
files(FileList) -> ok | error
files(FileList, Options) -> ok | error
types:
FileList = [file:filename()]
Options = [option()]
option() =
{outfile, NameOfTAGSFile :: file:filename()} |
{outdir, NameOfDirectory :: file:filename()}
creates a TAGS file for the files in the list FileList. very βbatch process my beloveds.β π
π¦ dir(Dir) -> ok | error / dir(Dir, Options) -> ok | error
dir(Dir) -> ok | error
dir(Dir, Options) -> ok | error
types:
Dir = file:filename()
Options = [option()]
option() =
{outfile, NameOfTAGSFile :: file:filename()} |
{outdir, NameOfDirectory :: file:filename()}
creates a TAGS file for all files in directory Dir. yes bestie, the whole directory. no crumbs. π
π dirs(DirList) -> ok | error / dirs(DirList, Options) -> ok | error
dirs(DirList) -> ok | error
dirs(DirList, Options) -> ok | error
types:
DirList = [file:filename()]
Options = [option()]
option() =
{outfile, NameOfTAGSFile :: file:filename()} |
{outdir, NameOfDirectory :: file:filename()}
creates a TAGS file for all files in any directory in DirList. multi-directory main character energy. π
π§ subdir(Dir) -> ok | error / subdir(Dir, Options) -> ok | error
subdir(Dir) -> ok | error
subdir(Dir, Options) -> ok | error
types:
Dir = file:filename()
Options = [option()]
option() =
{outfile, NameOfTAGSFile :: file:filename()} |
{outdir, NameOfDirectory :: file:filename()}
descends recursively down the directory Dir and creates a TAGS file based on all files found. itβs going deep, bestie. π
π subdirs(DirList) -> ok | error / subdirs(DirList, Options) -> ok | error
subdirs(DirList) -> ok | error
subdirs(DirList, Options) -> ok | error
types:
DirList = [file:filename()]
Options = [option()]
option() =
{outfile, NameOfTAGSFile :: file:filename()} |
{outdir, NameOfDirectory :: file:filename()}
descends recursively down all the directories in DirList and creates a TAGS file based on all files found. recursive queen behavior. π
β root() -> ok | error / root(Options) -> ok | error
root() -> ok | error
root(Options) -> ok | error
types:
Options = [option()]
option() =
{outfile, NameOfTAGSFile :: file:filename()} |
{outdir, NameOfDirectory :: file:filename()}
creates a TAGS file covering all files in the Erlang distribution. like, the whole entire Erlang distribution. no cap. π
π OPTIONS π
the functions above have an optional argument, Options. itβs a list, and it can contain these little cuties:
{outfile, NameOfTAGSFile}β create a TAGS file namedNameOfTAGSFile. π{outdir, NameOfDirectory}β create a file namedTAGSin the directoryNameOfDirectory. β¨
the default behaviour is to create a file named TAGS in the current directory. lowkey convenient, highkey iconic. π
π 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. go off, root. π
tags:files(["foo.erl", "bar.erl", "baz.erl"], [{outdir, "../projectdir"}]).
here we create a file named TAGS and place it in the directory ../projectdir. the file contains information about the functions, records, and macro definitions of the three files. three-file friend group, slay. π«Ά
π 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.
xoxo, sign-off from Ericsson AB π version tools 3.5.3 π manual tags(3erl). thatβs the whole page, bestie β now go make Emacs proud. πβ¨
π¦ where this page comes from
- debian bookworm: erlang-manpages 1:25.2.3+dfsg-1+deb12u1 Β· Apache-2.0
- debian bookworm: erlang-manpages 1:25.2.3+dfsg-1+deb12u4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms