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#21305: 25.0.50; `get-buffer-window-list' doc - what order? Date: Sat, 22 Aug 2015 07:31:38 -0700 (PDT) Message-ID: <9aa1dcd7-1781-41aa-bf47-7b280b26da1e@default> References: <<089f48ed-6ce9-4753-abcf-3f86d43a278e@default>> <<83vbc8iyut.fsf@gnu.org>> <5430f5a7-2939-4f96-8c6c-3e820ffcfd6b@default> <55D74386.6010708@gmx.at> <7036da11-d296-45a9-b6ee-d7b68830927e@default> <55D74AA3.1070202@gmx.at> <1b17a036-c525-4dbc-84fa-cc8adc2b6488@default> <50fbb71c-8a6d-45b4-a467-a31bcc73ac09@default> <55D8195A.4040804@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="__1440253898967284647abhmp0008.oracle.com" X-Trace: ger.gmane.org 1440253949 1938 80.91.229.3 (22 Aug 2015 14:32:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Aug 2015 14:32:29 +0000 (UTC) Cc: 21305@debbugs.gnu.org To: martin rudalics , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 22 16:32:14 2015 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 1ZT9q8-0000KD-B3 for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Aug 2015 16:32:12 +0200 Original-Received: from localhost ([::1]:46756 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZT9q7-0003jH-IO for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Aug 2015 10:32:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZT9q3-0003hY-Pu for bug-gnu-emacs@gnu.org; Sat, 22 Aug 2015 10:32:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZT9py-0002x9-QS for bug-gnu-emacs@gnu.org; Sat, 22 Aug 2015 10:32:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZT9py-0002x5-NS for bug-gnu-emacs@gnu.org; Sat, 22 Aug 2015 10:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZT9py-0006Jy-GY for bug-gnu-emacs@gnu.org; Sat, 22 Aug 2015 10:32: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: Sat, 22 Aug 2015 14:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21305 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21305-submit@debbugs.gnu.org id=B21305.144025390524275 (code B ref 21305); Sat, 22 Aug 2015 14:32:02 +0000 Original-Received: (at 21305) by debbugs.gnu.org; 22 Aug 2015 14:31:45 +0000 Original-Received: from localhost ([127.0.0.1]:35285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZT9pg-0006JT-Ti for submit@debbugs.gnu.org; Sat, 22 Aug 2015 10:31:45 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:50825) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZT9pf-0006JL-2n for 21305@debbugs.gnu.org; Sat, 22 Aug 2015 10:31:43 -0400 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t7MEVeVq017998 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 22 Aug 2015 14:31:40 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t7MEVeE6004718 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 22 Aug 2015 14:31:40 GMT Original-Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t7MEVdrJ014346; Sat, 22 Aug 2015 14:31:39 GMT In-Reply-To: <55D8195A.4040804@gmx.at> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: userv0022.oracle.com [156.151.31.74] 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: 208.118.235.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:105696 Archived-At: --__1440253898967284647abhmp0008.oracle.com Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable > `get-buffer-window-list' is in window.el. Couldn't you try giving > it a fourth argument, say SORT, which, if `lru-first' or `mru-first', > would cause it to return the windows in the corresponding order? Patch attached. --__1440253898967284647abhmp0008.oracle.com Content-Type: application/octet-stream; name="window-2015-08-22.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="window-2015-08-22.patch" ZGlmZiAtdXc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ikKLQkoc2V0cSB3aW5kb3dzIChjb25zIHdpbmRvdyB3aW5kb3dzKSkp KQotICAgIChucmV2ZXJzZSB3aW5kb3dzKSkpCisgICAgICAod2hlbiAoZXEgKHdpbmRvdy1idWZm ZXIgd2luZG93KSBidWZmZXIpCShzZXRxIHdpbmRvd3MgIChjb25zIHdpbmRvdyB3aW5kb3dzKSkp KQorICAgIChzZXRxIHdpbmRvd3MgIChucmV2ZXJzZSB3aW5kb3dzKSkKKyAgICAod2hlbiBzb3J0 CisgICAgICAobGV0ICgocHJlZCAgKGNhc2Ugc29ydAorICAgICAgICAgICAgICAgICAgICAgKGxy dSAobGFtYmRhICh3MSB3MikgKHRpbWUtbGVzcy1wICh3aW5kb3ctdXNlLXRpbWUgdzEpICh3aW5k b3ctdXNlLXRpbWUgdzIpKSkpCisgICAgICAgICAgICAgICAgICAgICAobXJ1IChsYW1iZGEgKHcx IHcyKSAodGltZS1sZXNzLXAgKHdpbmRvdy11c2UtdGltZSB3MikgKHdpbmRvdy11c2UtdGltZSB3 MSkpKSkpKSkKKyAgICAgICAgKHNldHEgd2luZG93cyAgKHNvcnQgd2luZG93cyBwcmVkKSkpKQor ICAgIHdpbmRvd3MpKQorCiAKIChkZWZ1biBtaW5pYnVmZmVyLXdpbmRvdy1hY3RpdmUtcCAod2lu ZG93KQogICAiUmV0dXJuIHQgaWYgV0lORE9XIGlzIHRoZSBjdXJyZW50bHkgYWN0aXZlIG1pbmli dWZmZXIgd2luZG93LiIK --__1440253898967284647abhmp0008.oracle.com--