From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: [drew.adams@oracle.com: RE: set-frame-position - is it a bug?] Date: Wed, 12 Jul 2006 12:07:59 -0400 Message-ID: <87hd1m7qn4.fsf@stupidchicken.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1152720821 25265 80.91.229.2 (12 Jul 2006 16:13:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Jul 2006 16:13:41 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 12 18:13:35 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G0hKz-0000b8-TK for ged-emacs-devel@m.gmane.org; Wed, 12 Jul 2006 18:13:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G0hKz-0002Vz-9x for ged-emacs-devel@m.gmane.org; Wed, 12 Jul 2006 12:13:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G0hFH-0005By-60 for emacs-devel@gnu.org; Wed, 12 Jul 2006 12:07:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G0hFF-0005AB-Vn for emacs-devel@gnu.org; Wed, 12 Jul 2006 12:07:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G0hFF-0005A0-R4 for emacs-devel@gnu.org; Wed, 12 Jul 2006 12:07:25 -0400 Original-Received: from [18.19.1.138] (helo=cyd) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G0hGo-0000y6-Dw; Wed, 12 Jul 2006 12:09:02 -0400 Original-Received: by cyd (Postfix, from userid 1000) id 0A8384E2B4; Wed, 12 Jul 2006 12:08:00 -0400 (EDT) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Wed, 12 Jul 2006 11:36:33 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:56952 Archived-At: Richard Stallman writes: > Would someone please try to debug this? I can't reproduce this. Maybe this is a Windoze-only bug, or it's fixed in the current CVS. (On GNU/Linux, there is a different frame movement bug, which was previously discussed on this list, that's not caused by Emacs but by the Metacity window manager [apparently the latest version of Metacity doesn't like programs to specify window positions; other window managers work OK].) > To: "Emacs-Pretest-Bug" > Date: Sat, 10 Jun 2006 09:56:26 -0700 > > This bug was apparently never fixed. To reproduce, simply resize a frame > horizontally so that the menu-bar wraps, then change the 'left frame > parameter. > > (setq left-pos (cdr (assq 'left (frame-parameters)))) > (modify-frame-parameters (selected-frame) > (list (cons 'left (+ 30 left-pos)))) > > The frame moves down, as well as right. > > Sent: Friday, August 05, 2005 7:39 AM > To: help-gnu-emacs@gnu.org > Cc: Emacs-Devel > Subject: RE: set-frame-position - is it a bug? > > the intention of the following code > (setq fpx (cdr (assoc 'left (frame-parameters)))) > (setq fpy (cdr (assoc 'top (frame-parameters)))) > (setq fpx (+ 1 fpx)) > (set-frame-position (next-frame) fpx fpy) > is to move the frame honizontally 1 pixel right; > but as a side-effect I get a vertical move as well. > Is there something wrong with my code?