After I couldn't resolve the keyboard issue I reinstalled an old
binary version from the Arch archives but I've now
downloaded the Emacs source files and tried to apply the patch
in that
local directory. However, I get the error
message:
[alex@Archlaptop emacs]$ git apply -
diff --git a/src/xterm.c b/src/xterm.c
index 6a1642ff56e..a199bae9f16 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -23886,6 +23886,9 @@ handle_one_xevent (struct
x_display_info
*dpyinfo,
if (!XkbTranslateKeyCode (dpyinfo->xkb_desc,
keycode,
xkb_state, &mods_rtrn,
&keysym))
goto XI_OTHER;
+
+ fprintf (stderr, "keycode: %d, keysym: %d,
%u\n",
keycode,
+ (int) keysym, state);
}
else
{
error: patch failed: src/xterm.c:23886
error: src/xterm.c: patch does not apply
I tried again after compiling Emacs with make and got the same
error. I didn't install that Emacs version though so not
to overwrite my current one. If necessary I can install a
source-compiled Emacs version on another system though, but I
wanted to ask before if that might be useful.
Po Lu [2023-08-17 Thu 12:41] wrote:
Alexander Prähauser <alexander.praehauser@gmx.at> writes:
It says
error: src/xterm.c: No such file or directory
I also can't find xterm.c on my system, though I have xterm
installed.
Did you run that within the Git repository where your Emacs
checkout
resides?
src/xterm.c is an Emacs source file.