unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: frame parameter `buffer-list' - bug?  if not, what changes it?
Date: Thu, 09 Sep 2004 21:16:01 GMT	[thread overview]
Message-ID: <jwvy8jjxi55.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.2199.1094763557.1998.help-gnu-emacs@gnu.org

> 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 *Backtrace*>)

>  (buffer-list #<buffer foobar.el> #<buffer *Help*> #<buffer toss-1>)

> 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

       reply	other threads:[~2004-09-09 21:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2199.1094763557.1998.help-gnu-emacs@gnu.org>
2004-09-09 21:16 ` Stefan Monnier [this message]
2004-09-09 20:53 frame parameter `buffer-list' - bug? if not, what changes it? Drew Adams

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jwvy8jjxi55.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).