all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#14661: 24.3.50; `C-<scroll>' is seen as `C-<pause>'
@ 2013-06-19  2:53 Drew Adams
  2013-06-19 14:34 ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Drew Adams @ 2013-06-19  2:53 UTC (permalink / raw)
  To: 14661

Dunno whether this is an Emacs bug or a keyboard problem.

When I use `C-h k' and then press Control and hit the Scroll Lock key,
Emacs takes that as `C-<pause>', not `C-<scroll>'.  However, every other
combination of a modifier with the Scroll Lock key, and use of no
modifier with it, acts as I would expect: Emacs sees
`<scroll>',`M-<scroll>', `C-M-<scroll>', `C-S-<scroll>', `S-<scroll>',
`M-S-<scroll>', and `C-M-S-<scroll>'.

In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
 of 2013-06-17 on ODIEONE
Bzr revision: 113024 eliz@gnu.org-20130617163040-8hmzci370q4argze
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/Devel/emacs/binary --enable-checking=yes,glyphs
 CFLAGS=-O0 -g3 LDFLAGS=-Lc:/Devel/emacs/lib
 CPPFLAGS=-Ic:/Devel/emacs/include'





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#14661: 24.3.50; `C-<scroll>' is seen as `C-<pause>'
  2013-06-19  2:53 bug#14661: 24.3.50; `C-<scroll>' is seen as `C-<pause>' Drew Adams
@ 2013-06-19 14:34 ` Eli Zaretskii
  2013-06-19 14:44   ` Juanma Barranquero
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2013-06-19 14:34 UTC (permalink / raw)
  To: Drew Adams; +Cc: 14661

> Date: Tue, 18 Jun 2013 19:53:02 -0700 (PDT)
> From: Drew Adams <drew.adams@oracle.com>
> 
> Dunno whether this is an Emacs bug or a keyboard problem.

Neither.

> When I use `C-h k' and then press Control and hit the Scroll Lock key,
> Emacs takes that as `C-<pause>', not `C-<scroll>'.  However, every other
> combination of a modifier with the Scroll Lock key, and use of no
> modifier with it, acts as I would expect: Emacs sees
> `<scroll>',`M-<scroll>', `C-M-<scroll>', `C-S-<scroll>', `S-<scroll>',
> `M-S-<scroll>', and `C-M-S-<scroll>'.

This is a conundrum whose way out I don't know, nor whether it at all
exists.  Windows gives us the same virtual key code VK_CANCEL for both
C-<scroll> and C-<pause> (for reasons of backward compatibility).  We
want to produce a "normal" Ctrl-modified key from this, but we don't
know which one of the two was pressed.  So we arbitrarily choose to
produce C-<pause>.

If someone has a way out of this that doesn't require a complete
rewrite of the keyboard reading code, please speak up.  Otherwise,
this will remain a very distant wishlist.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#14661: 24.3.50; `C-<scroll>' is seen as `C-<pause>'
  2013-06-19 14:34 ` Eli Zaretskii
@ 2013-06-19 14:44   ` Juanma Barranquero
  2013-06-19 14:47     ` Juanma Barranquero
  2013-06-19 14:48     ` Drew Adams
  0 siblings, 2 replies; 7+ messages in thread
From: Juanma Barranquero @ 2013-06-19 14:44 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 14661

On Wed, Jun 19, 2013 at 4:34 PM, Eli Zaretskii <eliz@gnu.org> wrote:

> This is a conundrum whose way out I don't know, nor whether it at all
> exists.  Windows gives us the same virtual key code VK_CANCEL for both
> C-<scroll> and C-<pause> (for reasons of backward compatibility).

According to this:

http://blogs.msdn.com/b/oldnewthing/archive/2008/02/11/7596539.aspx

there's no way to fix it:

«Even though the enhanced keyboard moved the Pause and Break functions
to their own key, pressing the Pause key internally generated scan
codes that simulated a press of Ctrl+NumLock. In other words, when you
pressed Pause, the keyboard hardware actually tells the computer, "The
user pressed the Ctrl key and then pressed the NumLock key."
Similarly, when you pressed Ctrl+Break, the keyboard hardware tells
the computer, "The user pressed the Ctrl key and then pressed the
ScrollLock key."

Therefore, Ctrl+ScrollLock acts like Ctrl+Break because at the
hardware level, they are the same thing. That the two functions exist
on separate keys is just a fake-out by the keyboard hardware.»





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#14661: 24.3.50; `C-<scroll>' is seen as `C-<pause>'
  2013-06-19 14:44   ` Juanma Barranquero
@ 2013-06-19 14:47     ` Juanma Barranquero
  2013-06-19 14:48     ` Drew Adams
  1 sibling, 0 replies; 7+ messages in thread
From: Juanma Barranquero @ 2013-06-19 14:47 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 14661

On Wed, Jun 19, 2013 at 4:44 PM, Juanma Barranquero <lekktu@gmail.com> wrote:

> there's no way to fix it:

Or perhaps there's one, after all:

http://en.wikipedia.org/wiki/Break_key

«Pressing the dedicated Pause key on 101/102-key keyboards sends the
same scancodes as pressing Ctrl, then NumLock, then releasing them in
the reverse order would do; additionally, an E1hex prefix is sent
which enables 101/102-key aware software to discern the two
situations, while older software usually just ignores the prefix.»

Very distant wishlist, indeed.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#14661: 24.3.50; `C-<scroll>' is seen as `C-<pause>'
  2013-06-19 14:44   ` Juanma Barranquero
  2013-06-19 14:47     ` Juanma Barranquero
@ 2013-06-19 14:48     ` Drew Adams
  2013-06-19 14:51       ` Juanma Barranquero
  1 sibling, 1 reply; 7+ messages in thread
From: Drew Adams @ 2013-06-19 14:48 UTC (permalink / raw)
  To: Juanma Barranquero, Eli Zaretskii; +Cc: 14661

Thanks to you both for clarifying this (and so promptly).
I'm OK with your closing the bug, or I can do so if you prefer.

I think you're saying that this is a Windows-only problem.
(If not, perhaps it is worth documenting somewhere?)





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#14661: 24.3.50; `C-<scroll>' is seen as `C-<pause>'
  2013-06-19 14:48     ` Drew Adams
@ 2013-06-19 14:51       ` Juanma Barranquero
  2013-06-19 14:57         ` Drew Adams
  0 siblings, 1 reply; 7+ messages in thread
From: Juanma Barranquero @ 2013-06-19 14:51 UTC (permalink / raw)
  To: Drew Adams; +Cc: 14661

On Wed, Jun 19, 2013 at 4:48 PM, Drew Adams <drew.adams@oracle.com> wrote:

> Thanks to you both for clarifying this (and so promptly).
> I'm OK with your closing the bug, or I can do so if you prefer.

I would suggest closing it.

> I think you're saying that this is a Windows-only problem.

Not Window-specific, it's the keyboard hardware.

> (If not, perhaps it is worth documenting somewhere?)

Don't think so. It is not an Emacs-specific limitation either.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#14661: 24.3.50; `C-<scroll>' is seen as `C-<pause>'
  2013-06-19 14:51       ` Juanma Barranquero
@ 2013-06-19 14:57         ` Drew Adams
  0 siblings, 0 replies; 7+ messages in thread
From: Drew Adams @ 2013-06-19 14:57 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: 14661

> I would suggest closing it.

Done.





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-06-19 14:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-19  2:53 bug#14661: 24.3.50; `C-<scroll>' is seen as `C-<pause>' Drew Adams
2013-06-19 14:34 ` Eli Zaretskii
2013-06-19 14:44   ` Juanma Barranquero
2013-06-19 14:47     ` Juanma Barranquero
2013-06-19 14:48     ` Drew Adams
2013-06-19 14:51       ` Juanma Barranquero
2013-06-19 14:57         ` Drew Adams

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.