bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#1121: 23.0.60; `buffer-list' returns buffers in wrong order


From: Drew Adams
Subject: bug#1121: 23.0.60; `buffer-list' returns buffers in wrong order
Date: Thu, 9 Oct 2008 09:10:25 -0700

> > emacs -Q
> > (setq enable-recursive-minibuffers t)
> > (find-file "/dir/buf001.txt")
> > (find-file-other-frame "/dir/buf002.txt")
> > (switch-to-buffer-other-frame "buf001.txt")
> >
> > M-x M-: (buffer-list)
> 
> How are you running these commands?

Put them (after emacs -Q) in a buffer, visit the buffer, `eval-buffer'. But the
way you used will work also. The key, however, is the last line above: evaluate
(buffer-list) from the minibuffer - e.g. during M-x or C-x C-f. Use `M-x M-:',
not just `M-:'. (That was the point of setting `enable-recursive-minibuffers' to
t.)

The real use would be from a command bound to a key in a minibuffer keymap. If
it examines the `buffer-list' the result is very different in Emacs 23 from
Emacs 20, 21, and 22.

> I've done:
>  emacs -Q
>  M-: (setq enable-recursive-minibuffers t) <ENTER>
>  C-x f /dir/buf001.txt <ENTER>
>  C-x 5 f /dir/buf002.txt <ENTER>
>  C-x 5 b buf001.txt <ENTER>
>  M-: (buffer-list) <ENTER>
> 
> > This returns:
> > (#<buffer  *Minibuf-1*> #<buffer  *Minibuf-2*>
> >  #<buffer buf002.txt> #<buffer buf001.txt>...)
> >
> > In previous Emacs releases (e.g. 22.3) it returns this:
> > (#<buffer  *Minibuf-1*> #<buffer buf001.txt>
> >  #<buffer buf002.txt> ... #<buffer  *Minibuf-0*>...)
> 
> I get
> 
> (#<buffer buf001.txt> #<buffer  *Minibuf-1*> #<buffer buf002.txt>
> #<buffer *scratch*> #<buffer  *Minibuf-0*> ...)
> 
> M-x emacs-version
> 
> "GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-10-08 on JUANMAB"







reply via email to

[Prev in Thread] Current Thread [Next in Thread]