|
From: | Drew Adams |
Subject: | RE: call function in other window ? |
Date: | Sat, 20 May 2017 13:25:17 -0700 (PDT) |
> Is there an argument to M-x... to call a function not in the current > buffer/window but in a different one (like the one targeted by "other > window" ? Or a different way to do that ? (defun foo (fn &rest args) (let ((win (next-window))) (when win (with-current-buffer (window-buffer win) (apply fn args)))))
[Prev in Thread] | Current Thread | [Next in Thread] |