emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BUG in scroll-lock-mode?


From: Ralf Angeli
Subject: Re: BUG in scroll-lock-mode?
Date: Thu, 07 Jun 2007 22:31:12 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

* Juri Linkov (2007-06-07) writes:

>>> I put (scroll-lock-mode t) in ~/.emacs, but it is still disabled after
>>> restart emacs. Is this a bug in scroll-lock-mode?
>>
>> Scroll Lock mode is a buffer-local minor mode, so your command will not
>> enable it globally.  You can enable it via a hook.  For example, if you
>> wanted the mode to be activated when browsing info files, you could do
>> this with something like (add-hook 'Info-mode-hook 'scroll-lock-mode).
>
> 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)))

-- 
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]