[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window
From: |
Nicolas Richard |
Subject: |
bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window |
Date: |
Thu, 22 Oct 2015 21:21:00 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
martin rudalics <rudalics@gmx.at> 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 21649@debbugs.gnu.org from the list of recipients!
That was not intended. I probably hit R instead of F, sorry about that.
Nico.
- bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window, Nicolas Richard, 2015/10/09
- bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window, Kaushal Modi, 2015/10/09
- Message not available
- bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window, Kaushal Modi, 2015/10/12
- bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window, Nicolas Richard, 2015/10/13
- bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window, Kaushal Modi, 2015/10/13
- bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window, martin rudalics, 2015/10/14
- Message not available
- bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window, martin rudalics, 2015/10/22
- bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window,
Nicolas Richard <=
- bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window, martin rudalics, 2015/10/23
bug#21649: 25.0.50; [PATCH] Allow M-x man to reuse an existing window, Nicolas Richard, 2015/10/27