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

Bug#1102885: marked as done (XF86VM.3: Some remarks and a patch with editorial changes for this man page)



Your message dated Thu, 06 Nov 2025 11:48:45 +0000
with message-id <E1vGyTt-0067X3-26@fasolo.debian.org>
and subject line Bug#1102885: fixed in libxxf86vm 1:1.1.4-2
has caused the Debian Bug report #1102885,
regarding XF86VM.3: Some remarks and a patch with editorial changes for this man page
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1102885: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1102885
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libxxf86vm-dev
Version: 1:1.1.4-1+b4
Severity: minor
Tags: patch

   * What led up to the situation?

     Checking for defects with a new version

test-[g|n]roff -mandoc -t -K utf8 -rF0 -rHY=0 -rCHECKSTYLE=10 -ww -z < "man page"

  [Use 

grep -n -e ' $' -e '\\~$' -e ' \\f.$' -e ' \\"' <file>

  to find (most) trailing spaces.]

  ["test-groff" is a script in the repository for "groff"; is not shipped]
(local copy and "troff" slightly changed by me).

  [The fate of "test-nroff" was decided in groff bug #55941.]

   * What was the outcome of this action?

an.tmac:<stdin>:442: misuse, warning: .BR is for at least 2 arguments, got 1
	Use macro '.B' for one argument or split argument.

   * What outcome did you expect instead?

     No output (no warnings).

-.-

  General remarks and further material, if a diff-file exist, are in the
attachments.


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.21-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages libxxf86vm-dev depends on:
ii  libx11-dev                               2:1.8.12-1
ii  libxxf86vm1                              1:1.1.4-1+b4
ii  x11proto-dev [x11proto-xf86vidmode-dev]  2024.1-1

libxxf86vm-dev recommends no packages.

libxxf86vm-dev suggests no packages.

-- no debconf information
Input file is XF86VM.3

Output from "mandoc -T lint  XF86VM.3": (shortened list)

      1 input text line longer than 80 bytes: XF86VidModeQueryExte...

-.-.

Output from
test-nroff -mandoc -t -ww -z XF86VM.3: (shortened list)

      1 	Use macro '.B' for one argument or split argument.
      1 .RB is for at least 2 arguments, got 1

-.-.

Change a HYPHEN-MINUS (code 0x2D) to a minus(-dash) (\-),
if it
is in front of a name for an option,
is a symbol for standard input,
is a single character used to indicate an option,
or is in the NAME section (man-pages(7)).
N.B. - (0x2D), processed as a UTF-8 file, is changed to a hyphen
(0x2010, groff \[u2010] or \[hy]) in the output.

259:.ZN -lXxf86vm

-.-.

Add a "\&" (or a comma (Oxford comma)) after an abbreviation
or use English words
(man-pages(7)).
Abbreviation points should be marked as such and protected against being
interpreted as an end of sentence, if they are not, and that independent
of the current place on the line.

291:provided the requested settings are valid (e.g. they don't exceed the
330:If the specified mode can be used by the server (i.e. meets all the

-.-.

Wrong distance (not two spaces) between sentences in the input file.

  Separate the sentences and subordinate clauses; each begins on a new
line.  See man-pages(7) ("Conventions for source file layout") and
"info groff" ("Input Conventions").

  The best procedure is to always start a new sentence on a new line,
at least, if you are typing on a computer.

Remember coding: Only one command ("sentence") on each (logical) line.

E-mail: Easier to quote exactly the relevant lines.

Generally: Easier to edit the sentence.

Patches: Less unaffected text.

Search for two adjacent words is easier, when they belong to the same line,
and the same phrase.

  The amount of space between sentences in the output can then be
controlled with the ".ss" request.

Mark a final abbreviation point as such by suffixing it with "\&".

Some sentences (etc.) do not begin on a new line.

Split (sometimes) lines after a punctuation mark; before a conjunction.

  Lines with only one (or two) space(s) between sentences could be split,
so latter sentences begin on a new line.

Use

#!/usr/bin/sh

sed -e '/^\./n' \
-e 's/\([[:alpha:]]\)\.  */\1.\n/g' $1

to split lines after a sentence period.
Check result with the difference between the formatted outputs.
See also the attachment "general.bugs"

340:video mode. The

-.-.

Split lines longer than 80 characters into two or more lines.
Appropriate break points are the end of a sentence and a subordinate
clause; after punctuation marks.
Add "\:" to split the string for the output, "\<newline>" in the source.  

[List of affected lines removed.]


Line 22, length 611

XF86VidModeQueryExtension, XF86VidModeQueryVersion, XF86VidModeSetClientVersion, XF86VidModeGetModeLine, XF86VidModeGetAllModeLines, XF86VidModeAddModeLine, XF86VidModeDeleteModeLine, XF86VidModeModModeLine, XF86VidModeValidateModeLine, XF86VidModeSwitchMode, XF86VidModeSwitchToMode, XF86VidModeLockModeSwitch, XF86VidModeGetMonitor, XF86VidModeGetViewPort, XF86VidModeSetViewPort, XF86VidModeGetDotClocks, XF86VidModeGetGamma, XF86VidModeSetGamma, XF86VidModeGetGammaRamp, XF86VidModeSetGammaRamp, XF86VidModeGetGammaRampSize, XF86VidModeGetPermissions \- Extension library for the XFree86-VidMode X extension


Longest line is number 22 with 611 characters

-.-.


Split a punctuation mark from a single argument for a two-font macro

355:.RB Note:

-.-.

The name of a man page is typeset in bold and the section in roman
(see man-pages(7)).

424:Xorg(1), xorg.conf(5), XFlush(3), XSetErrorHandler(3), xvidtune(1)

-.-.

Put a parenthetical sentence, phrase on a separate line,
if not part of a code.
See man-pages(7), item "semantic newline".

XF86VM.3:335:invalid (as defined in \fIxf86.h\fP)
XF86VM.3:339:is called, the server will change the video mode to next (or previous)

-.-.

Add lines to use the CR font for groff instead of CW.

.if t \{\
.  ie \\n(.g .ft CR
.  el .ft CW
.\}


12:.ft CW

-.-.

Section headings (.SH and .SS) do not need quoting their arguments.

260:.SS "MODELINE FUNCTIONS"
336:.SS "MODE SWITCH FUNCTIONS"
363:.SS "MONITOR FUNCTIONS"
393:.SS "VIEWPORT FUNCTIONS"
400:.SS "OTHER FUNCTIONS"

-.-.

Output from "test-groff  -mandoc -t -K utf8 -rF0 -rHY=0 -rCHECKSTYLE=10 -ww -z ":

an.tmac:<stdin>:355: misuse, warning: .RB is for at least 2 arguments, got 1
	Use macro '.B' for one argument or split argument.

-.-.

Generally:

Split (sometimes) lines after a punctuation mark; before a conjunction.
--- XF86VM.3	2025-04-12 15:07:24.666154938 +0000
+++ XF86VM.3.new	2025-04-12 15:32:23.501882797 +0000
@@ -9,17 +9,31 @@
 .RS
 .nf
 .sp 1
-.ft CW
+.if t \{\
+.  ie \\n(.g .ft CR
+.  el .ft CW
+.\}
 ..
 .de EE
 .ft
 .sp 1
 .fi
+.if t .ft R
 .RE
 ..
 .TH XF86VIDMODE 3 "libXxf86vm 1.1.4" "X Version 11"
 .SH NAME
-XF86VidModeQueryExtension, XF86VidModeQueryVersion, XF86VidModeSetClientVersion, XF86VidModeGetModeLine, XF86VidModeGetAllModeLines, XF86VidModeAddModeLine, XF86VidModeDeleteModeLine, XF86VidModeModModeLine, XF86VidModeValidateModeLine, XF86VidModeSwitchMode, XF86VidModeSwitchToMode, XF86VidModeLockModeSwitch, XF86VidModeGetMonitor, XF86VidModeGetViewPort, XF86VidModeSetViewPort, XF86VidModeGetDotClocks, XF86VidModeGetGamma, XF86VidModeSetGamma, XF86VidModeGetGammaRamp, XF86VidModeSetGammaRamp, XF86VidModeGetGammaRampSize, XF86VidModeGetPermissions \- Extension library for the XFree86-VidMode X extension
+XF86VidModeQueryExtension, XF86VidModeQueryVersion,
+XF86VidModeSetClientVersion, XF86VidModeGetModeLine,
+XF86VidModeGetAllModeLines, XF86VidModeAddModeLine,
+XF86VidModeDeleteModeLine, XF86VidModeModModeLine,
+XF86VidModeValidateModeLine, XF86VidModeSwitchMode,
+XF86VidModeSwitchToMode, XF86VidModeLockModeSwitch, XF86VidModeGetMonitor,
+XF86VidModeGetViewPort, XF86VidModeSetViewPort, XF86VidModeGetDotClocks,
+XF86VidModeGetGamma, XF86VidModeSetGamma, XF86VidModeGetGammaRamp,
+XF86VidModeSetGammaRamp, XF86VidModeGetGammaRampSize,
+XF86VidModeGetPermissions \- Extension library for the XFree86-VidMode X
+extension
 .SH SYNOPSIS
 .nf
 
@@ -256,8 +270,8 @@ These functions provide an interface to
 which allows the video modes to be
 queried and adjusted dynamically and mode switching to be controlled.
 Applications that use these functions must be linked with
-.ZN -lXxf86vm
-.SS "MODELINE FUNCTIONS"
+.ZN \-lXxf86vm
+.SS MODELINE FUNCTIONS
 The
 .ZN XF86VidModeGetModeLine
 function is used to query the settings for the currently selected
@@ -288,7 +302,7 @@ The first element of the array correspon
 The
 .ZN XF86VidModeModModeLine
 function can be used to change the settings of the current video mode
-provided the requested settings are valid (e.g. they don't exceed the
+provided the requested settings are valid (e.g.\& they don't exceed the
 capabilities of the monitor).
 .PP
 To add a mode to the list of available modes, the
@@ -327,13 +341,13 @@ be deleted.
 The validity of a mode can be checked with the
 .ZN XF86VidModeValidateModeLine
 function.
-If the specified mode can be used by the server (i.e. meets all the
+If the specified mode can be used by the server (i.e.\& meets all the
 constraints placed upon a mode by the combination of the server, card,
 and monitor) the function returns
 .ZN MODE_OK ,
 otherwise it returns a value indicating the reason why the mode is
 invalid (as defined in \fIxf86.h\fP)
-.SS "MODE SWITCH FUNCTIONS"
+.SS MODE SWITCH FUNCTIONS
 When the function
 .ZN XF86VidModeSwitchMode
 is called, the server will change the video mode to next (or previous)
@@ -352,7 +366,7 @@ or
 .ZN XF86VidModeSwitchToMode
 functions or from one of the mode switch key sequences.
 .PP
-.RB Note:
+.BR Note :
 Because of the asynchronous nature of the X protocol, a call to
 .ZN XFlush
 is needed if the application wants to see the mode change immediately.
@@ -360,7 +374,7 @@ To be informed of the execution status o
 custom error handler should be installed using
 .ZN XSetErrorHandler
 before calling the mode switching function.
-.SS "MONITOR FUNCTIONS"
+.SS MONITOR FUNCTIONS
 Information known to the server about the monitor is returned by the
 .ZN XF86VidModeGetMonitor
 function.  The
@@ -390,14 +404,14 @@ and
 .ZN vsync
 fields point to dynamically allocated storage that should be freed
 by the caller.
-.SS "VIEWPORT FUNCTIONS"
+.SS VIEWPORT FUNCTIONS
 The
 .ZN XF86VidModeGetViewPort
 and
 .ZN XF86VidModeSetViewPort
 functions can be used to, respectively, query and change the location
 of the upper left corner of the viewport into the virtual screen.
-.SS "OTHER FUNCTIONS"
+.SS OTHER FUNCTIONS
 The
 .ZN XF86VidModeQueryVersion
 function can be used to determine the version of the extension
@@ -421,6 +435,10 @@ XF86VidModeGetPermissions
 functions need to be documented.  In the meantime, check the source
 code for information about how to use them.
 .SH SEE ALSO
-Xorg(1), xorg.conf(5), XFlush(3), XSetErrorHandler(3), xvidtune(1)
+.BR Xorg (1),
+.BR xorg.conf (5),
+.BR XFlush (3),
+.BR XSetErrorHandler (3),
+.BR xvidtune (1)
 .SH AUTHORS
 Kaleb Keithley, Jon Tombs, David Dawes, and Joe Moss
  Any program (person), that produces man pages, should check the output
for defects by using (both groff and nroff)

[gn]roff -mandoc -t -ww -b -z -K utf8 <man page>

  To find trailing space use

grep -n -e ' $' -e ' \\f.$' -e ' \\"' <man page>

  The same goes for man pages that are used as an input.

  For a style guide use

  mandoc -T lint

-.-

  Any "autogenerator" should check its products with the above mentioned
'groff', 'mandoc', and additionally with 'nroff ...'.

  It should also check its input files for too long (> 80) lines.

  This is just a simple quality control measure.

  The "autogenerator" may have to be corrected to get a better man page,
the source file may, and any additional file may.

  Common defects:

  Not removing trailing spaces (in in- and output).
  The reason for these trailing spaces should be found and eliminated.

  "git" has a "tool" to point out whitespace,
see for example "git-apply(1)" and git-config(1)")

  Not beginning each input sentence on a new line.
Line length and patch size should thus be reduced.

  The script "reportbug" uses 'quoted-printable' encoding when a line is
longer than 1024 characters in an 'ascii' file.

  See man-pages(7), item "semantic newline".

-.-

The difference between the formatted output of the original and patched file
can be seen with:

  nroff -mandoc <file1> > <out1>
  nroff -mandoc <file2> > <out2>
  diff -d -u <out1> <out2>

and for groff, using

\"printf '%s\n%s\n' '.kern 0' '.ss 12 0' | groff -mandoc -Z - \"

instead of 'nroff -mandoc'

  Add the option '-t', if the file contains a table.

  Read the output from 'diff -d -u ...' with 'less -R' or similar.

-.-.

  If 'man' (man-db) is used to check the manual for warnings,
the following must be set:

  The option "-warnings=w"

  The environmental variable:

export MAN_KEEP_STDERR=yes (or any non-empty value)

  or

  (produce only warnings):

export MANROFFOPT="-ww -b -z"

export MAN_KEEP_STDERR=yes (or any non-empty value)

-.-

--- End Message ---
--- Begin Message ---
Source: libxxf86vm
Source-Version: 1:1.1.4-2
Done: Andreas Tille <tille@debian.org>

We believe that the bug you reported is fixed in the latest version of
libxxf86vm, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1102885@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Tille <tille@debian.org> (supplier of updated libxxf86vm package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 06 Nov 2025 07:37:53 +0100
Source: libxxf86vm
Architecture: source
Version: 1:1.1.4-2
Distribution: unstable
Urgency: medium
Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
Changed-By: Andreas Tille <tille@debian.org>
Closes: 1065542 1102885
Changes:
 libxxf86vm (1:1.1.4-2) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Debian Janitor ]
   * Use secure URI in debian/watch.
   * Bump debhelper from deprecated 9 to 13.
     + debian/rules: Drop --fail-missing argument, now the default.
   * Set debhelper-compat version in Build-Depends.
   * Change priority extra to priority optional.
   * Drop unnecessary dependency on dh-autoreconf.
   * Use secure URI in Vcs control header Vcs-Git.
   * Update Vcs-* headers from URL redirect.
   * Use canonical URL in Vcs-Git.
   * Remove field Priority on binary package libxxf86vm1-dbg that duplicates
     source.
   * Remove constraints unnecessary since buster:
     + Build-Depends: Drop versioned constraint on libx11-6, libx11-dev,
       libxext-dev, x11proto-xf86vidmode-dev and xutils-dev.
     + libxxf86vm-dev: Drop versioned constraint on x11proto-xf86vidmode-dev in
       Depends.
     + libxxf86vm-dev: Drop versioned constraint on x11proto-xf86vidmode-dev in
       Replaces.
 .
   [ Timo Aaltonen ]
   * control: Migrate to x11proto-dev.
 .
   [ Bjarni Ingi Gislason ]
   * XF86VM.3: Some editorial changes for this man page (Closes: #1102885)
 .
   [ Andreas Tille ]
   * control: Bump policy to 4.7.2.
   * Add Homepage
   * d/copyright: DEP5
   * d/watch: version=4
   * Rebuild to avoid overly huge ELF segment alignment
     Closes: #1065542
   * Source format: 3.0 (quilt)
   * Remove explicit -dbg package
   * Do not explicitly Build-Depend quilt
   * Build-Depends: pkg-config => pkgconf
   * Remove quilt usage from debian/README.source
Checksums-Sha1:
 f49ec463aaff7ab5030dc75df4a30cbbfa7aff54 2033 libxxf86vm_1.1.4-2.dsc
 acc97f8f84a35be73ee98f586f7ed57d4ce6ab02 10188 libxxf86vm_1.1.4-2.debian.tar.xz
 24012ff783be1288dc7212c7770e8554c54f2fdc 6554 libxxf86vm_1.1.4-2_amd64.buildinfo
Checksums-Sha256:
 9a5cd7d902e445ae2e5ff9e5491a188bf2fff53420ee6e6a49546f697eac9f11 2033 libxxf86vm_1.1.4-2.dsc
 120e8168c269d030d2c02fcaad1ae3b80227df2474289dab6cf2c1c22a1c1983 10188 libxxf86vm_1.1.4-2.debian.tar.xz
 9014d06380c0586f87984fba7821ceb295e10bbaaf7067db5e70997aadd653c7 6554 libxxf86vm_1.1.4-2_amd64.buildinfo
Files:
 15d2aac04b7b8e5c297f02678d387cab 2033 x11 optional libxxf86vm_1.1.4-2.dsc
 662a92f3329d6f6e7a2defcc4a8fd5e5 10188 x11 optional libxxf86vm_1.1.4-2.debian.tar.xz
 c5c3ddd45b7eabc5b96677e95eb2ae14 6554 x11 optional libxxf86vm_1.1.4-2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmkMh/sRHHRpbGxlQGRl
Ymlhbi5vcmcACgkQV4oElNHGRtG9LQ//WW1mhdfv4fX4mlKAg1sIINbAmPPc78UU
67YzrDpzk+NjmHVqQHmLQ/kMDtcjFIUSjL+cozUgQBkzvJ4zjhPve4j1dqyLwacd
YA7IEM0/74vf8AaP+J8Da2pqYPcE5sA3cUsZ91nWVXrh9R0FjTktGVJGy2IOqF+/
uhYzNi7Yi8A+B4RaE0UACcp5NK5HqkwOJ614Oa8pWa79sjLbLgReH327aWf3Ks07
rjaWxF3oItDFgzFfA20Fx0HQh94cZtP6I1v6541COL9K4c4xZwxb1cgfIpzzWvGl
zBM9DIP5svDrUPEaj+3rUG/hcAcPBo9WdtnY3RI4vcLy9U/udPPVXGgcwd7rg2dn
2TbvHkB5v1AbZSFpJj4sFPx/mihrOTH7lzQ33mKLfm7fecwUI9vexFQwtJ7MUvD7
rPqzG1/Fl0VHS+xXRSS4b6v1Xr9018aIVX36UE3h8ZnwqOOzCpx0GHxNePykGcrS
kAIGipHUiYUUhCfDALb0N6g5ndOB/09LgWzhvRyfSAK+elHcdpOxLza8ioo3vnEz
5J4jMDsaWDDcBCX/jGPGeW+4VxPVqshhdorRhBTqXWUFuY00egp2Lnd4fTXLroQj
lWRBheVZCyj3ZoYMhrYQfPathwMz8E8X/XiD45FH1RaKhSwPfeVAz+FtV9TlAies
7LXIEgQGRZ8=
=XCQk
-----END PGP SIGNATURE-----

Attachment: pgp1jR9DiSZfl.pgp
Description: PGP signature


--- End Message ---

Reply to: