Subject: Re: 25.0.50; [PATCH] Allow M-x man to reuse an existing window

From: Nicolas Richard <[email-masked]>
Date: Thu, 22 Oct 2015 21:21:00 +0200

martin rudalics <[email-masked]> writes:
> Sorry, I must have missed your patch.

Here's most of the patch :

+      (`manly
+       (and (frame-live-p saved-frame)
+            (select-frame saved-frame))
+       (if-let ((window (seq-some-p
+                         (lambda (window)
+                           (with-current-buffer (window-buffer window)
+                             (derived-mode-p 'Man-mode)))
+                         (window-list))))
+           (set-window-buffer window man-buffer)
+         (display-buffer man-buffer)))

> How about writing an action function, say ‘man-display-buffer-my-way’, and
> adding a clause like
>
>       (`my-way
>        (and (frame-live-p saved-frame)
>             (select-frame saved-frame))
>        (display-buffer man-buffer
>        '((man-display-buffer-my-way ...)
>        . nil)))

Sure, why not!

> And please don't drop [email-masked] from the list of recipients!

That was not intended. I probably hit R instead of F, sorry about that.

Nico.