unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Mickey Ferguson" <MFerguson@peinc.com>
Subject: Re: how to set window starting coordinates?
Date: Mon, 17 Jan 2005 09:45:45 -0800	[thread overview]
Message-ID: <csgtju$gsf$1@quimby.gnus.org> (raw)
In-Reply-To: m2r7kn5vfd.fsf@Jesper-Harders-Computer.local

"Jesper Harder" <harder@myrealbox.com> wrote in message
news:m2r7kn5vfd.fsf@Jesper-Harders-Computer.local...
> "Mickey Ferguson" <MFerguson@peinc.com> writes:
>
> > I'm using GNU Emacs 21.3.1 on Windows XP.  Is there a way for me to set
the
> > location and size of the window when I first start it from the windows
Start
> > Menu (runemacs.exe)?
>
> See <http://www.gnu.org/software/emacs/windows/faq4.html>.

This looks promising.  From the FAQ:

To reposition an Emacs frame using elisp, you can use the set-frame-position
function. For example, to move the current frame to the offset (10, 30), you
could use:

    (set-frame-position (selected-frame) 10 30)

I also used M-x apropos on the set-frame-position, and it says this:

(set-frame-position FRAME XOFFSET YOFFSET)

Sets position of FRAME in pixels to XOFFSET by YOFFSET.
This is actually the position of the upper left corner of the frame.
Negative values for XOFFSET or YOFFSET are interpreted relative to
the rightmost or bottommost possible position (that stays within the
screen).

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?

  reply	other threads:[~2005-01-17 17:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-15  1:07 how to set window starting coordinates? Mickey Ferguson
2005-01-15  1:32 ` Jesper Harder
2005-01-17 17:45   ` Mickey Ferguson [this message]
2005-01-17 13:57 ` Peter Dyballa
2005-01-17 20:44 ` david.boon
2005-01-17 21:51   ` Mickey Ferguson
2005-01-18  3:20     ` Quokka
2005-01-18 17:48       ` how to set frame parameters? Mickey Ferguson
2005-01-18 18:10         ` Drew Adams

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='csgtju$gsf$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.
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).