From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: window-list Date: Wed, 18 Aug 2004 13:03:40 -0500 (CDT) Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <200408181803.i7II3eo23397@raven.dms.auburn.edu> References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1092852347 26751 80.91.224.253 (18 Aug 2004 18:05:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 Aug 2004 18:05:47 +0000 (UTC) Cc: quarl+dated+1093194046.34955e@nospam.quarl.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 18 20:05:34 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BxUoX-00029T-00 for ; Wed, 18 Aug 2004 20:05:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BxUsj-0003u4-EC for ged-emacs-devel@m.gmane.org; Wed, 18 Aug 2004 14:09:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BxUrZ-0003aZ-5c for emacs-devel@gnu.org; Wed, 18 Aug 2004 14:08:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BxUrW-0003Zt-8f for emacs-devel@gnu.org; Wed, 18 Aug 2004 14:08:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BxUrW-0003Zq-4o for emacs-devel@gnu.org; Wed, 18 Aug 2004 14:08:38 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BxUnD-0004jl-5t for emacs-devel@gnu.org; Wed, 18 Aug 2004 14:04:11 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id i7II3wuE002939; Wed, 18 Aug 2004 13:03:58 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id i7II3eo23397; Wed, 18 Aug 2004 13:03:40 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: storm@cua.dk In-reply-to: (storm@cua.dk) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26306 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26306 Kim Storm wrote: I don't recall any discussion about the need for that change, but I guess there was a reason.... To make the function do what both its docstring and the documentation in the Elisp manual claim it does: -- Function: window-list &optional frame minibuf window This function returns a list of the windows on FRAME, starting with WINDOW. If FRAME is `nil' or omitted, the selected frame is used instead; if WINDOW is `nil' or omitted, the selected window is used instead. So I do not believe that there _has_ been a change in documented behavior. The documentation was changed quite a while ago, for "compatibility with XEmacs". (Revision 1.322 to window.c on Nov 19, 2000, by Gerd.) I guess the change must have been discussed back then. The new behavior was never correctly implemented, until Richard's change. As I already pointed out, unless I am misunderstanding, one can get the behavior Karl wants, from Elisp, using: (window-list frame minibuf (frame-first-window frame)) Sincerely, Luc.