新的 emacs23 给了我
(“窗口宽度 0 太小(分割后)”)
每当我加载 ECB 或 tabbar 时。似乎是从 Kubuntu intrepid 更新到 jaunty 后出现的。有什么提示可以解决这个问题吗?
答案1
它是已知错误显然...在修复程序发布之前,最简单的解决方案是运行 emacs21。
如果你愿意修补并重新编译,我还发现了一个潜在的补丁这里,尽管我无法确认它是否有效。
-----------------------
diff -c /tmp/sr-speedbar.el\~ /tmp/sr-speedbar.el
--- /tmp/sr-speedbar.el~ 2008-11-06 07:57:08.000000000 -0800
+++ /tmp/sr-speedbar.el 2008-11-06 07:59:21.000000000 -0800
@@ -270,16 +270,17 @@
(interactive)
(let ((current-window (selected-window)))
(if (and sr-speedbar-window
- speedbar-buffer
- (window-live-p sr-speedbar-window) ;when `sr-speedbar-window' visible
- (buffer-live-p speedbar-buffer)) ;and contain `speedbar-buffer'
- (sr-speedbar-select-window)
- (if (> (current-window-take-width) 1) ;if width of `sr-speedbar-window' is a valid value
- (setq sr-speedbar-width (current-window-take-width))) ;remember it make next restore same width
- (bury-buffer)
- (if (and current-window
- (window-live-p current-window))
- (select-window current-window)))))
+ speedbar-buffer
+ (window-live-p sr-speedbar-window) ;when `sr-speedbar-window' visible
+ (buffer-live-p speedbar-buffer)) ;and contain `speedbar-buffer'
+ (progn
+ (sr-speedbar-select-window)
+ (if (> (current-window-take-width) 1) ;if width of `sr-speedbar-window' is a valid value
+ (setq sr-speedbar-width (current-window-take-width))) ;remember it make next restore same width
+ (bury-buffer)
+ (if (and current-window
+ (window-live-p current-window))
+ (select-window current-window))))))