From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: set-frame-position problem(?) Date: Sat, 12 Jan 2008 13:19:53 +0100 Message-ID: <4788B069.3000005@swipnet.se> References: <47880831.7060202@ig.com.br> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1200140467 22605 80.91.229.12 (12 Jan 2008 12:21:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2008 12:21:07 +0000 (UTC) Cc: "GNU Emacs \(devel\)" To: Vinicius Jose Latorre Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 12 13:21:27 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JDfMd-0006nu-BA for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2008 13:21:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDfMF-0007rm-2B for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2008 07:21:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JDfMA-0007rN-R8 for emacs-devel@gnu.org; Sat, 12 Jan 2008 07:20:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JDfM8-0007qK-DT for emacs-devel@gnu.org; Sat, 12 Jan 2008 07:20:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDfM8-0007qH-7U for emacs-devel@gnu.org; Sat, 12 Jan 2008 07:20:56 -0500 Original-Received: from av12-1-sn2.hy.skanova.net ([81.228.8.185]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JDfM7-00072n-Pf for emacs-devel@gnu.org; Sat, 12 Jan 2008 07:20:56 -0500 Original-Received: by av12-1-sn2.hy.skanova.net (Postfix, from userid 502) id 909703888F; Sat, 12 Jan 2008 13:20:54 +0100 (CET) Original-Received: from smtp4-1-sn2.hy.skanova.net (smtp4-1-sn2.hy.skanova.net [81.228.8.92]) by av12-1-sn2.hy.skanova.net (Postfix) with ESMTP id 6BBC237F89; Sat, 12 Jan 2008 13:20:54 +0100 (CET) Original-Received: from husetbladh.homeip.net (90-231-102-24-no59.tbcn.telia.com [90.231.102.24]) by smtp4-1-sn2.hy.skanova.net (Postfix) with ESMTP id 17A4C37E43; Sat, 12 Jan 2008 13:20:53 +0100 (CET) User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) In-Reply-To: <47880831.7060202@ig.com.br> X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:86786 Archived-At: Can you please use report-emacs-bug so we can see how your Emacs has been built (Gtk+, OSX, W32, Lucid, or something else)? Thanks, Jan D. Vinicius Jose Latorre skrev: > > I'm not sure if there is a bug/problem with set-frame-position > or if I'm missing something. > > Anyway, please, follow the steps below: > > 1. start Emacs: emacs -Q > > 2. define and evaluate the following function: > > (defun my-frame-test () > (let ((mpos (cdr (mouse-pixel-position))) > (left (frame-parameter nil 'left)) > (top (frame-parameter nil 'top)) > (frame (select-frame > (make-frame > '((title . ": TEST :") > (name . ": TEST :") > (width . 40) > (height . 10) > (user-size . t) > (user-position . t) > (menu-bar-lines . nil) > (tool-bar-lines . nil)))))) > ;; if tool-bar-mode and/or menu-bar-mode is on, > ;; the frame is positioned higher than it should. > (set-frame-position > frame > (+ (or (car mpos) 0) left) > (+ (or (cdr mpos) 0) top)))) > > 3. turn on tool-bar-mode and menu-bar-mode: > > M-: (tool-bar-mode 1) RET > M-: (menu-bar-mode 1) RET > > 4. position the mouse around the middle of the current frame. > > 5. now execute the function: M-: (my-frame-test) RET > Notice that the new frame is positioned higher than the mouse position. > > 6. kill the created frame and turn off tool-bar-mode and menu-bar-mode: > > M-: (tool-bar-mode 0) RET > M-: (menu-bar-mode 0) RET > > 7. again position the mouse around the middle of the current frame > and execute the function: M-: (my-frame-test) RET > Notice that now the new frame is positioned at mouse position. > > > Does anyone have this problem? > > > > > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel