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: Sat, 27 Jul 2013 12:39:33 -0700 (PDT) Message-ID: References: <51e98138-a20c-48ad-bea2-de67eb6b04b5@default> <51F3826F.9060600@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 1374960020 15310 80.91.229.3 (27 Jul 2013 21:20:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Jul 2013 21:20:20 +0000 (UTC) Cc: 14964@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 27 23:20:18 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 1V3BuU-0001YH-B9 for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jul 2013 23:20:18 +0200 Original-Received: from localhost ([::1]:55296 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3BuT-0003mb-UH for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jul 2013 17:20:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3BuI-0003bG-FF for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2013 17:20:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3B7l-000244-LX for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2013 16:30:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3ALU-0004lT-4B for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2013 15:40:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V3ALT-0005H3-0c for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2013 15:40:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Jul 2013 19:40: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.137495398720236 (code B ref 14964); Sat, 27 Jul 2013 19:40:02 +0000 Original-Received: (at 14964) by debbugs.gnu.org; 27 Jul 2013 19:39:47 +0000 Original-Received: from localhost ([127.0.0.1]:53233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V3ALB-0005GJ-WD for submit@debbugs.gnu.org; Sat, 27 Jul 2013 15:39:46 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:22575) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V3AL8-0005Fo-R8 for 14964@debbugs.gnu.org; Sat, 27 Jul 2013 15:39:43 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r6RJdZP1000425 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 27 Jul 2013 19:39:36 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6RJdYKw019736 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 27 Jul 2013 19:39:35 GMT Original-Received: from abhmt107.oracle.com (abhmt107.oracle.com [141.146.116.59]) by userz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6RJdYt4019733; Sat, 27 Jul 2013 19:39:34 GMT In-Reply-To: <51F3826F.9060600@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: ucsinet22.oracle.com [156.151.31.94] 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:76714 Archived-At: > > The doc doesn't tell you enough about what this function does to be ab= le > > to use it. Compare how? What does a non-nil or nil return value mean= ? > > Does the order of the two arguments matter? What's going on here? Wh= at > > for? >=20 > I never understood the purpose of this function. Does anyone use it? 1. Dunno. Not I, at least not until I understand what it does etc. ;-) How anyone could introduce a function like this without offering a clue to what it is about is beyond me. Looking at window.c, from Emacs 24.3, at least, I see that a comment in the code says that this function returns t if the two window configs represent "the same state of affairs", and nil otherwise. It also says that the function is used by Fequal. But actually it seems it is used by internal_equal, which is used by several equality predicates, no= t just `equal': `eql', `equal-including-properties', `memql'. So based on that info I do not understand why this was ever added as a Lisp function. Perhaps someone thought we might do more with it in the future? Or perhaps it was thought that this would be faster than calling `equal' et= c., which have to test a few things before then get to invoking this. Whatever the rationale, this function has been around for a long time. 2. Thank you, BTW, for adding Lisp-level things like `window-state-(get|put= )'. 3. I would also like to see functions that accept or produce window and fra= me configurations optionally accept and produce also Lisp-readable equivalents= . IOW, today, such configurations always use actual window and frame objects, which are not Lisp-readable. I would like to see them optionally (e.g. via optional arguments) use Lisp-readable frame and window states. IOW, make it simple to persist such configurations.