aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-11-30 02:36:38 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-11-30 02:36:38 +0000
commit09af02110fb2332decede6c59de9e177433c15d7 (patch)
tree5c9e42c7d9eb47c69177aeb4177861bba1945485 /mandoc.1
parent929d6892d847e3b8dbd10eb1d45d0699169185ad (diff)
downloadmandoc-09af02110fb2332decede6c59de9e177433c15d7.tar.gz
mandoc-09af02110fb2332decede6c59de9e177433c15d7.tar.zst
mandoc-09af02110fb2332decede6c59de9e177433c15d7.zip
warn about attempts to call non-callable macros;
inspired by a similar warning in the groff_mdoc(7) macros
Diffstat (limited to 'mandoc.1')
-rw-r--r--mandoc.111
1 files changed, 9 insertions, 2 deletions
diff --git a/mandoc.1 b/mandoc.1
index 9f2d6ba7..7f8b9863 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -1,4 +1,4 @@
-.\" $Id: mandoc.1,v 1.125 2014/11/28 18:09:01 schwarze Exp $
+.\" $Id: mandoc.1,v 1.126 2014/11/30 02:36:38 schwarze Exp $
.\"
.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2012, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -15,7 +15,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: November 28 2014 $
+.Dd $Mdocdate: November 30 2014 $
.Dt MANDOC 1
.Os
.Sh NAME
@@ -803,6 +803,13 @@ Probably, there are author names lacking markup.
See the
.Xr mdoc 7
manual for replacements.
+.It Sy "macro neither callable nor escaped"
+.Pq mdoc
+The name of a macro that is not callable appears on a macro line.
+It is printed verbatim.
+If the intention is to call it, move it to its own line;
+otherwise, escape it by prepending
+.Sq \e& .
.It Sy "skipping paragraph macro"
In
.Xr mdoc 7