From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.help Subject: Re: New frame position (FSF Emacs on Windows) Date: Fri, 07 Feb 2003 23:04:42 +0100 Organization: http://purl.org/harder/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1044655800 23379 80.91.224.249 (7 Feb 2003 22:10:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 7 Feb 2003 22:10:00 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18hGh4-00064r-00 for ; Fri, 07 Feb 2003 23:09:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18hGhZ-0000Ts-04 for gnu-help-gnu-emacs@m.gmane.org; Fri, 07 Feb 2003 17:10:29 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!iad-peer.news.verio.net!news.verio.net!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!news.tele.dk!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6443 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6443 Paul Moore writes: > I currently use XEmacs 21.5.10 on Windows (2000 and XP), mainly for > news/mail via Gnus and occasionally for general editing tasks. > > Anyway, one annoying feature in FSF Emacs is that when I open a new > frame (for example, with C-X 5 f) it appears in *exactly* the same > position on screen as the current frame. It therefore looks like I > didn't open a new frame! This doesn't help you, but on X this usually something you adjust in you window manager. For me a new frame is placed slightly offset from the previous one by default. There's also a plethora of other placement algorithms I could select. > How can I get the frame creation behaviour I want from FSF Emacs? I'm not sure exactly which algorithm you want. But this should give you an idea: It places a new frame offset by 15 pixels from the previous: (defun my-frame-position () (let ((left (or (cdr (assq 'left default-frame-alist)) 0)) (top (or (cdr (assq 'top default-frame-alist)) 0))) (setq default-frame-alist (cons (cons 'left (+ left 15)) (assq-delete-all 'left default-frame-alist)) default-frame-alist (cons (cons 'top (+ top 15)) (assq-delete-all 'top default-frame-alist))))) (add-to-list 'default-frame-alist '(user-position . t)) (add-hook 'before-make-frame-hook 'my-frame-position)