From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu 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, 31 Mar 2010 08:33:25 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <87pr38rnan.fsf@stupidchicken.com> <83pr2mympy.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: dough.gmane.org 1269994663 8389 80.91.229.12 (31 Mar 2010 00:17:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 31 Mar 2010 00:17:43 +0000 (UTC) Cc: Chong Yidong , 5703@debbugs.gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 31 02:17:38 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 1Nwlcn-0000vl-O5 for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Mar 2010 02:17:38 +0200 Original-Received: from localhost ([127.0.0.1]:36592 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwlIC-0000nP-AP for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Mar 2010 19:56:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwlHk-0000PQ-Or for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 19:55:52 -0400 Original-Received: from [140.186.70.92] (port=53142 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwlHh-0000Kf-Vv for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 19:55:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwlHc-0001qX-4I for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 19:55:47 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41858) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwlHc-0001qT-1Z for bug-gnu-emacs@gnu.org; Tue, 30 Mar 2010 19:55:44 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nwkwc-0000rW-1i; Tue, 30 Mar 2010 19:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: YAMAMOTO Mitsuharu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Mar 2010 23:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5703 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: Original-Received: via spool by 5703-submit@debbugs.gnu.org id=B5703.12699920133306 (code B ref 5703); Tue, 30 Mar 2010 23:34:01 +0000 Original-Received: (at 5703) by debbugs.gnu.org; 30 Mar 2010 23:33:33 +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 1Nwkw9-0000rH-3X for submit@debbugs.gnu.org; Tue, 30 Mar 2010 19:33:33 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwkw6-0000rC-IH for 5703@debbugs.gnu.org; Tue, 30 Mar 2010 19:33:32 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 622F2C0557; Wed, 31 Mar 2010 08:33:25 +0900 (JST) In-Reply-To: <83pr2mympy.fsf@gnu.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 =?UTF-8?Q?(Shij=C5=8D)?= APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 30 Mar 2010 19:34:02 -0400 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:35827 Archived-At: >>>>> On Tue, 30 Mar 2010 16:15:37 +0300, Eli Zaretskii said: > compute_tip_xy relies on the tip frame's parameters (passed to it > through the `parms' argument) for figuring out where to display the > tooltip. But by the time compute_tip_xy is called, the `top' and > `left' parameters were already removed from `parms'. That's because > x_create_tip_frame, called a few lines before that, calls > x_figure_window_size, which sets up f->top_pos and f->left_pos from > `top' and `left', and as a side effect removes them from the frame's > parameters alist. > I see almost identical code in xfns.c versions of these functions, > so I'd be interested to hear how come the X version does not suffer > from the same problem. That's because the patch below, although it > does the job, feels a bit kludgey, and I wonder if there a cleaner > way. Because x_create_tip_frame in xfns.c makes a copy of `parms'? YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp