From: "Mickey Ferguson" <MFerguson@peinc.com>
Subject: Re: bug in set-frame-position?
Date: Tue, 18 Jan 2005 09:22:48 -0800 [thread overview]
Message-ID: <csjgkr$g32$1@quimby.gnus.org> (raw)
In-Reply-To: mailman.13899.1106054097.27204.bug-gnu-emacs@gnu.org
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" <franl@world.std.com> 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 <at> world . std . com
>
>
>
next prev parent reply other threads:[~2005-01-18 17:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-17 21:58 bug in set-frame-position? Mickey Ferguson
2005-01-18 12:24 ` Francis Litterio
[not found] ` <mailman.13899.1106054097.27204.bug-gnu-emacs@gnu.org>
2005-01-18 17:22 ` Mickey Ferguson [this message]
2005-01-19 11:49 ` Francis Litterio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='csjgkr$g32$1@quimby.gnus.org' \
--to=mferguson@peinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).