gbranden pushed a commit to branch master
in repository groff.
commit 5a8393dae823009f3b663caf1af05dcabf9e0dae
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun May 4 07:36:24 2025 -0500
[doc,man/*]: Clarify behavior of `als` request.
The check for _existing-name_ occurs before _new-name_ is (re)populated,
so this request is not a destructive act if it would fail anyway.
Sync text; parallelize request description between groff(7) and
groff_diff(7) (and our Texinfo manual).
---
doc/groff.texi.in | 8 ++++----
man/groff.7.man | 9 +++++++++
man/groff_diff.7.man | 10 +++++-----
3 files changed, 18 insertions(+), 9 deletions(-)
diff --git a/doc/groff.texi.in b/doc/groff.texi.in
index 32da86fc5..7f7e94043 100644
--- a/doc/groff.texi.in
+++ b/doc/groff.texi.in
@@ -13285,10 +13285,6 @@ or diversion
@var{existing-name},
causing the names to refer to the same stored object.
If
-@var{new-name}
-already exists,
-its contents are lost unless already aliased.
-If
@var{existing-name}
is undefined,
GNU
@@ -13296,6 +13292,10 @@ GNU
produces a warning in category
@samp{mac}
and ignores the request.
+If
+@var{new-name}
+already exists,
+its contents are lost unless already aliased.
@xref{Warnings},
regarding the enablement and suppression of warnings.
diff --git a/man/groff.7.man b/man/groff.7.man
index a4ca70be2..605f81914 100644
--- a/man/groff.7.man
+++ b/man/groff.7.man
@@ -2582,6 +2582,15 @@ or diversion
.IR existing-name .
.
If
+.I existing-name
+is undefined,
+GNU
+.I troff \" GNU
+produces a warning in category
+.RB \[lq] mac \[rq]
+and ignores the request.
+.
+If
.I new-name
already exists,
its definition is lost unless already aliased.
diff --git a/man/groff_diff.7.man b/man/groff_diff.7.man
index 6966f5322..33c440c61 100644
--- a/man/groff_diff.7.man
+++ b/man/groff_diff.7.man
@@ -1677,11 +1677,6 @@ or diversion
causing the names to refer to the same stored object.
.
If
-.I new-name
-already exists,
-its contents are lost unless already aliased.
-.
-If
.I existing-name
is undefined,
GNU
@@ -1690,6 +1685,11 @@ produces a warning in category
.RB \[lq] mac \[rq]
and ignores the request.
.
+If
+.I new-name
+already exists,
+its contents are lost unless already aliased.
+.
See section \[lq]Warnings\[rq] of
.MR @g@groff 1
regarding the enablement and suppression of warnings.
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit