--- Begin Message ---
Subject: |
23.0.60; `buffer-list' returns buffers in wrong order |
Date: |
Wed, 8 Oct 2008 12:00:41 -0700 |
Create two files /dir/buf001.txt and /dir/buf002.txt.
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)
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*>...)
The problems are that in Emacs 23 the last sentence in this section of
the Elisp manual is not respected:
Function: buffer-list &optional frame
This function returns the buffer list, including all buffers, even
those whose names begin with a space. The elements are actual
buffers, not their names.
If FRAME is a frame, this returns FRAME's buffer list. If FRAME
is `nil', the fundamental Emacs buffer list is used: all the
buffers appear in order of most recent selection, regardless of
which frames they were selected in.
That is, the buffers are not in order of most recent selection. The
minibuffer of the current frame should be first, followed by the
buffer that was selected before entering the minibuffer. Instead,
buffers on another frame come before these buffers.
In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
of 2008-10-03 on LENNART-69DE564
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include
-fno-crossjumping'
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: ENU
value of $XMODIFIERS: nil
locale-coding-system: cp1252
default-enable-multibyte-characters: t
Major mode: Fundamental
Minor modes in effect:
tooltip-mode: t
tool-bar-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
blink-cursor-mode: t
global-auto-composition-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
C-x C-f t e s t c <tab> <return> <down-mouse-1> <mouse-1>
<down-mouse-3> <mouse-3> M-x e v a l - r e g <return>
<switch-frame> <switch-frame> M-x M-: ( b u f f e r
- l i s t ) <return> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar>
<help-menu> <send-emacs-bug-report>
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
(#<buffer *Minibuf-1*> #<buffer *Minibuf-2*> #<buffer buf002.txt> #<buffer
buf001.txt> #<buffer testcase.el> #<buffer drews-lisp-20> #<buffer *scratch*>
#<buffer *Minibuf-0*> #<buffer *Messages*> #<buffer *code-conversion-work*>
#<buffer *Echo Area 0*> #<buffer *Echo Area 1*>)
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#1121: 23.0.60; `buffer-list' returns buffers in wrong order |
Date: |
Mon, 17 Nov 2008 11:19:01 +0100 |
User-agent: |
Thunderbird 2.0.0.16 (Windows/20080708) |
Seems to have been fixed as a side-effect of the changes to
`save-selected-window' from 2008-11-02 and 2008-11-04.
Thanks for the report, martin.
--- End Message ---