Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just upgraded emacs from 23.4 to 24.1 (on OS X). I use emacs-starter-kit, but it doesn't appear to affect this behavior in 24.1 (I have it disabled at the moment), and I'm pretty sure I got my expected behavior in 23 before I started using it.

In 23.4 if I had buffer "x" open and opened up file "y", the buffer-list showed "y" before "x", meaning

  • while in buffer "x" C-x <left> (previous-buffer) switched to buffer "y"
  • while in buffer "y" C-x <right> (next-buffer)switched to buffer "x"

This order would get changed when I used C-x b, but I was ok with that.

In 24.1 opening a file seems to sometimes reorder the buffer list and sometimes add the file after the current buffer in the buffer list (depending on the number of files open and the position of the current buffer when I ran C-x C-f to open the other file). Neither behavior is expected by me. How can I get the 23.4 (and earlier) behavior back?

I know this seems minor, but I've trained myself over the past several years to expect a specific behavior from C-x <left> and C-x <right> and the new behavior is throwing me off.

share|improve this question
up vote 1 down vote accepted

Try this

setq Buffer-menu-sort-column nil

If you work with multiple frames, the default setting is for buffers never selected in a particular frame to be listed at the end. Change that with this

setq Buffer-menu-user-frame-buffer-list nil (default is t)

share|improve this answer
This isn't the exact behavior I want, but it's much closer, and I should be able to get it from here. Thanks. – robert Jun 20 '12 at 20:52
In that case, buffer-menu-plus offers a new column for display and sort called Time which is the time that a buffer was last accessed (displayed). – Jeremy W Jun 20 '12 at 21:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .