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#4748: 23.1; least recently used window - is it? Date: Sun, 18 Oct 2009 01:41:26 -0700 Message-ID: <4D3E3BC7322D4F79988F82996F46CE28@us.oracle.com> Reply-To: Drew Adams , 4748@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1255857388 22767 80.91.229.12 (18 Oct 2009 09:16:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Oct 2009 09:16:28 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 18 11:16:18 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MzRjx-0005Qw-5B for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Oct 2009 11:07:49 +0200 Original-Received: from localhost ([127.0.0.1]:43593 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzRjw-0000sg-K9 for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Oct 2009 05:07:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MzRjU-0000iV-Sw for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 05:07:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MzRjO-0000gc-Ro for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 05:07:19 -0400 Original-Received: from [199.232.76.173] (port=41784 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzRjO-0000gW-NO for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 05:07:14 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52167) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MzRjO-00084E-0I for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 05:07:14 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9I97Bpu029531; Sun, 18 Oct 2009 02:07:12 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9I8o7hH025513; Sun, 18 Oct 2009 01:50:07 -0700 Resent-Date: Sun, 18 Oct 2009 01:50:07 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sun, 18 Oct 2009 08:50:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4748 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125585533324453 (code B ref -1); Sun, 18 Oct 2009 08:50:06 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 18 Oct 2009 08:42:13 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9I8gBOT024450 for ; Sun, 18 Oct 2009 01:42:13 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MzRL9-0007I6-LW for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 04:42:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MzRL4-00079Y-Ie for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 04:42:10 -0400 Original-Received: from [199.232.76.173] (port=58505 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzRL4-00079N-B0 for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 04:42:06 -0400 Original-Received: from acsinet11.oracle.com ([141.146.126.233]:44456) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MzRL3-0004Vj-KF for bug-gnu-emacs@gnu.org; Sun, 18 Oct 2009 04:42:06 -0400 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by acsinet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n9I8gLbK025407 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 18 Oct 2009 08:42:23 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n9I8VGFV013732 for ; Sun, 18 Oct 2009 08:41:58 GMT Original-Received: from abhmt018.oracle.com by acsmt353.oracle.com with ESMTP id 20463444481255855293; Sun, 18 Oct 2009 01:41:33 -0700 Original-Received: from dradamslap1 (/24.5.184.158) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 18 Oct 2009 01:41:32 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcpPzseqqz2L+hSMSvqcrKyKkOv7TA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt358.oracle.com [141.146.40.158] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090207.4ADAD4D5.00CE:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 18 Oct 2009 05:07:19 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32055 Archived-At: Consider it a question rather than a bug, if you prefer. Why shouldn't `get-lru-window' respect strictly what its name implies, instead of having this exception that has *nothing* to do with recency of usage? "If any full-width windows are present, it only considers these." Actually, it's not clear whether that description from the Elisp manual refers only to the behavior of function `get-lru-window' or to the definition of "least recently used window" itself. I'm guessing it's both. (What is "it" in the sentence quoted?) So my question is really why the "least recently used window" isn't in fact always the least recently used window? It seems clear that code cannot depend on this lru concept behaving according to the chronology of window access. To control which window is the lru means you must consider not only window-access chronology but whether there are full-width windows etc. What I would really like to be able to is to _set_ the least recently used window - however Emacs wants to define that. I would do that so that code that then uses the least recently used window would use the window I specified (by having set it as the least recently used). That might even be the selected window in some cases. Currently, it doesn't seem easy to predict or control which window is used by things such as `pop-to-buffer' that try to use another window. Being able to set the so-called lruw that such functions use would make things a lot more straightforward. In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-29 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4)'