From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francis Litterio Newsgroups: gmane.emacs.devel,gmane.emacs.windows Subject: Re: Patch to fix frame positioning with negative top/left values on Windows Date: Fri, 08 Jul 2005 20:30:07 -0400 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1120869517 3173 80.91.229.2 (9 Jul 2005 00:38:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 9 Jul 2005 00:38:37 +0000 (UTC) Cc: help-emacs-windows@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 09 02:38:32 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dr3MV-00041U-Ee for ged-emacs-devel@m.gmane.org; Sat, 09 Jul 2005 02:38:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dr3Nw-00076B-Ls for ged-emacs-devel@m.gmane.org; Fri, 08 Jul 2005 20:40:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dr3Ni-00074v-9I for emacs-devel@gnu.org; Fri, 08 Jul 2005 20:39:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dr3Ne-000735-Kv for emacs-devel@gnu.org; Fri, 08 Jul 2005 20:39:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dr3Ne-00072T-Gj for emacs-devel@gnu.org; Fri, 08 Jul 2005 20:39:42 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1Dr3Qv-0002gT-LV for emacs-devel@gnu.org; Fri, 08 Jul 2005 20:43:06 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Dr3Jq-0003od-ME for emacs-devel@gnu.org; Sat, 09 Jul 2005 02:35:46 +0200 Original-Received: from 206-15-139-154.dialup.ziplink.net ([206.15.139.154]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 09 Jul 2005 02:35:46 +0200 Original-Received: from franl by 206-15-139-154.dialup.ziplink.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 09 Jul 2005 02:35:46 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 22 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 206-15-139-154.dialup.ziplink.net X-Draft-From: ("nntp+news.gmane.org:gmane.emacs.devel" 40566) Gcc: nnfolder:sent-usenet X-Random-Quote: I would therefore like to posit that computing's central challenge, viz. "How not to make a mess of it," has /not/ been met. -- Edsger Dijkstra, 1930-2002 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:rFU5HzScsyPr6R/jITOXXkP5/vg= 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:40666 gmane.emacs.windows:2766 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40666 I wrote: > This patch to the CVS Emacs sources fixes the way that function > x_calc_absolute_position() accounts for the Windows-drawn borders around > a frame when converting a negative 'top or 'left parameter into the > equivalent positive value. I should have said what the symptom of the malfunction is that, on Windows, when you evaluate this Elisp code: (make-frame '((top . -1) (left . -1))) the new frame will not be positioned with its bottom-right corner in the bottom-right of the display. My patch fixes this, even in the case where the use configures non-standard vertical or horizontal frame border sizes. Sorry for the confusion. -- Francis Litterio franl world . std . com