docs: Use @kbd correctly in ignored sections
Even when @kbd{} is not going to be rendered, it is worth spelling it
without a bogus space.
* doc/m4.texi (Improved foreach, Improved copy): Fix spacing.
* checks/get-them: Tighten regex for kbd lines.
diff --git a/checks/get-them b/checks/get-them
index 9028a6e..5848db5 100755
--- a/checks/get-them
+++ b/checks/get-them
@@ -116,7 +116,7 @@
}
if ($0 ~ /^\^D$/)
next;
- if ($0 ~ /^\$ @kbd/)
+ if ($0 ~ /^\$ @kbd\{/)
next;
if ($0 ~ /^@result\{\}/ || $0 ~ /^@error\{\}/)
prefix = "dnl ";
diff --git a/doc/m4.texi b/doc/m4.texi
index baa3374..fdd2f26 100644
--- a/doc/m4.texi
+++ b/doc/m4.texi
@@ -9318,7 +9318,7 @@
@comment examples
@comment options: -Dlimit=10 -Dverbose
@example
-$ @kbd {m4 -I examples -Dlimit=10 -Dverbose}
+$ @kbd{m4 -I examples -Dlimit=10 -Dverbose}
include(`loop.m4')dnl
@result{} 1 2 3 4 5 6 7 8 9 10
@end example
@@ -9326,14 +9326,14 @@
@comment examples
@comment options: -Dlimit=2500
@example
-$ @kbd {m4 -I examples -Dlimit=2500}
+$ @kbd{m4 -I examples -Dlimit=2500}
include(`loop.m4')dnl
@end example
@comment examples
@comment options: -Dlimit=10000
@example
-$ @kbd {m4 -I examples -Dlimit=10000}
+$ @kbd{m4 -I examples -Dlimit=10000}
define(`debug', `define(`popdef',`divert`'i')')
@result{}
include(`loop.m4')dnl
@@ -9345,7 +9345,7 @@
@comment examples
@comment options: -Dlimit=10 -Dverbose -Dalt
@example
-$ @kbd {m4 -I examples -Dlimit=10 -Dverbose -Dalt}
+$ @kbd{m4 -I examples -Dlimit=10 -Dverbose -Dalt}
include(`loop.m4')dnl
@result{} 1 2 3 4 5 6 7 8 9 10
@end example
@@ -9353,14 +9353,14 @@
@comment examples
@comment options: -Dlimit=2500 -Dalt
@example
-$ @kbd {m4 -I examples -Dlimit=2500 -Dalt}
+$ @kbd{m4 -I examples -Dlimit=2500 -Dalt}
include(`loop.m4')dnl
@end example
@comment examples
@comment options: -Dlimit=10000 -Dalt
@example
-$ @kbd {m4 -I examples -Dlimit=10000 -Dalt}
+$ @kbd{m4 -I examples -Dlimit=10000 -Dalt}
define(`debug', `define(`popdef',`divert`'i')')
@result{}
include(`loop.m4')dnl
@@ -9372,7 +9372,7 @@
@comment examples
@comment options: -Dlimit=10 -Dverbose -Dalt=4
@example
-$ @kbd {m4 -I examples -Dlimit=10 -Dverbose -Dalt=4}
+$ @kbd{m4 -I examples -Dlimit=10 -Dverbose -Dalt=4}
include(`loop.m4')dnl
@result{} 1 2 3 4 5 6 7 8 9 10
@end example
@@ -9380,14 +9380,14 @@
@comment examples
@comment options: -Dlimit=2500 -Dalt=4
@example
-$ @kbd {m4 -I examples -Dlimit=2500 -Dalt=4}
+$ @kbd{m4 -I examples -Dlimit=2500 -Dalt=4}
include(`loop.m4')dnl
@end example
@comment examples
@comment options: -Dlimit=10000 -Dalt=4
@example
-$ @kbd {m4 -I examples -Dlimit=10000 -Dalt=4}
+$ @kbd{m4 -I examples -Dlimit=10000 -Dalt=4}
define(`foo', `divert`'len(popdef(`_foreachq')_foreachq($@@))')dnl
define(`debug', `pushdef(`_foreachq', defn(`foo'))')
@result{}
@@ -9496,7 +9496,7 @@
@comment examples
@example
-$ @kbd {m4 -I examples}
+$ @kbd{m4 -I examples}
include(`forloop3.m4')include(`stack_sep.m4')dnl
forloop(`i', `1', `10000', `pushdef(`s', i)')
@result{}