gbranden pushed a commit to branch master
in repository groff.
commit 4c41b1c4aafe0056b411d7e21aa3544d07284215
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Jul 25 00:39:25 2025 -0500
Revert "[man]: Add `mN` register."
This reverts commit 148eaa36d54fb98a9a82d14732f33f7cc958b9a1.
We don't need it now that font style selection macros don't cause
paragraph resets.
---
ChangeLog | 12 ------------
tmac/an-ext.tmac | 5 +----
tmac/an.tmac | 2 --
3 files changed, 1 insertion(+), 18 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index aa606a4ad..3fe2b326a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -174,18 +174,6 @@
* tmac/groff_man.7.man.in (Paragraphing macros): Document
paragraphing macros' restoration of configured hyphenation mode.
-2025-07-20 G. Branden Robinson <[email protected]>
-
- [man]: Add `mN` register to track whether we're setting a
- synopsis, because that status overrides some formatting choices.
-
- * tmac/an-ext.tmac: Define the register as off/false by default.
- (SY): Make it true.
- (YS): Make it false.
- * tmac/an.tmac (an*reset-hyphenation-mode): Disable automatic
- hyphenation in synopses regardless of document or user
- preference configuration.
-
2025-07-15 G. Branden Robinson <[email protected]>
* tmac/an.tmac: Refactor to simplify.
diff --git a/tmac/an-ext.tmac b/tmac/an-ext.tmac
index c683eb197..32c1fb029 100644
--- a/tmac/an-ext.tmac
+++ b/tmac/an-ext.tmac
@@ -1,6 +1,6 @@
.\" groff extension macros for man(7) package
.\"
-.\" Copyright (C) 2007-2025 Free Software Foundation, Inc.
+.\" Copyright (C) 2007-2024 Free Software Foundation, Inc.
.\"
.\" Written by Eric S. Raymond <[email protected]>
.\" Werner Lemberg <[email protected]>
@@ -51,7 +51,6 @@
. do nr mH \\n[.hy] \" groff extension register
..
.
-.nr mN 0 \" in a synopsis (SY/YS)?
.nr mS 0 \" reuse indentation of previous synopsis?
.nr mE 0 \" in an example (EX/EE)?
.
@@ -60,7 +59,6 @@
.\" .SY keyword [punctuation]
.de SY
. ie \\n(.$ \{\
-. nr mN 1
. if !\\n(mS \{\
. nr mI \\n(.i
. nr mT \\n(.k+\w'\fB\\$1\fP'
@@ -104,7 +102,6 @@
.\" reuses the indentation computed for the one ended by this call.
.\" .YS [argument]
.de YS
-. nr mN 0
. in \\n(mIu
. ad \\n(mA
. hy \\n(mH
diff --git a/tmac/an.tmac b/tmac/an.tmac
index 0a7326a42..7956a7ed1 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -143,8 +143,6 @@
.de an*reset-hyphenation-mode
. nr an*want-hyphenation 1
. if r HY .if !\\n[HY] .nr an*want-hyphenation 0
-. \" We don't want automatic hyphenation in synopses; see an-ext.tmac.
-. if r mN .if \\n[mN] .nr an*want-hyphenation 0
. ie \\n[an*want-hyphenation] \
. nr an*hyphenation-mode \\n[\\*[locale]*hyphenation-mode-trap]
. el .nr an*hyphenation-mode 0
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit