~pitkali/+junk/pos-tip.el

Viewing all changes in revision 118.

  • Committer: Piotr Kalinowski
  • Date: 2013-07-17 16:32:16 UTC
  • Revision ID: pitkali@gmail.com-20130717163216-sh85m62783rrwut3
Fix setting foreground colour when using pos-tip-show

pos-tip-show would only pass the tip-color to pos-tip-show-no-propertize,
which resulted in applying it only to frame properties by x-show-tip, but not
to the font of the tooltip itself. This seemed to work actually, but only as
long as user did not choose a custom colour theme.

Otherwise it was impossible to set text foreground colour using
pos-tip-show. (You could not just propertize the text using face as
pos-tip-show replaces the face property of the input text.)

The solution is based on how tooltip.el uses x-show-tooltip: it does set
foreground-color and background-color frame parameters, but it also
additionally applies the tooltip face to the tooltip text.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: