From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vinicius Jose Latorre Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: 23.0.50; set-frame-size problem(?) Date: Sat, 12 Jan 2008 10:46:37 -0300 Message-ID: <4788C4BD.10202@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 1200141896 26321 80.91.229.12 (12 Jan 2008 12:44:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2008 12:44:56 +0000 (UTC) To: "GNU Emacs (pretest)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 12 13:45:19 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 1JDfjh-0004Jx-L0 for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2008 13:45:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDfjJ-0004py-Ka for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2008 07:44:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JDfjG-0004ps-Jj for emacs-devel@gnu.org; Sat, 12 Jan 2008 07:44:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JDfjE-0004pg-3q for emacs-devel@gnu.org; Sat, 12 Jan 2008 07:44:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDfjD-0004pd-VB for emacs-devel@gnu.org; Sat, 12 Jan 2008 07:44:47 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JDfjD-0002Nb-JE for emacs-devel@gnu.org; Sat, 12 Jan 2008 07:44:47 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JDfjD-0008EV-8o for emacs-pretest-bug@gnu.org; Sat, 12 Jan 2008 07:44:47 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JDfjA-0002N1-7a for emacs-pretest-bug@gnu.org; Sat, 12 Jan 2008 07:44:47 -0500 Original-Received: from an-out-0708.google.com ([209.85.132.248]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JDfj9-0002Mr-Se for emacs-pretest-bug@gnu.org; Sat, 12 Jan 2008 07:44:44 -0500 Original-Received: by an-out-0708.google.com with SMTP id c25so289034ana.84 for ; Sat, 12 Jan 2008 04:44:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding:sender; bh=oMyPW+rcaB0oP2baQZB6UzySI9roEe/+XoBMUO0HF0w=; b=LOkAMWwysWNDMZ+230gzM0g7Y1wEH5DYbc+au1nL5/rUS6scnhysmvco+bJoL1E1BcnOF1kM3a2IchGF7iZH0LfT0KOLkGRSIrlD/EhkDmKi6zJKABxxBMYwtuclAOdrFMm0UpIIGF1LeKtrISPgQ/xc+oPgUVssIsZBBjl/VIY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding:sender; b=bP8nqGRLVcwpD7P/b/GdFGykDvR0Sltgj+WscoDi8Q4igzds4Z/ZKx8I8d0XlgfjzQVwjQe+Qyh/xJ7QcS1u7NomaAuc65vB9P5V+ZlKvkDMrsD7Nd1lkgh8st5xWuwDIsqfaO9/dDPIDIZkeg4Yhpjw5Fi5iXOvrvY5QKvZGRU= Original-Received: by 10.101.68.19 with SMTP id v19mr9203569ank.104.1200141882470; Sat, 12 Jan 2008 04:44:42 -0800 (PST) Original-Received: from ?192.168.0.100? ( [201.82.224.123]) by mx.google.com with ESMTPS id 18sm6383319agb.10.2008.01.12.04.44.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 12 Jan 2008 04:44:40 -0800 (PST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071128 SeaMonkey/1.1.7 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:86788 gmane.emacs.pretest.bugs:20603 Archived-At: Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: 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? If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /home/download/emacs/share/emacs/23.0.50/etc/DEBUG for instructions. In GNU Emacs 23.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.12.1) of 2008-01-12 on debian-hillux Windowing system distributor `The X.Org Foundation', version 11.0.10300000 configured using `configure '--prefix=/home/download/emacs'' 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: en_US locale-coding-system: iso-8859-1 default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: display-time-mode: t msb-mode: t show-paren-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r t - e m Recent messages: Timid completion mode is enabled. Loading ispell...done For information about GNU Emacs and the GNU system, type C-h C-a.