all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* x-backspace-delete-keys-p
@ 2005-02-01 10:43 Gabor Melis
  0 siblings, 0 replies; only message in thread
From: Gabor Melis @ 2005-02-01 10:43 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-01 10:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-01 10:43 x-backspace-delete-keys-p Gabor Melis

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.