[PATCH] Sort buffer names

Sanel Zukan sanelz at gmail.com
Wed Mar 14 16:07:26 CET 2012


Cool! Thanks :)

> This is at least not easy to achieve.

Then is ok as it is definitely not must-have feature :)  And thank you
for detail explanation.

Regards,
Sanel

On Wed, Mar 14, 2012 at 3:38 PM, Frank Fischer
<frank.fischer at mathematik.tu-chemnitz.de> wrote:
> On Wed, Mar 14, 2012 at 02:49:42PM +0100, Sanel Zukan wrote:
>> Hi,
>>
>> 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
>> it?
>
> 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.
>
> Frank
>
> _______________________________________________
> implementations-list mailing list
> implementations-list at lists.ourproject.org
> https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list



More information about the implementations-list mailing list