popup-el icon indicating copy to clipboard operation
popup-el copied to clipboard

Popup alignment in php-mode inexplicably broken for me.

Open aaronbieber opened this issue 9 years ago • 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:

image

To try to diagnose whether this was just an issue with my config, I tried:

  1. Rolling back my .emacs by several weeks (it's in git, of course).
  2. 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:

image

image

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.

aaronbieber avatar Feb 02 '15 17:02 aaronbieber

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 avatar Feb 02 '15 20:02 aaronbieber

@aaronbieber, looks like posn-at-point problem. To verify this you can try popup-el version previous to this commit.

kostafey avatar Apr 01 '15 14:04 kostafey

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

diasjorge avatar Nov 26 '15 21:11 diasjorge

After some more investigation I found that this is the commit that caused the problem: f06712a5eaa032080addfb54d5d55f8e03f19c59

diasjorge avatar Nov 26 '15 21:11 diasjorge

Could you show us minimum configuration for reproducing this issue ?

syohex avatar Nov 28 '15 01:11 syohex

@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 https://github.com/company-mode/company-mode/issues/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.

diasjorge avatar Dec 01 '15 21:12 diasjorge

I see there's this bug open for a long time https://github.com/alpaker/Fill-Column-Indicator/issues/21

diasjorge avatar Dec 01 '15 21:12 diasjorge

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

screenshot 2016-08-22 18 24 13

yilihong avatar Aug 23 '16 09:08 yilihong

I suppose your issue is different from this, because it looks you use non monospaced font. It is difficult to support such fonts.

syohex avatar Aug 23 '16 22:08 syohex

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 <[email protected]mailto:[email protected]> 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/auto-complete/popup-el/issues/85#issuecomment-241900214, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALDt-jxNRrsguAXuzl9LGhmv33sxLQTiks5qi3PFgaJpZM4DagJh.

yilihong avatar Aug 23 '16 22:08 yilihong