unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Zachary Kanfer <zkanfer@gmail.com>
Cc: 9761@debbugs.gnu.org
Subject: bug#9761: proposed list-buffers change -- revert buffer if point is in *Buffer List* buffer
Date: Sun, 16 Oct 2011 11:50:28 -0400	[thread overview]
Message-ID: <jwvsjmtuecs.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CAFXT+ROCaaRtNwc2_UVFtQ0F=3JW0cT0pcbAPCsNFmx7sYL+2A@mail.gmail.com> (Zachary Kanfer's message of "Sat, 15 Oct 2011 00:22:43 -0400")

> !   (display-buffer (list-buffers-noselect files-only)))
[...]
> !   (if (string= (buffer-name)
> !                "*Buffer List*")
> !       (revert-buffer)
> !     (display-buffer (list-buffers-noselect files-only))))

I don't think calling revert-buffer is right.  Much better would be for
list-buffer-noselect to try to preserve point when reusing a buffer
rather than creating a new one.


        Stefan





  parent reply	other threads:[~2011-10-16 15:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-15  4:22 bug#9761: proposed list-buffers change -- revert buffer if point is in *Buffer List* buffer Zachary Kanfer
2011-10-15 10:27 ` martin rudalics
2011-10-15 17:14 ` Chong Yidong
2011-10-15 18:00   ` Zachary Kanfer
2011-10-16 15:50 ` Stefan Monnier [this message]
2011-12-10  6:48   ` Zachary Kanfer
2016-02-25  6:40 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvsjmtuecs.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=9761@debbugs.gnu.org \
    --cc=zkanfer@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).