bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

x-backspace-delete-keys-p


From: Gabor Melis
Subject: x-backspace-delete-keys-p
Date: Tue, 1 Feb 2005 11:43:43 +0100
User-agent: KMail/1.7.1

I have a funky keyboard layout (mimicking a lisp machine keyboard) where 
backspace is mapped onto the caps lock key and nothing is on the backspace 
key. With this layout the x-backspace-delete-keys-p function (in xfns.c) 
returns false which causes normal-erase-is-backspace-mode not to be turned on 
by default.

Looking at the code, it seems that x-backspace-delete-keys-p checks whether 
the keyboard has a delete and backspace key and XK_Delete/XK_Backspace is 
mapped onto them. I don't know much about other keyboards but checking only 
whether XK_Delete/XK_Backspace is mapped to a keycode that belongs to _any_ 
key in the current keyboard sounds enough. In other words, checking for 
DELE/BKSP keys is unnecessary.

Cheers, Gábor Melis




reply via email to

[Prev in Thread] Current Thread [Next in Thread]