Arbortext Command Language > Functions by Alphabetical Listing > current_tag_name
  
current_tag_name
current_tag_name ([doc])
In the Edit view, this function returns the name of the tag to the left of the cursor. In the Document Map view, this function returns the name of the tag to the right of the cursor if the cursor is at the start of a line (that is, between the element icon and the element name); you can control this behavior with the set docmapcurrenttag=off option.
* 
Even if you have applied an alias map to the document, this function will return a tag's real name, not its alias.
This is similar to the tagname variable except the current window is used. The doc argument specifies the identifier of the document tree to query. If omitted or 0, the current document is used.
Related Topics
set docmapcurrenttag command