summaryrefslogtreecommitdiffstats
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
commit984843a13d3cf51a40ccae5218578c091429a4a1 (patch)
treec55ca04a57d55be10a60c7b52bc9f27ae53dd7a5 /eqn.7
parent5777d1fb503dd116e90a489fa562f0a89752541c (diff)
downloadmandoc-984843a13d3cf51a40ccae5218578c091429a4a1.tar.gz
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.713
1 files changed, 13 insertions, 0 deletions
diff --git a/eqn.7 b/eqn.7
index 478f890f..c11e7b14 100644
--- a/eqn.7
+++ b/eqn.7
@@ -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