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

popup.el doesn't play nice with whitespace-mode and linum-mode

Open kprav33n opened this issue 11 years ago • 8 comments

When using popup.el with whitespace-mode and linum-mode, unwanted artifacts are seen on the screen due to the fact that popup.el adds empty lines at the end of the buffer to render the popup menu.

Please see: https://github.com/auto-complete/auto-complete/issues/90 https://github.com/tjarvstrand/edts/issues/35 https://github.com/bbatsov/prelude/issues/19

I think that popup.el is the root cause for all these issues.

kprav33n avatar Feb 21 '13 08:02 kprav33n

I'm also seeing this; it occurs even when linum-mode and whitespace-mode are turned off.

nickpascucci avatar Sep 05 '13 17:09 nickpascucci

I am also seeing this issue. If I do not use linum mode then popup rendering executes correctly.

brandonw avatar Nov 26 '13 18:11 brandonw

@kprav33n @nickpascucci @brandonw I confirmed whitespace-mode problem. But I don't understand linum-mode problem.

Please show us minimum configuration for reproducing this issue and tell us how to reproduce this issue. And please upload screenshots about this issue if possible.

syohex avatar Nov 28 '13 08:11 syohex

I'm not able to reproduce the linum-mode issue with the recent build of emacs and popup.el. Here is the screenshot of the whitespace mode issue.

screen shot 2013-11-28 at 2 59 54 am

kprav33n avatar Nov 28 '13 11:11 kprav33n

I found an old version of popup.el shadowing the ELPA version in my load path. With that removed I'm no longer able to reproduce the EOB whitespace problem. I do see some whitespace-mode highlighting around popups like @kprav33n.

nickpascucci avatar Nov 30 '13 01:11 nickpascucci

@syohex @kprav33n The behavior occurs if I:

emacs -nw -Q [include auto-complete and popup in load-path] M-x linum-mode M-x eval-expression (require 'auto-complete-config) M-x eval-expression (ac-config-default)

Make sure to run in console mode. GUI Emacs seems to work fine, even with linum mode enabled. It is only in console mode that this occurs: screenshot

brandonw avatar Dec 03 '13 02:12 brandonw

@brandonw Thanks for the information.

syohex avatar Dec 03 '13 02:12 syohex

Is this of any use: http://stackoverflow.com/a/27960576/2752242

jobevers avatar May 19 '16 21:05 jobevers