[PATCH] Sort buffer names
frank.fischer at mathematik.tu-chemnitz.de
Wed Mar 14 15:38:51 CET 2012
On Wed, Mar 14, 2012 at 02:49:42PM +0100, Sanel Zukan wrote:
> Here is patch for sorted buffer names when ':ls" was given. I often
> use this command and when you have a bit of loaded files with various
> additional modes that opens own buffers, things becomes quite messy.
> This patch will apply sort on buffer names, so hidden buffers (those
> with " *xxx*") will be put first, then modes specific buffers (e.g.
> "*xxx*") and then goes files/directories.
Thanks, applied in 1689501f.
> One nice feature would be numbering buffers, just like Vim does, so
> each buffer can be opened with ":b<n>". What do you guys think about
This is at least not easy to achieve. The problem is that Emacs does
not (AFAIK) assign unique numbers to the buffers. Instead Emacs
manages a buffer-list which is rearranged each time some buffer gets
active (it is moved to the front of this list). Therefore there is no
standard way to identify buffers by number.
More information about the implementations-list