[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#1743: 23.0.60; x-show-tip can't display border correctly.

From: Andy Stewart
Subject: bug#1743: 23.0.60; x-show-tip can't display border correctly.
Date: Tue, 30 Dec 2008 12:51:19 -0800 (PST)

Below bug can reproduce with "emacs -Q".

Use function `x-show-tip' will show tooltip window with information.
And default will display border around tooltip window.

Now this have two bug with `x-show-tip'.

1> `x-show-tip' can display border:
In file `tooltip.el.gz' have function `tooltip-show', example i add
(setq params (tooltip-set-param parmas 'border-width 1)) before

245   ...
246   (x-show-tip (propertize text 'face 'tooltip)
247   ...

`x-show-tip' should display border, but it won't display border.

You can reproduce this bug with (tooltip-show "bug report").

And if you want to see effect of tooltip border.

Just replace like below:

246       (x-show-tip (propertize text 'face 'tooltip)
247                             (selected-frame)
248 ---                         params
248 +++                         tooltip-frame-parameters
249                             tooltip-hide-delay
250                             tooltip-x-offset
251                             tooltip-y-offset)

And then eval (tooltip-show "display border"), you will find 
tooltip display with border.
Above change just show border with tooltip, not patch.

2> Can't display border completed.
If change above code, you will get tooltip with border.
But when your *show text* to `tooltip-show' is too width, the *right border* 
can't display,
You can reproduce this with (tooltip-show "This line is too width width width 
width width width width width width width width width width...")
then you can find right border can't display correctly.
Alike, if *show text* is too height *bottom border* can't display correctly.

Thank you very much!

  -- Andy

In GNU Emacs (i686-pc-linux-gnu, GTK+ Version 2.12.11)
 of 2008-12-25 on debian
Windowing system distributor `The X.Org Foundation', version 11.0.10402000
configured using `configure  '--prefix=/home/andy/MyEmacs/Common' '--with-x' 
'--with-x-toolkit=gtk' '--enable-font-backend' '--with-freetype' '--with-xft' 
'--with-xpm' '--with-jpeg' '--with-png' '--with-gif' '--with-tiff' 

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: zh_CN.UTF-8
  value of $XMODIFIERS: @im=SCIM
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  auto-image-file-mode: t
  display-time-mode: t
  icomplete-mode: t
  minibuffer-depth-indicate-mode: t
  savehist-mode: t
  show-paren-mode: t
  diff-auto-refine-mode: t
  window-number-mode: t
  company-mode: t
  highlight-changes-visible-mode: t
  icicle-mode: t
  paredit-mode: t
  w3m-fb-mode: t
  linum-mode: t
  recentf-mode: t
  scroll-mode-line-mode: t
  tabbar-mwheel-mode: t
  tabbar-mode: t
  global-hl-line-mode: t
  which-function-mode: t
  semantic-idle-completions-mode: t
  yas/minor-mode: t
  highlight-parentheses-mode: t
  shell-dirtrack-mode: t
  eldoc-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  size-indication-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  hs-minor-mode: t

Recent input:
C-z y C-z y C-a C-k C-k <f2> M-m C-; M-m M-x r e p 
o <tab> r t <tab> b u <tab> RET

Recent messages:
Startup with window[1]
Wrote /home/andy/MyEmacs/Site-Lisp/Configure/LazyCatStartup.el
Showing all blocks ... done
Compiling /home/andy/MyEmacs/Site-Lisp/Configure/LazyCatStartup.el...
Fontifying *Compile-Log*... 
Compiling /home/andy/MyEmacs/Site-Lisp/Configure/LazyCatStartup.el...done
Wrote /home/andy/MyEmacs/Site-Lisp/Configure/LazyCatStartup.elc
Loading /home/andy/MyEmacs/Site-Lisp/Configure/LazyCatStartup.elc...done
Computing completion candidates... [2 times]

reply via email to

[Prev in Thread] Current Thread [Next in Thread]