>> Why scroll-lock-mode is not bound to "<scroll>" or "<Scroll_Lock>" key?
>> This would be much more useful than making a global mode.
>
> ,----[ http://mid.gmane.org/E1Dnaf1-0007am-Cg%40neutrino.iwi.uni-sb.de ]
> | An open issue is the key binding for toggling the mode.  If the minor
> | mode should be able to be activated in some major modes but not in
> | others, it doesn't make much sense to bind this to the Scroll Lock key
> | which in my understanding means to enable or disable it globally (not
> | just for Emacs but for other applications aware of it as well).
> `----
>
> Personally I have the following in my init file:
>
> (let ((key (if (eq window-system 'w32) "<scroll>" "<Scroll_Lock>")))
>   (unless (lookup-key (current-global-map) (read-kbd-macro key))
>     (define-key (current-global-map) (read-kbd-macro key) 'scroll-lock-mode)))

I see that <Scroll_Lock> does nothing special on X so it's safe to bind it
to this key.  For other systems where <scroll> is application-modal we could
create a new global mode and bind <scroll> to it.  So activating scroll-lock
will affect only Emacs, and not other applications.

-- 
Juri Linkov
http://www.jurta.org/emacs/


_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to