7

I'm have reinstalled my emacs and now I'm using emacs v24.3.50 with auto-complete v1.4 and popup.el v0.5. Unfortunately the popup "menu" of auto-complete is kinda broken (see attached screenshot).
The different items are not aligned along a commong vertical line [ignore the black overlay, that stems from CEDET and is probably meant to be placed on the right side next to the popup menu; the problem remains when disabling CEDET, so it is not related).

example of error

From what I can tell it looks like the extent of this "shift" between lines depends on how much the length of the strings differs. Also, when selecting a different suggestion using the arrow keys the horizontal shift of the lines changes a little (~few pixels) each time the mark is moved one line up/down.

I have uploaded the part of my .emacs.d/init.el that is used for configuring auto-complete here.

Any suggestions on how to fix this?

4

1 回答 1

10

看来您正在使用比例字体,这会破坏叠加层左边缘的计算。

您可以尝试更改自动完成计算列的方式:

(setq popup-use-optimized-column-computation nil)

您也可以更改为固定宽度的字体。

请注意,Emacs 的一些其他完成系统可以使用工具提示而不是覆盖,这样可以避免这个问题。

于 2012-11-05T23:52:19.383 回答