summaryrefslogtreecommitdiff
path: root/man/groff_diff.man
diff options
context:
space:
mode:
authorwl <wl>2006-04-04 20:20:03 +0000
committerwl <wl>2006-04-04 20:20:03 +0000
commitdbc2938995b9724fb06930dcd7f4b4af833793bf (patch)
treee0b0a8988ac64baf2a07d2e8451293596e3e604c /man/groff_diff.man
parent8de88e49f386e53ed293ee62a48d66fd8c67ccbe (diff)
downloadgroff-dbc2938995b9724fb06930dcd7f4b4af833793bf.tar.gz
Implement new number register `.br' which is set to 1 if a macro has
been called as .foo and to 0 if called as 'bar. This is useful for -mtrace so that requests can be reliably traced too. * src/roff/troff/input.cpp (input_iterator): Add virtual function `get_break_flag'. (macro_iterator): Add `with_break' member and `get_break_flag' function. Update constructors. (input_stack): Add function `get_break_flag'. (break_flag_reg): New number register class. (input_init_requests): Register `.br'. * src/roff/troff/TODO: Updated. * tmac/trace.tmac: s/!!sp/!!!sp/. Modify definitions of `de', `de1', `am', and `am1' to use \n[.br]. * docs/groff.texinfo, man/groff.man, man/groff_diff.man, NEWS: Document it.
Diffstat (limited to 'man/groff_diff.man')
-rw-r--r--man/groff_diff.man27
1 files changed, 26 insertions, 1 deletions
diff --git a/man/groff_diff.man b/man/groff_diff.man
index e160a860..a33710fe 100644
--- a/man/groff_diff.man
+++ b/man/groff_diff.man
@@ -3,7 +3,7 @@
.ig
groff_diff.man
-Last update : 27 Mar 2006
+Last update : 04 Apr 2006
This file is part of groff, the GNU roff type-setting system.
It is the source of the man-page groff_diff(7).
@@ -2607,6 +2607,31 @@ sets tabs every half an inch.
The following read-only registers are available:
.
.TP
+.B \[rs]n[.br]
+Within a macro call, it is set to\~1 if the macro is called with the
+`normal' control character (`.' by default), and set to\~0 otherwise.
+This allows to reliably modify requests.
+.
+.RS
+.IP
+.ne 6v+\n(.Vu
+.ft CB
+.nf
+.Text .als bp*orig bp
+.Text .de bp
+.Text .tm before bp
+.Text .ie \[rs]\[rs]n[.br] .bp*orig
+.Text .el 'bp*orig
+.Text .tm after bp
+.Text ..
+.fi
+.RE
+.
+.IP
+Using this register outside of a macro makes no sense (it always returns
+zero in such cases).
+.
+.TP
.B \[rs]n[.C]
1\~if compatibility mode is in effect, 0\~otherwise.
.