pitkali / pos-tip

Show tooltip at point
37 stars 14 forks source link

Disjointed documentation interface in OS X #11

Open rthoma opened 8 years ago

rthoma commented 8 years ago

Hi, I'm experiencing an issue on OS X, and other members of the /r/emacs subreddit are seeing it too. I'm using pos-tip with the company quickhelp package. On the github homepage for company quickhelp it shows this image, in which the documentation panel is basically an extension of the company completion menu. What I get instead (on OS X) is a little more disjointed interface that looks like this. It looks like this might be a bug in pos-tip, or potentially a setup issue. Are there settings I can change that will allow pos-tip to present documentation in a way that better integrates with the company completion menu?

For reference I'm running Emacs 25.1.50 (9.0) on OS X Yosemite (version 10.10.5).

expez commented 8 years ago

Link to sister issue: https://github.com/expez/company-quickhelp/issues/42

pitkali commented 8 years ago

I'll take a look. It was quite a while since I was looking into matters like this (you can see that I still haven't updated documentation and such since taking over this module, even though it's on my TODO list ;-)

The only thing I can say right now is that your second image looks like a native tooltip. I'm not sure about the details right now, except that native tooltips are annoying because you can only affect their position. Its position on the image looks far from perfect, obviously, but you should be aware that any directives about background/foreground colour and font will be ignored. The way it's mispositioned suggests a problem with coordinates calculation being based on fonts.

You are using stock Emacs, aren't you? I think Emacs mac port (see: https://github.com/railwaycat/emacs-mac-port , available through homebrew as well, AFAIR; I install from source anyway) has a different implementation of tooltips that honours all the colour and font settings.

pitkali commented 8 years ago

Hmm, this works better on my Linux box at work, but I did have some instances where the quickhelp popup was positioned at the bottom right corner of the dropdown instead of next to it. I can't reproduce it now, though. It looks just like the dropdown, however, and is nothing but "disjointed."

This would confirm that the original issue is specific to Mac. I'll work on that, and then see if I can track down the misalignment I saw in some cases on Linux.

AndreaOrru commented 8 years ago

Hi, I'm interested in this and willing to help.

If we could just get non-native tooltips we'd be better off IMHO...

pitkali commented 8 years ago

Yes, well. I was quite busy, and now l'm travelling on vacation without access to computer. I have dealt with other things so I will be able to finally look at this when I return, in the first week of August.

On Tuesday, 19 July 2016, Andrea Orru notifications@github.com wrote:

Hi, I'm interested in this and willing to help.

If we could just get non-native tooltips we'd be better off IMHO...

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/pitkali/pos-tip/issues/11#issuecomment-233512736, or mute the thread https://github.com/notifications/unsubscribe-auth/AAUU0kVjHWMBihCAj9EHX-Fkt6NfeOyBks5qXDP2gaJpZM4I-wRr .

Intelligence is like a river: the deeper it is, the less noise it makes

CSRaghunandan commented 7 years ago

@pitkali has any progress made with this issue so far ? I have the same problem on my mac as well :(

pitkali commented 7 years ago

Not really, no. I have failed to look at it, rather miserably, because life is complicated and reasons.

I suppose I will have to finally look at it.