Subject: bug#38007: scroll-lock binding on Windows

From: Juanma Barranquero <[email-masked]>
Date: Thu, 31 Oct 2019 18:46:43 +0100

This is with 27.0.50, on Windows 10.

The binding of scroll-lock-mode on binding.el is:

  (define-key global-map [Scroll_Lock]    'scroll-lock-mode)

and the docstring of scroll-lock-mode says:

  Note that the default key binding to Scroll_Lock will not work on
  MS-Windows systems if ‘w32-scroll-lock-modifier’ is non-nil.

And the default value of w32-scroll-lock-modifier is nil:

  w32-scroll-lock-modifier is a variable defined in ‘C source code’.
  Its value is nil

But the Scroll Lock key does not generate a Scroll_Lock event, but scroll:

  <scroll> is undefined

Shouldn't the binding be to [scroll] on Windows?