aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/eqn.7
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-21 11:57:56 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-21 11:57:56 +0000
commite0f75c6ac153f58d4ab0b61182736fc07a2ce1dc (patch)
tree3877ce513ec145078a0aecbe739612df980d86d1 /eqn.7
parent175c51d9a38aa43801777db95c54f0d7abf91092 (diff)
downloadmandoc-e0f75c6ac153f58d4ab0b61182736fc07a2ce1dc.tar.gz
mandoc-e0f75c6ac153f58d4ab0b61182736fc07a2ce1dc.tar.zst
mandoc-e0f75c6ac153f58d4ab0b61182736fc07a2ce1dc.zip
Make `undef' not expand its argument before undefining it. Document
this and have the same behaviour apply to `set' and `define'.
Diffstat (limited to 'eqn.7')
-rw-r--r--eqn.715
1 files changed, 14 insertions, 1 deletions
diff --git a/eqn.7 b/eqn.7
index ca0fb622..64aed29d 100644
--- a/eqn.7
+++ b/eqn.7
@@ -1,4 +1,4 @@
-.\" $Id: eqn.7,v 1.6 2011/07/21 11:34:53 kristaps Exp $
+.\" $Id: eqn.7,v 1.7 2011/07/21 11:57:56 kristaps Exp $
.\"
.\" Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\"
@@ -100,6 +100,7 @@ Note that a quoted
causes errors in some
.Nm
implementations and should not be considered portable.
+It is not expanded for replacements.
Definitions may refer to other definitions; these are evaluated
recursively when text replacement occurs and not when the definition is
created.
@@ -115,6 +116,15 @@ Self-referencing definitions will raise an error.
.It Cm set
Set an equation mode.
Both arguments are thrown away.
+Its syntax is as follows:
+.Pp
+.D1 set Ar key val
+.Pp
+The
+.Ar key
+and
+.Ar val
+are not expanded for replacements.
.It Cm undef
Unset a previously-defined key.
Its syntax is as follows:
@@ -124,6 +134,9 @@ Its syntax is as follows:
Once invoked, the definition for
.Ar key
is discarded.
+The
+.Ar key
+is not expanded for replacements.
.El
.Sh COMPATIBILITY
This section documents the compatibility of mandoc