Popup alignment in php-mode inexplicably broken for me.
Opened this issue · 10 comments
I'm having the strangest problem all of a sudden with alignment of popup menus in auto-complete when using php-mode
. This is what it looks like:
To try to diagnose whether this was just an issue with my config, I tried:
- Rolling back my
.emacs
by several weeks (it's in git, of course). - Deleting my entire
~/.emacs.d/elpa
directory and re-downloading/re-compiling all packages.
Neither of these helped. This problem doesn't seem to affect text-mode
or lisp-interaction-mode
, though, as shown here:
I've also opened an issue with php-mode
, but they haven't been able to reproduce it. I have attempted to debug what is going on in popup.el
, but admittedly my Lisp isn't very strong and I can't figure out how the placement of the left edge of the popup is computed.
Any help or direction on how to figure this out would be greatly appreciated.
I discovered that this behavior only happens when fci-mode
is turned on, which leads me to believe that it is directly related to that package, and probably not a popup.el
issue.
I am going to leave this open for now until someone from this project takes a peek at it and maybe helps to confirm this for me.
@aaronbieber, looks like posn-at-point
problem. To verify this you can try popup-el
version previous to this commit.
I have the same problem with the python-mode. I'm not using any proportional font so it's not related to some other bug reports.
I'm using el-get and I tried with different version of this mode, and I found that if I checkout tag v0.5.2 I don't have this problem but with v0.5.3 I do have it, so it must be a regression between those 2 releases
After some more investigation I found that this is the commit that caused the problem:
f06712a
Could you show us minimum configuration for reproducing this issue ?
@syohex I found this minimum configuration. https://gist.github.com/diasjorge/4b6217ec577ce4c1b1f7
It appears to be an interaction between fci-mode and popup-el. It actually breaks in all modes I tested but I only had fci-mode activated with python-mode. I also found this bug which appears similar company-mode/company-mode#180
I really don't understand the code you made to deal with transparent overlays or something like that to say more but seems related.
I see there's this bug open for a long time alpaker/fill-column-indicator#21
I am having this issue as well... anyone has a good solution? This is a popup for a English -> Chinese dictionary.
Did you eventually solve it? @aaronbieber
I suppose your issue is different from this, because it looks you use non monospaced font. It is difficult to support such fonts.
Actually I do use mono spaced font. The English is "Hack", Chinese is also mono spaced. Don't know what's going on there...
On Aug 23, 2016, at 3:27 PM, Syohei YOSHIDA <notifications@github.commailto:notifications@github.com> wrote:
I suppose your issue is different from this, because it looks you use non monospaced font. It is difficult to support such fonts.
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com//issues/85#issuecomment-241900214, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALDt-jxNRrsguAXuzl9LGhmv33sxLQTiks5qi3PFgaJpZM4DagJh.