From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: frame parameter `buffer-list' - bug? if not, what changes it? Date: Thu, 09 Sep 2004 21:16:01 GMT Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1094764804 19254 80.91.224.253 (9 Sep 2004 21:20:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Sep 2004 21:20:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 09 23:19:46 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 1C5WKW-0004Ow-00 for ; Thu, 09 Sep 2004 23:19:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C5WPr-00004x-0V for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Sep 2004 17:25:15 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!HSNX.atgi.net!cyclone-sf.pbi.net!216.196.98.144!border2.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!207.35.177.252!nf3.bellglobal.com!snoopy.risq.qc.ca!charlie.risq.qc.ca!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:+DVyWmccHlfLNNZ0zBg/knyERjM= Original-Lines: 33 Original-NNTP-Posting-Host: 132.204.24.84 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1094764561 132.204.24.84 (Thu, 09 Sep 2004 17:16:01 EDT) Original-NNTP-Posting-Date: Thu, 09 Sep 2004 17:16:01 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:125222 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:20576 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20576 > Even if a particular frame has only ever displayed a single buffer, this > parameter can apparently have various values. For example, here are two > different values of `buffer-list' for the frame *Help*, which has never > displayed any buffer other than buffer *Help*: > (buffer-list #) > (buffer-list # # #) > What is going on here? Is this a bug? If this is the intended behavior, then > just what is that behavior? What determines (changes) the value of > `buffer-list'? I can find no doc on this. I'll let you check the source, but my guess is that the value is inherited from somewhere at frame creation. It's only meant to be used for things like next-buffer so that you get the "last buffer used in this frame" rather than the "last buffer used". > Motive: I'm trying to test for equality (with `equal') between frame > configurations, and the same frame with all other parameters equal is > showing up with different values for `buffer-list'. I don't want to have > to create and pass a different equality predicate (that would ignore > `buffer-list'); I want to be able to use `equal', if I can. I guess you're out of luck. Two possibilities: change the buffer-list parameters before creating your configurations, use a hand-written equality predicate, lobby on gnu.emacs.bug to change the definition of `equal', lobby on gnu.emacs.bug to change the way the parameter is initialized&updated to be "more deterministic". Oops, that's more than 2, sorry. Stefan