From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#5703: 23.1.92; `x-show-tip' and `tooltip-frame-parameters' do not respect `left' and `top' Date: Wed, 10 Mar 2010 23:49:35 -0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1268294084 23083 80.91.229.12 (11 Mar 2010 07:54:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 11 Mar 2010 07:54:44 +0000 (UTC) To: 5703@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 11 08:54:40 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NpdE6-0008Nf-Db for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Mar 2010 08:54:38 +0100 Original-Received: from localhost ([127.0.0.1]:54470 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NpdE5-0007kI-LY for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Mar 2010 02:54:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NpdE0-0007im-Ti for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2010 02:54:32 -0500 Original-Received: from [140.186.70.92] (port=55630 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NpdDz-0007h5-29 for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2010 02:54:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NpdDy-0002Fn-Cv for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2010 02:54:30 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45911) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NpdDy-0002Fj-BK for bug-gnu-emacs@gnu.org; Thu, 11 Mar 2010 02:54:30 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NpdBa-0005hH-Bp; Thu, 11 Mar 2010 02:52:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Mar 2010 07:52:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-GNU-PR-Message: report 5703 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.126829389621890 (code B ref -1); Thu, 11 Mar 2010 07:52:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Mar 2010 07:51:36 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NpdBA-0005h1-7z for submit@debbugs.gnu.org; Thu, 11 Mar 2010 02:51:36 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NpdB7-0005gw-OC for submit@debbugs.gnu.org; Thu, 11 Mar 2010 02:51:34 -0500 Original-Received: from mail.gnu.org ([199.232.76.166]:40052 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NpdB4-0004ZE-A8 for emacs-pretest-bug@gnu.org; Thu, 11 Mar 2010 02:51:30 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:60950) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NpdB3-0008Bm-Ox for emacs-pretest-bug@gnu.org; Thu, 11 Mar 2010 02:51:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NpdAz-00020b-Uh for emacs-pretest-bug@gnu.org; Thu, 11 Mar 2010 02:51:26 -0500 Original-Received: from rcsinet12.oracle.com ([148.87.113.124]:47805) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NpdAz-00020W-Nq for emacs-pretest-bug@gnu.org; Thu, 11 Mar 2010 02:51:25 -0500 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet12.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o2B7pNFb005953 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 11 Mar 2010 07:51:24 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o2ALxNZu009718 for ; Thu, 11 Mar 2010 07:51:22 GMT Original-Received: from abhmt019.oracle.com by acsmt354.oracle.com with ESMTP id 77227381268293776; Wed, 10 Mar 2010 23:49:36 -0800 Original-Received: from dradamslap1 (/141.144.232.161) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 10 Mar 2010 23:49:35 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcrA72TIe8zPmVbtRGWh+5VsTebn6A== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt353.oracle.com [141.146.40.153] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090205.4B98A0FB.0028:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 11 Mar 2010 02:52:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35517 Archived-At: emacs -Q M-: (x-show-tip "aaaaaaaa" (selected-frame) '((left . 30) (top . 40)) 10 0 0) Or something similar. Instead of displaying the tooltip frame at the absolute location specified by `left' and `top', it always displays it at the mouse position plus the DX and DY (0 and 0 here). Also, the tooltip does not remain displayed for the 10 seconds specified, but perhaps that is due to the way this is evaluated (M-:). As another example (easier to see), evaluate this: (let ((tooltip-frame-parameters '((nil . "tooltip") (left . 100) (top . 200)))) (tooltip-show "aaaaaaaaa" nil)) In this case, the tooltip is always shown with an offset of 5 (the default DX and DY) from the mouse pointer. The `left' and `right' parameters are ignored. Even the doc string of `tooltip-frame-parameters' says that `left' and `top' should be respected. Instead, the mouse pointer position is always used. Another illustration: M-: (my-show "aaaaaa" nil 100 200) where `my-show' is the same as `tooltip-show' except that it accepts optional LEFT and TOP params, to override `tooltip-frame-parameters': (defun my-show (text &optional use-echo-area left top) "..." (if use-echo-area (tooltip-show-help-non-mode text) (condition-case error (let ((params (copy-sequence tooltip-frame-parameters)) (fg (face-attribute 'tooltip :foreground)) (bg (face-attribute 'tooltip :background))) (when (stringp fg) (setq params (tooltip-set-param params 'foreground-color fg)) (setq params (tooltip-set-param params 'border-color fg))) (when (stringp bg) (setq params (tooltip-set-param params 'background-color bg))) (when left (setq params (tooltip-set-param params 'left left))) (when top (setq params (tooltip-set-param params 'top top))) (x-show-tip (propertize text 'face 'tooltip) (selected-frame) params tooltip-hide-delay tooltip-x-offset tooltip-y-offset)) (error (message "Error while displaying tooltip: %s" error) (sit-for 1) (message "%s" text))))) `tooltip-show' should in fact be modified in this way (adding optional LEFT and TOP), IMO, so that you can easily show the tooltip anywhere without first adding the location to `tooltip-frame-parameters' (e.g. as in the `let' example). But the bug needs to be fixed first. In GNU Emacs 23.1.92.1 (i386-mingw-nt5.1.2600) of 2010-02-20 on LENNART-69DE564 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping'