summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-06-10 01:06:19 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-06-10 01:06:19 -0700
commit09336076bd73d344f914504bab80f25528619f1c (patch)
treee4e8bf9d2efab43e554a9cac44ee85f1f0175775 /txr.1
parent939d1f213ac097140aa5796b6c06ccbeb1009e5f (diff)
downloadtxr-09336076bd73d344f914504bab80f25528619f1c.tar.gz
txr-09336076bd73d344f914504bab80f25528619f1c.tar.bz2
txr-09336076bd73d344f914504bab80f25528619f1c.zip
doc: new >< operator.
* txr.1: Implementing new >< operator in the getm macro syntax. >< foo x bar renders as <foo>x<bar> in the nroff-ed man output; in HTML and PDF, foo and bar are italicized. This is put to use in the Built-In Syntactic Places section to correct the formatting of struct-obj.slot-name.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.128
1 files changed, 23 insertions, 5 deletions
diff --git a/txr.1 b/txr.1
index fd46ac8f..8d30662c 100644
--- a/txr.1
+++ b/txr.1
@@ -183,8 +183,17 @@
. shift
. \}
. el \{\
-. as s \\$1
-. shift
+. ie "\\$1"><" \{\
+. shift
+. as s \fI<\\$1>\fP\\$2\fI<\\$3>\fP
+. shift
+. shift
+. shift
+. \}
+. el \{\
+. as s \\$1
+. shift
+. \}
. \}
. \}
. \}
@@ -224,8 +233,17 @@
. shift
. \}
. el \{\
-. as s \\$1
-. shift
+. ie "\\$1"><" \{\
+. shift
+. as s \\f5\\$1\\f4\\$2\f5\\$3\\f4
+. shift
+. shift
+. shift
+. \}
+. el \{\
+. as s \\$1
+. shift
+. \}
. \}
. \}
. \}
@@ -13031,7 +13049,7 @@ defined by \*(TX programs.
.mets (errno)
.mets (slot < struct-obj << slot-name-valued-form )
.mets (qref < struct-obj << slot-name ) ;; by macro-expansion to (slot ...)
-.mets < struct-obj . < slot-name ;; equivalent to qref
+.mets >< struct-obj . slot-name ;; equivalent to qref
.mets (sock-peer << socket )
.mets (carray-sub < carray >> [ from <> [ to ]])
.mets (sub-buf < buf >> [ from <> [ to ]])