Subject: Re: bug#25577: 26.0.50; Show Ibuffer and jump to line listing current buffer

From: Tino Calancha <[email-masked]>
Date: Tue, 31 Jan 2017 15:10:24 +0900

Tino Calancha <[email-masked]> writes:

> Suppose current buffer is *foo*, then `list-buffers'
> list the buffers with point set at the line listing *foo*.
>
> In the case of `ibuffer', if *Ibuffer* already exists,
> the effect of this command is pretty much like
> (switch-to-buffer "*Ibuffer*")
> i.e., the point is preserved.  This is useful, but quite often
> i wish the other behaviour:
> To show *Ibuffer* and set point at the line listing *foo*.
>
> This is handy when you have customized `ibuffer-saved-filter-groups',
> and you have many lived buffers.
To see more clear what i mean, try the following:
emacs -Q lisp/subr.el src/data.c

M-x ibuffer RET
M-x ibuffer-set-filter-groups-by-mode RET
j data.c RET RET ; Visiting data.c.
C-x o; Visiting subr.el
M-x ibuffer RET ; point still at data.c.

When you have many live buffers, you might
prefer that `ibuffer' automatically jump to the
line showing the current buffer.