diff --git a/specs/XKB/ch01.xml b/specs/XKB/ch01.xml
index 86db1919..a045e381 100644
--- a/specs/XKB/ch01.xml
+++ b/specs/XKB/ch01.xml
@@ -308,9 +308,9 @@ configuration.
The Xkb extension adds a single protocol error,
-BadKeyboard,
+BadKeyboard,
to the core protocol error set. See section 2.6 for a discussion of the
-BadKeyboard
+BadKeyboard
protocol error.
@@ -387,7 +387,7 @@ generated.
Status
- BadAccess
+ BadAccess
diff --git a/specs/XKB/ch02.xml b/specs/XKB/ch02.xml
index 7d880921..4507714c 100644
--- a/specs/XKB/ch02.xml
+++ b/specs/XKB/ch02.xml
@@ -458,7 +458,7 @@ The possible values for
-XkbOD_BadLibraryVersion
+XkbOD_BadLibraryVersion
indicates
XkbLibraryVersion
returned
@@ -467,25 +467,25 @@ returned
-XkbOD_ConnectionRefused
+XkbOD_ConnectionRefused
indicates the display could not be opened.
-XkbOD_BadServerVersion
+XkbOD_BadServerVersion
indicates the library and the server have incompatible extension versions.
-XkbOD_NonXkbServer
+XkbOD_NonXkbServer
indicates the extension is not present in the X server.
-XkbOD_Success
+XkbOD_Success
indicates that the function succeeded.
@@ -562,9 +562,9 @@ use Xkb on a connection for which it is disabled.
Many of the Xkb extension library functions described in this document can
cause the X server to report an error, referred to in this document as a
-BadXxx
+BadXxx
protocol error, where
-Xxx
+Xxx
is some name. These errors are fielded in the normal manner, by the default
Xlib error handler or one replacing it. Note that X protocol errors are not
necessarily reported immediately because of the buffering of X protocol
@@ -590,7 +590,7 @@ lists the protocol errors that can be generated, and their causes.
- BadAccess
+ BadAccess
The Xkb extension has not been properly initialized
@@ -598,7 +598,7 @@ The Xkb extension has not been properly initialized
- BadKeyboard
+ BadKeyboard
The device specified was not a valid core or input extension device
@@ -606,7 +606,7 @@ The device specified was not a valid core or input extension device
- BadImplementation
+ BadImplementation
Invalid reply from server
@@ -614,7 +614,7 @@ Invalid reply from server
- BadAlloc
+ BadAlloc
Unable to allocate storage
@@ -622,7 +622,7 @@ Unable to allocate storage
- BadMatch
+ BadMatch
A compatible version of Xkb was not available in the server or an argument has
@@ -631,7 +631,7 @@ correct type and range, but is otherwise invalid
- BadValue
+ BadValue
An argument is out of range
@@ -639,7 +639,7 @@ An argument is out of range
- BadAtom
+ BadAtom
A name is neither a valid Atom or
@@ -648,7 +648,7 @@ A name is neither a valid Atom or
- BadDevice
+ BadDevice
Device, Feedback Class, or Feedback ID invalid
@@ -661,13 +661,13 @@ Device, Feedback Class, or Feedback ID invalid
The Xkb extension adds a single protocol error,
-BadKeyboard,
+BadKeyboard,
to the core protocol error set. This error code will be reported as the
error_rtrn
when
XkbQueryExtension
is called. When a
-BadKeyboard
+BadKeyboard
error is reported in an
XErrorEvent,
additional information is reported in the
@@ -681,7 +681,7 @@ the table.
-BadKeyboard Protocol Error resource_id Values
+BadKeyboard Protocol Error resource_id Values
@@ -698,7 +698,7 @@ the table.
- XkbErr_BadDevice
+ XkbErr_BadDevice0xff
@@ -708,7 +708,7 @@ device not found
device ID
- XkbErr_BadClass
+ XkbErr_BadClass0xfe
@@ -718,7 +718,7 @@ device found, but it is of the wrong class
class ID
- XkbErr_BadId
+ XkbErr_BadId0xfd
diff --git a/specs/XKB/ch08.xml b/specs/XKB/ch08.xml
index 61c59bbc..024273d5 100644
--- a/specs/XKB/ch08.xml
+++ b/specs/XKB/ch08.xml
@@ -2061,8 +2061,8 @@ The
Success.
If
XkbAllocIndicatorMaps
- was unable to allocate the indicators record, it reports a Bad
-Alloc
+ was unable to allocate the indicators record, it reports a
+BadAlloc
error.
diff --git a/specs/XKB/ch15.xml b/specs/XKB/ch15.xml
index 2fa49871..183d49d5 100644
--- a/specs/XKB/ch15.xml
+++ b/specs/XKB/ch15.xml
@@ -2364,8 +2364,8 @@ If the
or it does not contain a valid client map),
XkbChangeTypesOfKey
returns
-Bad
-Match. If the
+BadMatch.
+If the
key
is not a valid keycode,
n_groups
diff --git a/specs/XKB/ch21.xml b/specs/XKB/ch21.xml
index cdf9581b..63d7add5 100644
--- a/specs/XKB/ch21.xml
+++ b/specs/XKB/ch21.xml
@@ -144,8 +144,7 @@ keyboard feedback and the core indicator feedback may be obtained by calling
If the server does not allow Xkb access to input extension
KeyClass
devices, attempts to use Xkb requests with those devices fail with a
-Bad
-Keyboard
+BadKeyboard
error. Attempts to access non-
KeyClass
input extension devices via XkbGetDeviceInfo and XkbSetDeviceInfo fail
@@ -737,15 +736,16 @@ If allocation errors occur, a
device_info
->
device_spec
-) is invalid, a BadKeyboard status is returned. If the device has no buttons, a
-Bad
-Match
+) is invalid, a
+BadKeyboard
+ status is returned. If the device has no buttons, a
+BadMatch
status is returned. If
first_button
and
num_buttons
- specify illegal buttons, a Bad
-Value
+ specify illegal buttons, a
+BadValue
status is returned.
@@ -932,16 +932,19 @@ extension has not been properly initialized,
XkbGetDeviceLedInfo
returns
BadAccess.
-If allocation errors occur, a BadAlloc status is returned. If the device has
-no indicators, a BadMatch error is returned. If
+If allocation errors occur, a
+BadAlloc
+status is returned. If the device has no indicators, a
+BadMatch
+error is returned. If
ledClass
or
ledID
- have illegal values, a Bad
-Value
+ have illegal values, a
+BadValue
error is returned. If they have legal values but do not specify a feedback
-that contains LEDs and is associated with the specified device, a Bad
-Match
+that contains LEDs and is associated with the specified device, a
+BadMatch
error is returned.
@@ -1242,8 +1245,9 @@ To allocate additional space for button actions in an
btn_acts
is set to
NULL.
-If device_info is invalid or new_total is greater than 255, BadValue is
-returned. If a memory allocation failure occurs, a
+If device_info is invalid or new_total is greater than 255,
+BadValue
+ is returned. If a memory allocation failure occurs, a
BadAlloc
is returned.
@@ -1723,7 +1727,8 @@ If the actual request sent to the server involved illegal button numbers, a
protocol error is generated. If an invalid device identifier is specified in
device_info->
device_spec,
-a BadKeyboard protocol error results. If the actual device specified in
+a BadKeyboard
+ protocol error results. If the actual device specified in
device_info
->
device_spec