可可Emacs:使用Linum模式在垂直边框中出现小故障 [英] Cocoa Emacs: Glitch in vertical border using linum mode

查看:84
本文介绍了可可Emacs:使用Linum模式在垂直边框中出现小故障的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在OS X 10.7上使用Cocoa Emacs,在启用linum模式的垂直边框中出现了令人讨厌的图形故障.

Using Cocoa Emacs on OS X 10.7, I get an irritating graphical glitch in the vertical border with linum mode enabled.

使用垂直拆分框时,请启用linum模式,然后尝试在拆分的任何一侧上下滚动.垂直边框全部或部分消失.

With a vertically-split frame, enable linum mode and try scrolling up and down in either side of the split. The vertical border disappears either fully or partially.

我可以通过将边缘模式更改为仅左"来解决此问题,但是该修复仅在我在minibuffer中进行的情况下有效.尝试通过Lisp代码(使用边缘模式,set-fringe模式或set-fringe样式)来解决问题并不能解决故障(我尝试了几种不同的钩子).

I can fix this by changing fringe-mode to left-only, but the fix ONLY works if I do it in the minibuffer. Trying to do it from lisp code (using fringe-mode, set-fringe-mode or set-fringe-style) doesn't solve the glitch (I've tried several different hooks).

我已将此报告给Emacs错误跟踪器,但我希望SO会更快!有人可以建议采用程序化解决方法,还是可以了解此处可能发生的情况?

I've reported this to the Emacs bug tracker, but I'd expect SO to be faster! Could anyone suggest a programmatic workaround, or shed some light on what might be going on here?

更新:由于某种原因,命令边缘模式不适用于lisp代码,但是我能够通过执行

UPDATE: For some reason the command fringe-mode doesn't work from lisp code, but I was able to get a programmatic solution by doing

(set-fringe-mode '(8 . 0))

...尽管它似乎引起了另一个图形故障.

... Although it seems to have raised another graphical glitch.

推荐答案

现在已在Emacs主干中修复.请注意,上述解决方案在某种程度上适用于较旧的版本.

This is now fixed in Emacs trunk. Note that the solution above works to some degree for older versions.

这篇关于可可Emacs:使用Linum模式在垂直边框中出现小故障的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆