Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer 1

up vote 1 down vote accepted
+100

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.