bug-ncurses
[Top][All Lists]
Advanced

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

[PATCH 2/8] man/curs_trace.3x: Restore previous adjustment instead of fo


From: G. Branden Robinson
Subject: [PATCH 2/8] man/curs_trace.3x: Restore previous adjustment instead of forcing it on.
Date: Sun, 25 Feb 2024 01:22:19 -0600

Introduce new macros `dS` and `dE` (for "display start" and "display
end") to manage this.

(dS): Store in register `aD` the value of the read-only adjustment mode
register `.j`, which is documented in CSTR #54 (1992 revision) and
should be portable to all device-independent *roffs (and mandoc(1)).
Turn adjustment off.

(dE): Restore saved value of adjustment mode from register `aD` and
remove the register.

Also see
<https://lists.gnu.org/archive/html/bug-ncurses/2023-09/msg00017.html>.

Fixes:
@@ -16671,3 +16673,3 @@
-       The command‐line utilities such as tic(1) provide a verbose option which
-       extends the set of messages written using the curses_trace function.
-       Both of these (-v and curses_trace) use the same variable (_nc_tracing),
+       The  command‐line utilities such as tic(1) provide a verbose option 
which
+       extends the set of messages  written  using  the  curses_trace  
function.
+       Both  of these (-v and curses_trace) use the same variable 
(_nc_tracing),
@@ -16677 +16679 @@
-       as setupterm, tgetent or use_extended_names, some of their debugging
+       as setupterm, tgetent or  use_extended_names,  some  of  their  
debugging
---
 man/curs_trace.3x | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/man/curs_trace.3x b/man/curs_trace.3x
index f2a737cbc..a0cd79ffe 100644
--- a/man/curs_trace.3x
+++ b/man/curs_trace.3x
@@ -44,6 +44,17 @@
 .ie n  .IP \(bu 4
 .el    .IP \(bu 2
 ..
+.
+.de dS \" Start unfilled display.
+.nr aD \n(.j
+.na
+..
+.
+.de dE \" End unfilled display.
+.ad \n(.j
+.rr aD
+..
+.
 .SH NAME
 \fB\%curses_trace\fP,
 \fB\%trace\fP,
@@ -198,6 +209,8 @@ .SS Initialization
 .RS 4
 .na
 .PP
+.dS
+.RS 4
 \fB\%filter\fP,
 \fB\%initscr\fP,
 \fB\%new_prescr\fP,
@@ -212,7 +225,7 @@ .SS Initialization
 \fB\%use_extended_names\fP,
 \fB\%use_tioctl\fP
 .RE
-.ad
+.dE
 .SS "Command-line Utilities"
 The command-line utilities such as \fBtic\fP(1) provide a verbose option
 which extends the set of messages written using the \fBcurses_trace\fP 
function.
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

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