Eli Zaretskii wrote:
I cannot do anything about your beliefs. I wrote about the caveats
because my experience taught me that low-level keyboard hooks bring
maintenance headaches in the long run.
Of course you have more experience with this.
For example, even the simple hook you posted could conceivably raise
some issues, if the user did some tweaking of her keyboard operation
wrt the lwindow key (e.g., the scan code map can be modified via the
registry).
I never seen this possibility to enter the scan code before. From the
documentation I read that this is new inW2k and XP. I also read that
"the mappings stored in the registry work at system level and apply to
all users. These mappings cannot be set to work differently depending on
the current user".
As far as understand this is not something you then can use for problems
specific to Emacs.
And - or do I misunderstand this - more important: what you refer to are
remapping the *scan codes* and my code used the *virtual keycodes*. That
is what is used in Emacs today.
On more general grounds, when Emacs users on other systems complain
about trouble with key assignments, they are told to use system tools
to reassign keys; we never try to solve such problems in Emacs. Why
do that for MS-Windows? Shouldn't we simply advise users to use some
key remapping tool if they want this feature so badly?
Perhaps, but is not that on another level? Are we not adressing issues
within Emacs and how Emacs interacts with the system?
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel