bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9761: proposed list-buffers change -- revert buffer if point is in *


From: martin rudalics
Subject: bug#9761: proposed list-buffers change -- revert buffer if point is in *Buffer List* buffer
Date: Sat, 15 Oct 2011 12:27:38 +0200
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

> !   (if (string= (buffer-name)
> !                "*Buffer List*")
> !       (revert-buffer)

This doesn't strike me as TRT when "*Buffer List*" is currently not
visible in any window.  So you probably want something like

(if (and (string= (buffer-name) "*Buffer List*")
         (get-buffer-window (buffer-name) 0))
    (revert-buffer)
  (display-buffer (list-buffers-noselect files-only)))

here (but I don't use `list-buffers').

> !     (display-buffer (list-buffers-noselect files-only))))

martin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]