From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ulrich Neumerkel Newsgroups: gmane.emacs.bugs Subject: modify-frame-parameters behaviour broken Date: Sun, 13 Jan 2008 05:33:45 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1200202537 20301 80.91.229.12 (13 Jan 2008 05:35:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Jan 2008 05:35:37 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 13 06:35:54 2008 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.50) id 1JDvVh-0004Sv-D9 for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Jan 2008 06:35:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDvVJ-0006Rr-9W for geb-bug-gnu-emacs@m.gmane.org; Sun, 13 Jan 2008 00:35:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JDuXk-0004L7-Pn for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2008 23:33:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JDuXi-0004Hr-Lb for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2008 23:33:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDuXi-0004Hg-G5 for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2008 23:33:54 -0500 Original-Received: from a4.complang.tuwien.ac.at ([128.130.173.65]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JDuXi-0001tK-Oa for bug-gnu-emacs@gnu.org; Sat, 12 Jan 2008 23:33:54 -0500 Original-Received: from ulrich by a4.complang.tuwien.ac.at with local (Exim 4.63) (envelope-from ) id 1JDuXZ-0005hX-3a for bug-gnu-emacs@gnu.org; Sun, 13 Jan 2008 05:33:45 +0100 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-Mailman-Approved-At: Sun, 13 Jan 2008 00:35:23 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:17334 Archived-At: --text follows this line-- 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 bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: I am trying to set the geometry of a frame while running. The set values are interpreted against the usual convention. I can observe the desired behaviour in emacs-21.4 and earlier emacsen but not in 22.1 Reproduction: To be sure that no window-manager interferes, start a failsafe-session with XGA or a higher resolution. # Then do xrdb < /dev/null # to avoid any undesired X-resource interference. # Then emacs --no-init-file this-report.txt Now eval the function below and look at the value of the list. (let () (defun reapply-geometry (gupu-geometry) (interactive) (cond (gupu-geometry (modify-frame-parameters (selected-frame) gupu-geometry)))) (list (assoc 'left (frame-parameters)) (reapply-geometry '((user-position . t) (user-size . t) (left + -7))) (assoc 'left (frame-parameters)) (emacs-version))) => ((left . 0) nil (left . 420) "GNU Emacs 22.1.2 (i686-pc-linux-gnu, X toolkit) of 2008-01-12 on gupu.complang.tuwien.ac.at") ((left . 0) nil (left + -7) "GNU Emacs 21.4.1 (i686-pc-linux-gnu, X toolkit) of 2008-01-13 on gupu.complang.tuwien.ac.at") ((left . 0) nil (left + -7) "GNU Emacs 21.3.50.1 (i686-pc-linux-gnu, X toolkit) of 2003-11-26 on gupu.complang.tuwien.ac.at") ((left . 0) nil (left + -5) "GNU Emacs 21.3.3 (i686-pc-linux-gnu, X toolkit) of 2003-11-17 on gupu.complang.tuwien.ac.at") ((left . 0) nil (left + -7) "GNU Emacs 21.2.50.2 (i686-pc-linux-gnu, X toolkit) of 2002-04-07 on gupu.complang.tuwien.ac.at") ((left . 0) nil (left + -7) "GNU Emacs 20.7.1 (i386-redhat-linux-gnu, X toolkit) of Fri Mar 16 2001 on porky.devel.redhat.com") So there have been already versions of emacs that did not correctly interpret the geometries (21.3.3). But 22.1.2 is definitely different: The window jumps to the right side of the screen. 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 /opt/gupu/share/emacs/22.1/etc/DEBUG for instructions. In GNU Emacs 22.1.2 (i686-pc-linux-gnu, X toolkit) of 2008-01-12 on gupu.complang.tuwien.ac.at Windowing system distributor `The XFree86 Project, Inc', version 11.0.4003 configured using `configure '--without-toolkit-scroll-bars' '--prefix' '/opt/gupu'' 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: Text Minor modes in effect: 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 line-number-mode: t Recent input: C-l C-s ( C-a C-M-f C-u C-x C-e M-x r e p o r Recent messages: ("/opt/gupu/bin/emacs-22.1" "--no-init-file" "bug6-rep.txt") For information about the GNU Project and its goals, type C-h C-p. [2 times] Mark saved where search started Loading emacsbug... Loading regexp-opt...done Loading emacsbug...done