unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Feng Shu" <tumashu@163.com>
To: martin rudalics <rudalics@gmx.at>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: How to get information of a tip created by x-show-tip
Date: Sun, 20 Jan 2019 09:21:05 +0800	[thread overview]
Message-ID: <87zhrwf7jy.fsf@163.com> (raw)
In-Reply-To: <5C4315F7.7010505@gmx.at> (martin rudalics's message of "Sat, 19 Jan 2019 13:20:07 +0100")

martin rudalics <rudalics@gmx.at> writes:

>>>> (setq tooltip-reuse-hidden-frame t)
>>>
>>> This may hide the frame from 'visible-frame-list'.
>>>
>>
>> Does this mean: when tooltip-reuse-hiden-frame is t, the return of
>> visible-frame-list
>> will always do not show tooltip frame, no matter tooltip actuly show
>> or
>> hide?
>
> No.  While the tooltip is shown the tooltip frame is on
> ‘visible-frame-list’.
>
> martin
>

Thanks for the information :-)

x-show-tip's background-color works well, but
can not change foreground-color, does it do not support foreground-color?

```
(progn
  (x-show-tip
   (substring-no-properties
    "
this is a test
this is a test
this is a test
this is a test")
   (selected-frame)
   '((name . "tooltip")
     (internal-border-width . 2)
     (background-color . "white")
     (foreground-color . "red")
     (left . 200)
     (top . 300)
     (border-width . 1)
     (no-special-glyphs . t))
   10 0 0)
  (dolist (frame (visible-frame-list))
    (when (frame-parameter frame 'tooltip)
      (princ (frame-parameters frame)))))
```


-- 




  reply	other threads:[~2019-01-20  1:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-19  4:29 How to get information of a tip created by x-show-tip Feng Shu
2019-01-19  7:22 ` Eli Zaretskii
2019-01-19  8:12 ` martin rudalics
2019-01-19  9:06   ` Feng Shu
2019-01-19  9:32     ` martin rudalics
2019-01-19  9:37       ` Feng Shu
2019-01-19  9:55         ` Eli Zaretskii
2019-01-19 10:02           ` Feng Shu
2019-01-19  9:54       ` Feng Shu
2019-01-19 12:20         ` martin rudalics
2019-01-20  1:21           ` Feng Shu [this message]
2019-01-20  2:09             ` Drew Adams
2019-01-19  9:36     ` martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zhrwf7jy.fsf@163.com \
    --to=tumashu@163.com \
    --cc=emacs-devel@gnu.org \
    --cc=rudalics@gmx.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).