From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#14964: 24.3.50; doc of `compare-window-configurations' Date: Sun, 28 Jul 2013 07:49:42 -0700 (PDT) Message-ID: <25701584-34ff-4754-8d10-7f2d223205ac@default> References: <51e98138-a20c-48ad-bea2-de67eb6b04b5@default> <51F3826F.9060600@gmx.at> <51F4D8FF.6000703@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1375023024 28480 80.91.229.3 (28 Jul 2013 14:50:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Jul 2013 14:50:24 +0000 (UTC) Cc: Juanma Barranquero , 14964@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 28 16:50:25 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1V3SIi-0006BQ-BX for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Jul 2013 16:50:24 +0200 Original-Received: from localhost ([::1]:56588 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3SIi-00034T-24 for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Jul 2013 10:50:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3SIV-000334-TI for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2013 10:50:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3SIN-0007h6-Aw for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2013 10:50:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3SIN-0007gE-73 for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2013 10:50:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V3SIM-0005fD-MJ for bug-gnu-emacs@gnu.org; Sun, 28 Jul 2013 10:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Jul 2013 14:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14964 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14964-submit@debbugs.gnu.org id=B14964.137502299621740 (code B ref 14964); Sun, 28 Jul 2013 14:50:02 +0000 Original-Received: (at 14964) by debbugs.gnu.org; 28 Jul 2013 14:49:56 +0000 Original-Received: from localhost ([127.0.0.1]:54503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V3SIG-0005eY-1t for submit@debbugs.gnu.org; Sun, 28 Jul 2013 10:49:56 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:39635) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V3SIC-0005e6-49 for 14964@debbugs.gnu.org; Sun, 28 Jul 2013 10:49:52 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r6SEnjFJ029407 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 28 Jul 2013 14:49:45 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6SEni58018958 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 28 Jul 2013 14:49:44 GMT Original-Received: from abhmt107.oracle.com (abhmt107.oracle.com [141.146.116.59]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6SEnivJ028986; Sun, 28 Jul 2013 14:49:44 GMT In-Reply-To: <51F4D8FF.6000703@gmx.at> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7 (607090) [OL 12.0.6668.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:76727 Archived-At: > > 3. I would also like to see functions that accept or produce window an= d > > frame configurations optionally accept and produce also Lisp-readab= le > > equivalents. > > > > IOW, today, such configurations always use actual window and frame > > objects, which are not Lisp-readable. I would like to see them option= ally > > (e.g. via optional arguments) use Lisp-readable frame and window state= s. > > IOW, make it simple to persist such configurations. >=20 > With window states I tried to approximate window configurations as close > as possible. I don't know enough about frames to do the same for them. > I bet that currently Juanma knows best whether this can be done in some > reasonable way. Yes, I am hoping exactly that. His work with desktop.el will apparently us= e Lisp-readable representations of sets of frames. I hope this will be applied/extended to the frame-configuration functions, so we can optionally get Lisp-readable frame configurations (with the same properties and interfaces as we have now). E.g., a frame config would continue to look like this, even when Lisp-readable: (frame-configuration FRAME+WINDOW-CONFIG...) where FRAME+WINDOW-CONFIG would be a Lisp-readable representation of a fram= e (a set of frame parameters, preferably at least the same ones recorded now) plus the frame's window configuration. And likewise for window configurations. We have `window-state-(get|put)', but I would also like to see Lisp-readable window configurations. IOW, wra= p with (window-configuration...) what `window-state-get' with non-nil WRITABL= E arg returns. E.g.: (window-configuration (((min-height . 4) (min-width . 10) (min-height-ignore . 2) (min-width-ignore . 5) (min-height-safe . 1) (min-width-safe . 2)) leaf (last . t) (total-height . 63) (total-width . 112) (normal-height . 1.0) (normal-width . 1.0) (buffer "foobar.el" (selected . t) (hscroll . 0) (fringes 0 0 nil) (margins nil) (scroll-bars 21 3 t nil) (vscroll . 0) (dedicated) (point . 426354) (start . 424331)))) Let me know if you (e.g. Juanma) prefer that I file this as a separate bug (enhancement request). If so, I will, repeating what I've said here. Thanks to both of you for bring window and frame states to the Lisp world. On that subject, I would like to see either: a. these structures documented, i.e., the structure advertised as such, or b. access functions defined for their parts. IOW, either an open, advertised structure or a black box but providing advertised ways to get at the various components.