]> git.eshelyaron.com Git - emacs.git/commitdiff
Bind Scroll_Lock to scroll-lock-mode globally
authorStefan Kangas <stefankangas@gmail.com>
Tue, 20 Aug 2019 17:04:16 +0000 (19:04 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Fri, 4 Oct 2019 16:02:45 +0000 (18:02 +0200)
* lisp/bindings.el (global-map): Bind Scroll_Lock to
scroll-lock-mode.  (Bug#6861)
* lisp/scroll-lock.el (scroll-lock-mode): Note that the binding will
not work if 'w32-scroll-lock-modifier' is non-nil.
* etc/NEWS: Announce it.

etc/NEWS
lisp/bindings.el
lisp/scroll-lock.el

index c8cc7537b04210827c9265810ab4e553777c06cc..db90e8e5c54e47185a54d22bd4827a908e8a8d15 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -445,6 +445,11 @@ RGB triplets with a single hexadecimal digit per component.
 ---
 ** The toolbar now shows the equivalent key binding in its tooltips.
 
+---
+** 'scroll-lock-mode' is now bound to the 'Scroll_Lock' key globally.
+Note that this key binding will not work on MS-Windows systems if
+'w32-scroll-lock-modifier' is non-nil.
+
 \f
 * Editing Changes in Emacs 27.1
 
index 0be145879816f028e95bfae5ad824d9f9e7275cc..16da2bdf9a6d64f99b87a81075e3c2a18b226db1 100644 (file)
@@ -1054,6 +1054,7 @@ if `inhibit-field-text-motion' is non-nil."
 ;(define-key global-map [delete] 'backward-delete-char)
 
 ;; natural bindings for terminal keycaps --- defined in X keysym order
+(define-key global-map [Scroll_Lock]    'scroll-lock-mode)
 (define-key global-map [C-S-backspace]  'kill-whole-line)
 (define-key global-map [home]          'move-beginning-of-line)
 (define-key global-map [C-home]                'beginning-of-buffer)
index 3a74c11b7a1e3ef890f489ec8cf55c7b17f43ee9..36e2264fe4f847630b0af1cb636314bba719d64d 100644 (file)
 When enabled, keys that normally move point by line or paragraph
 will scroll the buffer by the respective amount of lines instead
 and point will be kept vertically fixed relative to window
-boundaries during scrolling."
+boundaries during scrolling.
+
+Note that the default key binding to Scroll_Lock will not work on
+MS-Windows systems if `w32-scroll-lock-modifier' is non-nil."
   :lighter " ScrLck"
   :keymap scroll-lock-mode-map
   (if scroll-lock-mode