Subject: bug#14415: 24.3.50.1; buffer-list behaviour

From: Stefan Guath <[email-masked]>
Date: Fri, 17 May 2013 16:24:45 +0200

In GNU Emacs 24.3.50.1 (i386-apple-darwin12.3.0, NS apple-appkit-1187.37) of 2013-04-10 on angelofdeaths-MacBook-Air.local
Windowing system distributor `Apple', version 10.3.1187
Configured using: `configure --with-ns'

DESCRIPTION
When switching to another buffer, that buffer does not move to the first entry of buffer-list as stated in the manual 27.8 "A buffer moves to the front of this list whenever it is chosen for display in a window…". For instance:

REPRODUCE BUG
* emacs -Q
* Eval (global-set-key [(f5)] (lambda () (interactive) (message (prin1-to-string (buffer-list))))) in *scratch*.
* Press f5 to see current buffer-list in mini-buffer.
* C-x b *Messages*
* Press f5 to see current buffer-list.

RESULT
* Buffer *Messages* is not in front of buffer-list.

COMMENT
It seems as a buffer indeed moves to the top when selected twice in a row.