[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25577: 26.0.50; Show Ibuffer and jump to line listing current buffer
From: |
Tino Calancha |
Subject: |
bug#25577: 26.0.50; Show Ibuffer and jump to line listing current buffer |
Date: |
Tue, 31 Jan 2017 15:10:24 +0900 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Tino Calancha <tino.calancha@gmail.com> 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.