From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#25577: 26.0.50; Show Ibuffer and jump to line listing current buffer Date: Tue, 31 Jan 2017 15:10:24 +0900 Message-ID: <87zii7lpyn.fsf@calancha-pc> References: <87tw8grdj7.fsf@calancha-pc> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485843074 14049 195.159.176.226 (31 Jan 2017 06:11:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2017 06:11:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Tino Calancha To: 25577@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 31 07:11:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYRen-0003VQ-Qu for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Jan 2017 07:11:09 +0100 Original-Received: from localhost ([::1]:36311 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYRet-0000em-0n for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Jan 2017 01:11:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYRek-0000df-Lq for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2017 01:11:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYReh-0000hX-Hx for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2017 01:11:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53447) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cYReh-0000hP-Eh for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2017 01:11:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cYReg-00082k-EB for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2017 01:11:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 Jan 2017 06:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25577 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25577-submit@debbugs.gnu.org id=B25577.148584303730882 (code B ref 25577); Tue, 31 Jan 2017 06:11:02 +0000 Original-Received: (at 25577) by debbugs.gnu.org; 31 Jan 2017 06:10:37 +0000 Original-Received: from localhost ([127.0.0.1]:51646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYReG-000821-Rb for submit@debbugs.gnu.org; Tue, 31 Jan 2017 01:10:36 -0500 Original-Received: from mail-pf0-f169.google.com ([209.85.192.169]:35992) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYReF-00081o-03 for 25577@debbugs.gnu.org; Tue, 31 Jan 2017 01:10:35 -0500 Original-Received: by mail-pf0-f169.google.com with SMTP id 189so100489839pfu.3 for <25577@debbugs.gnu.org>; Mon, 30 Jan 2017 22:10:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=KJw889cKkf8MX7Yp5LmJmjJoolOQPrbSjwuJ0oLk394=; b=gU995MLv2qtdlDWoFBbovBDDT/lBd7AUwWV0TlghgZukDBTqJe0Z1WvVzTlNwZKASC ZdNk3+MzPybwLqi5KqptkclRIikxcehSnX1JYatBvFCg+O7ZH/Y4Xt2jvzkFl7PYdwRY oPcCnYE1GOurvtT9LulXej3TnPRNE5KO20qipvMRxwuIrvzREnpvbMRJoTiv+Pq3wvZh ShWkhzGJffOHQD8sOU1U/68pwTFBZrfH2ps10b2mxec4SMgTCXuL5YkOSP7Smp+VEs2a yoOE9x+DnbR2Y7JNWcKKu3a1ha1b2inczbZp1WsPV4z/S4j2dHqujd5K4+grNmTUsl6H vXxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=KJw889cKkf8MX7Yp5LmJmjJoolOQPrbSjwuJ0oLk394=; b=fLDo2peveZC1o6N+Ds25v6U6PJ3zDOeWm9TEybEf1Ql7UO9PT587ZbJfWtVt66eV5U +buEXRHmXyGQR5wVSvmRLJ0Iw39prBFKvwQuKvTobbmDDoAB+4+9tfDrkoyTT5vCOhW6 LTcoPOi3+ht9pkNgRKbTLMvnGrxYJYARpj8niQUfzCbEkh7DJmvaMTdskqmQ4ssz+3WU F5A8XufXjMJZKeh/tX0aTaxOLsycDSKTC1LVocCt/TKAqlbrYczRoFuFb6L5iMcCWup5 sDPmiX82gir1YV9gbqjlJYYijSWI2Nlemiz569VnzVu14mRUZVGanhGEyeeVF7/t/u5P PzAA== X-Gm-Message-State: AIkVDXL+qb3cItZgkQbzseC7Q83I0RkeYm9tRp0WvWb7RongdZpS9QmSl/PwH1Wm/D/SYw== X-Received: by 10.98.160.89 with SMTP id r86mr27191516pfe.170.1485843029321; Mon, 30 Jan 2017 22:10:29 -0800 (PST) Original-Received: from calancha-pc (104.81.147.124.dy.bbexcite.jp. [124.147.81.104]) by smtp.gmail.com with ESMTPSA id p6sm37122097pfg.6.2017.01.30.22.10.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Jan 2017 22:10:28 -0800 (PST) In-Reply-To: <87tw8grdj7.fsf@calancha-pc> (Tino Calancha's message of "Mon, 30 Jan 2017 20:30:04 +0900") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:128821 Archived-At: Tino Calancha 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.