unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman.073@student.lu.se>
Cc: Juanma Barranquero <lekktu@gmail.com>,
	"Jan D." <jan.h.d@swipnet.se>, Emacs Devel <emacs-devel@gnu.org>
Subject: Re: AltGr finger twisters documented?
Date: Tue, 05 Jul 2005 19:00:09 +0200	[thread overview]
Message-ID: <42CABC99.50600@student.lu.se> (raw)
In-Reply-To: <42CAB75C.9010208@gnu.org>

Jason Rumney wrote:

> Lennart Borgman wrote:
>
>> Thanks. I then consider the behaviour on w32 to be a bug (if there is 
>> no intention with this behaviour of course). What would other think 
>> of this?
>
>
> Sure it's a bug, but a bug of the OS. Setting w32-recognize-altgr to 
> nil appears to avoid this bug for people who don't need AltGr at all.
>
> The bug is that Windows does not have a separate modifier flag for 
> AltGr, it uses Left-Ctrl + Right-Alt flags to indicate that AltGr is 
> being pressed. So we can't tell that Left-Ctrl is pressed when AltGr 
> is down.
>
> If you can find a proper fix for this bug, we can probably get rid of 
> w32-recognize-altgr.

Have you thought about the possibility to use a low level keyboard hook?

I thought of this as a possibility for leaving the Alt key to windows 
and still have a comfortable Meta key. <lwindow> and <rwindow> could be 
used for that I believe but you must then use a low level keyboard hook. 
The current approach with w32-pass-lwindow-to-system does not work as 
far as I can see. If do

   (setq w32-pass-alt-to-system nil), and then C-h c, <lwindow>, e

I get a Windows Explorer w32 window. Using a low level keyboard hook 
this can be trapped.

However I do not know much about them. Can they be added if the user 
have no privilege? As far as I understand it ought to be decided when 
Emacs has keyboard focus and then it does not have it so that the 
keyboard hook can be added and removed at the right moments. Can 
WM_APPACTIVATE be used for this (or was there some other message)?

Otherwise there does not seem to be needed much code for the keyboard 
hook itself and adding and removing it. And I guess the rest of the code 
already is in Emacs?

  parent reply	other threads:[~2005-07-05 17:00 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-05  9:34 AltGr finger twisters documented? Juanma Barranquero
2005-07-05 10:45 ` Kim F. Storm
2005-07-05 10:55 ` Jan D.
2005-07-05 12:13   ` Mathias Dahl
2005-07-05 13:39     ` Juanma Barranquero
2005-07-05 12:34   ` Lennart Borgman
2005-07-05 14:00     ` Jan D.
2005-07-05 14:05       ` Juanma Barranquero
2005-07-06  0:23       ` YAMAMOTO Mitsuharu
2005-07-06  8:38         ` Jan D.
2005-07-05 12:41   ` Lennart Borgman
2005-07-05 14:03     ` Jan D.
2005-07-05 14:10       ` Juanma Barranquero
2005-07-05 14:55         ` Jan D.
2005-07-05 16:16           ` Lennart Borgman
2005-07-05 16:34             ` Juanma Barranquero
2005-07-05 16:37             ` Jason Rumney
2005-07-05 16:40               ` Juanma Barranquero
2005-07-05 19:30                 ` Jason Rumney
2005-07-05 19:44                   ` Juanma Barranquero
2005-07-05 21:09                     ` Jason Rumney
2005-07-05 17:00               ` Lennart Borgman [this message]
2005-07-05 17:32                 ` Lennart Borgman
2005-07-05 21:21 ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2005-07-05 11:15 LENNART BORGMAN
2005-07-05 11:19 ` Juanma Barranquero
2005-07-05 12:18   ` Jason Rumney
2005-07-05 12:46     ` Lennart Borgman
2005-07-05 13:28       ` Juanma Barranquero
2005-07-05 12:40   ` Lennart Borgman
2005-07-05 11:18 LENNART BORGMAN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42CABC99.50600@student.lu.se \
    --to=lennart.borgman.073@student.lu.se \
    --cc=emacs-devel@gnu.org \
    --cc=jan.h.d@swipnet.se \
    --cc=lekktu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).