groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 15/35: [docs]: Clarify negative assignments to registers.


From: G. Branden Robinson
Subject: [groff] 15/35: [docs]: Clarify negative assignments to registers.
Date: Tue, 21 Jun 2022 14:26:29 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 7755eb120de4594ebd4632c3191ef71fe8050ad9
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Mon Jun 20 11:23:27 2022 -0500

    [docs]: Clarify negative assignments to registers.
    
    (attempt M of N)  Per discussion with Dave Kemper.
---
 doc/groff.texi  | 6 +++---
 man/groff.7.man | 3 ++-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/doc/groff.texi b/doc/groff.texi
index 332e945f..dedc5d8c 100644
--- a/doc/groff.texi
+++ b/doc/groff.texi
@@ -7120,9 +7120,9 @@ Increment (decrement) register @var{ident} by @var{value}.
 A leading minus sign in @var{value} is always interpreted as a
 decrementation operator, not an algebraic sign.  To assign a register a
 negative value or the negated value of another register, you can
-force GNU @code{troff} to interpret @code{-} as a negation or minus,
-rather than decrementation, operator: enclose it with its operand(s) in
-parentheses.
+force GNU @code{troff} to interpret @samp{-} as a negation or minus,
+rather than decrementation, operator: enclose it with its operand in
+parentheses or subtract it from zero.
 
 @Example
 .nr a 7
diff --git a/man/groff.7.man b/man/groff.7.man
index 92b48123..e1c1e413 100644
--- a/man/groff.7.man
+++ b/man/groff.7.man
@@ -1470,7 +1470,8 @@ To assign a register a negative value or the negated 
value of another
 register,
 enclose
 .squoted_char \-
-with its operand(s) in parentheses.
+enclose it with its operand in
+parentheses or subtract it from zero.
 .
 If a prior value does not exist
 (the register was undefined),



reply via email to

[Prev in Thread] Current Thread [Next in Thread]