From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: window-list
Date: 18 Aug 2004 12:39:43 +0200 [thread overview]
Message-ID: <m34qn0d91s.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <quack.20040817T1025.j5hdr1k77j@hkn.eecs.berkeley.edu>
Karl Chen <quarl@nospam.quarl.org> writes:
> There's been a change in window-list that removes available
> functionality: getting the list of windows in canonical order,
> starting with the first window. This is important functionality
> that I depend on; I don't see any way to get it now through only
> ELisp.
>
> I propose the following change to window-list:
> WINDOW t means return the list unrotated (in canonical order)
>
> Due to the call to decode_next_window_args() which should not
> allow WINDOW t, the patch would be more than 2 or 3 lines if
> decode_next_window_args() and the call to it from window_list_1()
> were not changed.
>
>
> Relevant ChangeLog entry:
>
> 2004-07-17 Richard M. Stallman <rms@gnu.org>
>
> * window.c ...
> (window_list_1): Rotate the list to start with WINDOW.
I don't recall any discussion about the need for that change, but
I guess there was a reason....
But I second your idea of using window=t to get the canonical list.
In any case, you can still get a canonical window list from lisp;
edebug does it like this --- you can probably tweak it to
your needs:
(defun edebug-window-list ()
"Return a list of windows, in order of `next-window'."
;; This doesn't work for epoch.
(let (window-list)
(walk-windows (lambda (w) (push w window-list)))
(nreverse window-list)))
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2004-08-18 10:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-17 17:25 window-list Karl Chen
2004-08-18 10:39 ` Kim F. Storm [this message]
2004-08-18 18:03 ` window-list Luc Teirlinck
2004-08-19 9:50 ` window-list Kim F. Storm
2004-08-20 4:49 ` window-list Richard Stallman
2004-08-20 21:04 ` window-list Karl Chen
2004-08-21 16:50 ` window-list Richard Stallman
2004-08-21 17:00 ` window-list Luc Teirlinck
2004-08-18 17:41 ` window-list Luc Teirlinck
2004-08-18 20:18 ` window-list Karl Chen
2004-08-18 18:47 ` window-list Richard Stallman
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=m34qn0d91s.fsf@kfs-l.imdomain.dk \
--to=storm@cua.dk \
--cc=emacs-devel@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.