From 8b31d850e1d5e4988905ecc9c4ed4587a3e8dcbd Mon Sep 17 00:00:00 2001 From: Nicolas Richard Date: Thu, 10 Mar 2016 13:58:11 +0100 Subject: [PATCH] ; * etc/NEWS: Add entry for display-buffer-reuse-mode-window --- etc/NEWS | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/etc/NEWS b/etc/NEWS index b651b9eb880..d9d1483dbaa 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -161,6 +161,16 @@ that negotiation should complete even on non-blocking sockets. `window-pixel-height-before-size-change' allow to detect which window changed size when `window-size-change-functions' are run. ++++ +** New function `display-buffer-reuse-mode-window' is an action function +suitable for use in `display-buffer-alist'. For example, to avoid creating +a new window when opening man pages when there's already one, use +(add-to-list 'display-buffer-alist + '("\\`\\*Man .*\\*\\'" . + (display-buffer-reuse-mode-window + (inhibit-same-window . nil) + (mode . Man-mode)))) + * Changes in Emacs 25.2 on Non-Free Operating Systems -- 2.39.5