From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Xah <xahlee@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Behavior of M-x and A-x
Date: Tue, 12 Aug 2008 14:13:11 +0200 [thread overview]
Message-ID: <48A17E57.7090504@gmail.com> (raw)
In-Reply-To: <857a6a64-0971-495b-aad8-1c069405e13e@i20g2000prf.googlegroups.com>
Xah wrote:
> Xah wrote:
>> ; setting the PC keyboard's various keys to Super or Hyper
>> (setq w32-pass-lwindow-to-system nil
>> w32-pass-rwindow-to-system nil
>> w32-pass-apps-to-system nil
>> w32-lwindow-modifier 'super ;; Left Windows key
>> w32-rwindow-modifier 'super ;; Right Windows key
>> w32-apps-modifier 'hyper) ;; Menu key
>
> Lennart Borgman wrote:
>
>> Please note that using lwindow/rwindow like this does not work for all
>> key sequences unless you are using the patched Emacs+EmacsW32.
>
> What is the proper way to set it on Windows?
The only thing that the patched version really offers in this regards is
the possibility to actually avoid sending lwindow etc to the system:
LRESULT
CALLBACK
LowLevelKeyboardProc(INT nCode, WPARAM wParam, LPARAM lParam)
{
...
case VK_LWIN:
{
bHandle = NILP(Vw32_pass_lwindow_to_system);
break;
}
case VK_RWIN:
{
bHandle = NILP(Vw32_pass_rwindow_to_system);
break;
}
case VK_CAPITAL:
{
bHandle = NILP(Vw32_enable_caps_lock);
break;
}
case VK_NUMLOCK:
{
bHandle = NILP(Vw32_enable_num_lock);
break;
}
case VK_MENU:
case VK_LMENU:
case VK_RMENU:
{
bHandle = NILP(Vw32_pass_alt_to_system);
break;
}
if (bHandle) {
// Just to be sure check we are in the right thread
if (GetCurrentThreadId() == dwWindowsThreadId) {
// Do we have keyboard focus?
HWND hwnd = GetFocus();
if (0 != hwnd) {
SendMessage (hwnd, msg, wParamMsg, lParamMsg);
return TRUE;
}
}
}
}
HHOOK hhook; return CallNextHookEx(hhook, nCode, wParam, lParam);
}
And then it also offers easy way to set things up up, see w32-meta.el
that comes with the patched Emacs+EmacsW32.
next prev parent reply other threads:[~2008-08-12 12:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-11 17:48 Behavior of M-x and A-x Peter Weiss
2008-08-11 19:21 ` Xah
2008-08-11 19:54 ` Lennart Borgman (gmail)
[not found] ` <mailman.16401.1218484505.18990.help-gnu-emacs@gnu.org>
2008-08-12 0:11 ` B. T. Raven
2008-08-12 1:03 ` Lennart Borgman (gmail)
[not found] ` <mailman.16431.1218502993.18990.help-gnu-emacs@gnu.org>
2008-08-12 16:54 ` B. T. Raven
2008-08-12 7:33 ` Xah
2008-08-12 12:13 ` Lennart Borgman (gmail) [this message]
[not found] ` <mailman.16444.1218543201.18990.help-gnu-emacs@gnu.org>
2008-08-12 13:06 ` Emacsw32 website suggestion [Re: Behavior of M-x and A-x] Xah
2008-08-12 14:08 ` Lennart Borgman (gmail)
[not found] ` <mailman.16448.1218550117.18990.help-gnu-emacs@gnu.org>
2008-09-07 20:25 ` David Combs
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48A17E57.7090504@gmail.com \
--to=lennart.borgman@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=xahlee@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 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.