GNU bug report logs - #5040
23.1; w32-register-hot-key problem

Previous Next

Packages: w32, emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Wed, 25 Nov 2009 21:20:04 UTC

Severity: normal

Done: Juanma Barranquero <lekktu <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#5040: closed (23.1; w32-register-hot-key problem)
Date: Sat, 02 Jul 2011 02:05:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 2 Jul 2011 04:04:03 +0200
with message-id <BANLkTimkrDnQXdgtLM27A7jirPhh9jcxVA <at> mail.gmail.com>
and subject line Re: bug#5040: 23.1; w32-register-hot-key problem
has caused the GNU bug report #5040,
regarding 23.1; w32-register-hot-key problem
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
5040: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5040
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: "Drew Adams" <drew.adams <at> oracle.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 23.1; w32-register-hot-key problem
Date: Wed, 25 Nov 2009 13:10:53 -0800
emacs -Q
M-: (w32-register-hot-key [M-tab])
 
Visit a buffer in emacs-lisp-mode.
Type `forward-', then hit `M-TAB'.
 
The Windows TAB dialog comes up (dunno what you call it - a seqence of
icons; you TAB to cycle among their apps) when you hold down the keys
and then disappears when you release them. It should not not come up
at all; instead, `lisp-complete-symbol' should be executed.
 
However, from then on it works as it should. It is only the first time
you press `M-TAB' that Windows doesn't pass the chord to Emacs.
 
emacs -Q
M-: (w32-register-hot-key [M-tab])
 
Visit a buffer in emacs-lisp-mode.  `C-h k M-TAB'. Same as above: the
Windows TAB dialog comes up and then disappears when you release the
keys. And from then on it works OK.
 
In sum, after evalling (w32-register-hot-key [M-tab]) the first
`M-TAB' should be seen by Emacs, but it is not. Only subsequent
`M-TAB's are seen by Emacs.
 
This worked perfectly in Emacs 20 and 21. It is broken starting with
Emacs 22.
 
 
 
 
 
In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600)
 of 2009-07-29 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4)'
 
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t
 
Major mode: Emacs-Lisp
 
Minor modes in effect:
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t
 
Recent input:
M-: C-y <return> <return> C-h k C-g C-g C-x 1 C-h k 
<M-tab> C-g C-g <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <menu-bar> <help-menu> <se
nd-emacs-bug-report>
 
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
265 (#o411, #x109)
Type C-x 1 to delete the help window.
Quit
Type C-x 1 to delete the help window, C-M-v to scroll help.
Quit
Quit



[Message part 3 (message/rfc822, inline)]
From: Juanma Barranquero <lekktu <at> gmail.com>
To: Lennart Borgman <lennart.borgman <at> gmail.com>,
	5040-done <at> emacsbugs.donarmstrong.com
Cc: Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#5040: 23.1; w32-register-hot-key problem
Date: Sat, 2 Jul 2011 04:04:03 +0200
On one hand, Drew is right that if it works with 21.X and 22.X, it
should work with 23.X+.

On the other hand, Lennart's right that Alt-Tab is reserved and, to
make it work reliably it would be necessary to write a low level
keyboard hook.

On the third hand, alt-tab role in Vista and Windows 7 is enhanced and
it does not make much sense to try to bypass it and go against the
system (not that it does not make any sense, just not worth the effort
IMHO). So I'm closing this one.

    Juanma


This bug report was last modified 13 years and 326 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.