From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pjb@informatimago.com (Pascal J. Bourguignon) Newsgroups: gmane.emacs.help Subject: Re: setting geometry for new frame Date: Fri, 23 Oct 2009 13:24:16 +0200 Organization: Informatimago Message-ID: <87eiou4alb.fsf@galatea.local> References: <46761990-887a-4784-bc3e-1ed026b0da50@g31g2000vbr.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1256298975 14100 80.91.229.12 (23 Oct 2009 11:56:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2009 11:56:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 23 13:56:08 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N1IkZ-0006kh-1q for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Oct 2009 13:56:07 +0200 Original-Received: from localhost ([127.0.0.1]:50337 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1IkY-0001jJ-IY for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Oct 2009 07:56:06 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-X-Trace: individual.net nFCehWITg8dQWtn1nAydTQcxFpc3NLKVz3++ousFtQZqu9JTgH Cancel-Lock: sha1:YWVjN2U3ZTJmYzIwYTU4YWE3YTFiMWY0ZDlkODFhZmMzMmRlMjJmYg== sha1:U8+bC4dyOMc/F4AKZcCIaVLKzRQ= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin) Original-Xref: news.stanford.edu gnu.emacs.help:174085 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:69167 Archived-At: "mandar.mitra" 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__