From: pjb@informatimago.com (Pascal J. Bourguignon)
To: help-gnu-emacs@gnu.org
Subject: Re: setting geometry for new frame
Date: Fri, 23 Oct 2009 13:24:16 +0200 [thread overview]
Message-ID: <87eiou4alb.fsf@galatea.local> (raw)
In-Reply-To: 46761990-887a-4784-bc3e-1ed026b0da50@g31g2000vbr.googlegroups.com
"mandar.mitra" <mandar.mitra@gmail.com> writes:
> Hello,
>
> I've been trying to use make-frame to create a new frame at a specific
> location as follows:
>
> (make-frame '((left . +400) (top . +0)))
>
> But when I type this in the scratch buffer, and do an eval, the newly
> created frame doesn't follow my left and top specifications. Every
> time, the new frame seems to be created at roughly the same location
> relative to the initial frame.
>
> Is there some way to position a newly created frame at a specific
> location (as is done using the -geometry option of various X
> commands)?
1- The window manager has its say positionning new windows. Are you
sure it's not your window manager that overrides the frame
position?
2- The function make-frame may have been advised, and some advice may
modify the positionning parameters. Evaluate:
(append (ad-get-enabled-advices 'make-frame 'before)
(ad-get-enabled-advices 'make-frame 'around))
3- Parameters may also come from the default-frame-alist variable
and form the X resource file, but those passed to the make-frame
function should shadow them.
4- Finally, you may position the frame after the fact with
set-frame-position.
--
__Pascal Bourguignon__
next prev parent reply other threads:[~2009-10-23 11:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-23 10:08 setting geometry for new frame mandar.mitra
2009-10-23 11:24 ` Pascal J. Bourguignon [this message]
2009-10-24 18:25 ` [SOLVED] " mandar.mitra
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=87eiou4alb.fsf@galatea.local \
--to=pjb@informatimago.com \
--cc=help-gnu-emacs@gnu.org \
/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).