company-mode / company-quickhelp

Documentation popup for Company
GNU General Public License v3.0
374 stars 33 forks source link

text properties are ignored #98

Closed andreyorst closed 4 years ago

andreyorst commented 4 years ago

I've submitted this issue https://github.com/greghendershott/racket-mode/issues/405 to racket-mode repo and @greghendershott pointed out this thing:

I was curious and spent an hour poking around. It looks like this is because company-quickhelp uses buffer-substring-no-properties instead of buffer-substring. In other words it deliberately discards the properties.

If I change that to use buffer-substring -- and also set (setq company-quickhelp-use-propertized-text t) -- then I do see the formatted text.

This actually prevents user from enabling propertized text.

dgutov commented 4 years ago

This should work now. Thanks for the report!

(You still need to change the value of company-quickhelp-use-propertized-text in your config).