Emacs马虎焦点不再工作 - 改变焦点延迟2秒 [英] Emacs sloppy focus no longer working - 2 second delay on changing focus
问题描述
我的init.el中有以下设置
(setq focus-follow-mouse 1)
(setq mouse-autoselect-window 1)
这是打算,以前的工作,导致emacs自动将焦点切换到鼠标悬停在其上的窗口上。
然而,现在转换时间延迟了〜2秒。
任何想法可能导致这一点,没有其他显着的变化?
从 mouse-autoselect-window
的文档:
正数意味着延迟自动选择多秒:只有在延迟时间内鼠标停留在该窗口之后,才会自动选择一个窗口。
所以(setq mouse-autoselect-window 1)
的效果是延迟在选择鼠标结束的窗口之前一秒钟。这听起来像你看到的那样。
我不知道这个行为是否最近发生了变化,但是FWIW,我正在使用emacs 23.1.1。 / p>
要获取即时窗口选择,请使用(setq mouse-autoselect-window t)
。
I have the following set in my init.el
(setq focus-follows-mouse 1)
(setq mouse-autoselect-window 1)
This is intended, and was previously working, to cause emacs to automatically switch focus to the window where my mouse was hovered over, instantly. However, there is now a ~2 second delay in switching.
Any ideas what might be causing this, with no other notable changes?
From the documentation for mouse-autoselect-window
:
A positive number means delay autoselection by that many seconds: a window is autoselected only after the mouse has remained in that window for the duration of the delay.
So the effect of (setq mouse-autoselect-window 1)
would be to delay one second before selecting the window the mouse was over. This sounds sort of like what you are seeing.
I'm not sure if this behaviour has changed recently, but FWIW, I'm using emacs 23.1.1.
To get instantaneous window selection, use (setq mouse-autoselect-window t)
.
这篇关于Emacs马虎焦点不再工作 - 改变焦点延迟2秒的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!