all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: <bug-gnu-emacs@gnu.org>
Subject: bug#4748: 23.1; least recently used window - is it?
Date: Sun, 18 Oct 2009 01:41:26 -0700	[thread overview]
Message-ID: <4D3E3BC7322D4F79988F82996F46CE28@us.oracle.com> (raw)

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)'
 







             reply	other threads:[~2009-10-18  8:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-18  8:41 Drew Adams [this message]
2009-10-18 10:24 ` bug#4748: 23.1; least recently used window - is it? martin rudalics
2009-10-18 16:30   ` Drew Adams
2009-10-18 17:36     ` martin rudalics
2009-10-18 18:48       ` Drew Adams
2009-10-19  7:36         ` martin rudalics
2009-10-19  1:58     ` Stefan Monnier
2009-10-19  6:28       ` Drew Adams
2009-10-19 13:57         ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D3E3BC7322D4F79988F82996F46CE28@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=4748@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.