From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Mickey Ferguson" Newsgroups: gmane.emacs.bugs Subject: Re: bug in set-frame-position? Date: Tue, 18 Jan 2005 09:22:48 -0800 Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1106069578 5034 80.91.229.6 (18 Jan 2005 17:32:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Jan 2005 17:32:58 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 18 18:32:47 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CqxDi-0008OL-00 for ; Tue, 18 Jan 2005 18:32:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CqxPc-00013T-RG for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Jan 2005 12:45:04 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!newsfeeder.concepts.nl!193.201.147.73.MISMATCH!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 39 Original-NNTP-Posting-Host: 67.151.52.10 Original-X-Trace: quimby.gnus.org 1106068956 16482 67.151.52.10 (18 Jan 2005 17:22:36 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Tue, 18 Jan 2005 17:22:36 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Original-Xref: shelby.stanford.edu gnu.emacs.bug:37524 Original-To: bug-gnu-emacs@gnu.org 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: main.gmane.org gmane.emacs.bugs:10480 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:10480 Then maybe we should consider this a feature enhancement - that "-0" should be interpreted as a negative number with zero offset, just like "-1" is a negative number with 1 offset. Whether or not this is feasible here, I cannot say. But I know that other systems handle "-0" this way. "Francis Litterio" wrote in message news:mailman.13899.1106054097.27204.bug-gnu-emacs@gnu.org... > Mickey Ferguson wrote: > > > Now what I want is to be able to specify my window (frame) to be up against > > the right-hand side of my screen. So I thought I would use (set-frame > > position (selected-frame) -0 0). Nope, it interprets -0 the same as 0. The > > best I could do was -1 0, which left a little space between my window and > > the edge of the screen. Is there any way to specify it flush-right? Or is > > this a bug where it should interpret -0 as meaning flush-right, but it's > > not? Or maybe there's another way to do this? > > If you know the size of the small gap between the frame's right border > and the right edge of your display (say, 3 pixels), then you could do > this: > > (set-frame-position frame -1 ypos) > (set-frame-position frame (+ 3 (frame-parameter frame 'left)) ypos) > > This may be caused by the way that function x_calc_absolute_position() > converts negative left and top frame offsets into equivalent positive > offsets for your windowing system. > -- > Francis Litterio > franl world . std . com > > >