From 09336076bd73d344f914504bab80f25528619f1c Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 10 Jun 2020 01:06:19 -0700 Subject: doc: new >< operator. * txr.1: Implementing new >< operator in the getm macro syntax. >< foo x bar renders as x 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. --- txr.1 | 28 +++++++++++++++++++++++----- 1 file 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 ]]) -- cgit v1.2.3