From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: How to restore the layout? Date: Sun, 30 Jun 2013 09:51:25 +0200 Message-ID: <4E4C522D-DBCC-4133-A764-82C9CCE81E2D@swipnet.se> References: <51C5AA68.4000204@alice.it> <51CA0D4C.7080204@alice.it> <51CC3E42.7020409@alice.it> <51CC4CC1.3030202@alice.it> <51CC8403.1030009@gmx.at> <51CCA56A.8000508@gmx.at> <51CD49CF.1090103@gmx.at> <2FB4C583-960C-4DA8-8B2E-29DF8D96770E@swipnet.se> <51CD6324.2040504@gmx.at> <834ncifkq9.fsf@gnu.org> <83zjuae19s.fsf@gnu.org> <83r4fmdsw5.fsf@gnu.org> <85k3ldtion.fsf@member.fsf.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1372578696 17959 80.91.229.3 (30 Jun 2013 07:51:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Jun 2013 07:51:36 +0000 (UTC) Cc: Stephen Leake , Emacs developers To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 30 09:51:36 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UtCQ4-0000jK-Gj for ged-emacs-devel@m.gmane.org; Sun, 30 Jun 2013 09:51:36 +0200 Original-Received: from localhost ([::1]:54927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtCQ4-00065q-79 for ged-emacs-devel@m.gmane.org; Sun, 30 Jun 2013 03:51:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtCQ0-000642-KZ for emacs-devel@gnu.org; Sun, 30 Jun 2013 03:51:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UtCPz-0000VD-4T for emacs-devel@gnu.org; Sun, 30 Jun 2013 03:51:32 -0400 Original-Received: from mailout.melmac.se ([62.20.26.67]:58893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtCPy-0000UL-Li for emacs-devel@gnu.org; Sun, 30 Jun 2013 03:51:31 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 1118D98D5 for ; Sun, 30 Jun 2013 09:51:26 +0200 (CEST) Original-Received: (qmail 21521 invoked by uid 89); 30 Jun 2013 07:51:25 -0000 Original-Received: from h-46-59-42-57.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.57) by mail01.melmac.se with ESMTPA; 30 Jun 2013 07:51:25 -0000 Original-Received: from [172.20.199.13] (unknown [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 9B2A61A037F; Sun, 30 Jun 2013 07:51:25 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.1508) X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 62.20.26.67 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:161328 Archived-At: Hello. 30 jun 2013 kl. 00:18 skrev Juanma Barranquero : > On Sat, Jun 29, 2013 at 10:39 AM, Stephen Leake > wrote: > >> Moving the frame outside the current display is an issue; it would be >> nice if the restore could detect that, and keep the frames in view. > > How can I do that? Is there any way to get from Emacs the maximum > dimensions of a frame in the current display, other than > > (let ((frame (make-frame '((fullscreen . maximized))))) > (prog1 > (cons (frame-width frame) (frame-height frame)) > (delete-frame frame))) > > which has the downside of being noticeable to the user? > Take a look at display-monitor-attributes-list. Jan D.