MTAGS(1)
β¨ mtags(1) β General Commands Manual, but make it cute β¨
okay bestie, welcome to the mtags(1) page from the General Commands Manual π
this is the whole vibe: tag files for Mercury source code, explained so you can actually use it. no cap, every flag is here.
πΈ NAME πΈ
mtags β generate tag files for Mercury source code π¦
π USAGE π
mtags [<options>] <source files>
π DESCRIPTION π
This script creates tags files for Mercury programs that can be used with Vi, Vim, Elvis or Emacs (depending on the options specified). It takes a list of filenames from the command line and produces a tags file for the Mercury declarations in those files. slay. β¨
π«Ά NOTES π«Ά
mtags is one of the development tools that are part of the Mercury distribution.
This manual page is limited to a brief summary. For further information see the Mercury User's Guide. that's the tea β
π OPTIONS π
With no options specified, mtags defaults to creating a vim-style tags file. This file format is backwards compatible with vi, but tags contain extra attributes that are used by vim. Duplicate tags are not removed.
-e,--emacsβ Produce an emacs-styleTAGSfile. If this option is present, all other options are ignored. like, absolutely ignored, bestie π--vim,--extβ This option is the default, but is retained for backwards compatibility. This option is shorthand for--keep-duplicates --search-definitions --vim-extended-attributes.--elvisβ Produces an extended tags file in a format that will work with elvis 2.1+. This option is shorthand for--keep-duplicates --no-search-definitions --elvis-extended-attributes.--traditional-viβ Produces a tags file that contains only information useful for traditional vi. This was the default in previous versions ofmtags, but is no longer since vim-style tags files are backwards compatible with vi. You may want to use this option if you only use vi and you want to reduce the size of the tags file. However, we suggest you investigate vim since its tags support is far superior for languages such as Mercury which support overloading. This option is shorthand for--no-keep-duplicates --search-definitions --no-extended-attributes.--simpleβ Produce a dumbed-down vi-style tags file that will work with versions of vim prior to 5.0, and versions of elvis prior to 2.1. These versions cannot handle multiple commands for a tag. This option is shorthand for--keep-duplicates --no-search-definitions --no-extended-attributes.--keep-duplicatesβ Allow multiple definitions for a tag. This option is the default, but is retained for backwards compatibility.--no-keep-duplicatesβ If a tag has multiple definitions, ignore all but the first. Also ignores typeclass instance tags.--search-definitionsβ This option is on by default. Output extra ex commands which place the tag in the search buffer to allow the definition to be found by pressingnafter a tag lookup. For predicate and function declarations this will attempt to find the clauses by searching for occurrences of the tag at the start of a line. For other declarations, just the tag itself will be placed in the search buffer.--no-search-definitionsβ Do not output extra commands to allow searching for definitions.--all-module-qualified-namesβ Generate tags for all fully or partially qualified names. The default is to generate tags only if they are reasonably short, which is currently defined as being 30 characters or less using.as the module name separator.--no-module-qualified-namesβ Generate tags only for unqualified names.--underscore-qualified-namesβ When generating tags for fully or partially module qualified names, generate tags using__as well as.as the module name separator. The default is to use only.as module name separator.--no-extended-attributesβ Do not output the extra tag attributes for vim/elvis.--extended-attributes,--vim-extended-attributesβ This option is the default. Output extra attributes for each tag to say whether it is in the implementation or interface of the source file and to describe the kind of tag. Tag kinds used are:predfor predicate declarations,funcfor function declarations,typefor type definitions,consfor type constructors,fldfor field names,instfor inst definitions,modefor mode definitions,tcfor typeclass declarations,tcifor typeclass instance declarations,tcmfor typeclass methods,tcimfor typeclass instance methods. (Vim assumes that thekindattribute has at most 4 characters.)--elvis-extended-attributesβ Output extra attributes as for--vim-extended-attributes, but in the format required by elvis.--debugβ Output the name of each source file as it is being processed to standard error.-h,--helpβ Display this help message and exit.--β Treat all remaining arguments as source file names. This is useful if you have file names starting with-.
π AUTHORS π
The Mercury team. iconic π
π COPYRIGHT π
This program and its documentation are copyright by the University of Melbourne and the Mercury team. They may be copied only under the terms of the GNU General Public License - see the file COPYING in the Mercury distribution.
π§ SEE ALSO π§
The Mercury User's Guide.
<http://www.mercurylang.org/information/documentation.html>
π sign-off from the Mercury Programmer's Manual, dated 2026-04-24 β mwah, bestie π
π¦ where this page comes from
- alpine 3.24: mercury-doc 22.01.8-r1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms