~pitkali/+junk/pos-tip.el

  • Committer: Piotr Kalinowski
  • Date: 2013-07-17 16:33:39 UTC
  • Revision ID: pitkali@gmail.com-20130717163339-qfw2m64cbf1gryyl
Fix problem when using pos-tip-show for the first time

When displaying first tooltip after starting Emacs, text attributes
would not be correctly applied, resulting in incorrect colour of tooltip
text and background. This would be visible only for the text, frame
foreground and background were set correctly.

This seems to have been related to the use of `make-face' to create a
temporary face for applying those text attributes. According to
documentation this function should not be used from Lisp source code. In
fact it turns out that there's no need to use a separate face at all: it
is sufficient to use a list of desired face attributes that should be
applied to text.

This fixes the problem and removes potentially costly operations
involving changing selected windows and manipulating face properties for
all the frames.
Filename Latest Rev Last Changed Committer Comment Size
..
my-describe-function.el 116 13 years ago IRIE Shinsuke my-describe-function.el: Added newline to the end 611 bytes Diff Download File
popup-pos-tip.el 90 13 years ago IRIE Shinsuke popup-pos-tip.el: Bumped version to 0.1.2 5 KB Diff Download File
pos-tip.el 119 10 years ago Piotr Kalinowski Fix problem when using pos-tip-show for the first 33.5 KB Diff Download File
sdic-inline-pos-tip.el 77 14 years ago IRIE Shinsuke sdic-inline-pos-tip.el: Bumped version to 0.0.8 6.1 KB Diff Download File