lp:~pitkali/+junk/pos-tip.el
- Get this branch:
- bzr branch lp:~pitkali/+junk/pos-tip.el
Branch information
- Owner:
- Piotr Kalinowski
- Status:
- Development
Recent revisions
- 119. By Piotr Kalinowski
-
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. - 118. By Piotr Kalinowski
-
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. - 117. By Piotr Kalinowski
-
Fix tip-color in pos-tip-
calibrate- frame-offset This ensures that tip-color constructed in pos-tip-
calibrate- offset has
correct form, i.e., its background component is a string, rather than a lambda
that needs to be executed in order to get valid background colour. - 111. By IRIE Shinsuke
-
pos-tip-
compute- pixel-position: Changed to use 'window- line-height' instead of 'posn-object- width-height'
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)