[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: call function in other window ?
From: |
Jean-Christophe Helary |
Subject: |
Re: call function in other window ? |
Date: |
Sun, 21 May 2017 11:39:32 +0900 |
Thanks everybody for the replies.
It maybe that my workflow does not include (yet) methods that are specific to
the way emacs works. I'll try to see specifically what I want and why I want it
that way and will get back to this thread. Thank you again.
Jean-Christophe
> On May 21, 2017, at 7:43, Jean-Christophe Helary
> <jean.christophe.helary@gmail.com> wrote:
>
> Thank you Drew.
>
> Wouldn't it be something that people use frequently enough that is has its
> own function in Emacs ?
>
> Jean-Christophe
>
>> On May 21, 2017, at 5:25, Drew Adams <drew.adams@oracle.com> wrote:
>>
>>> 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)))))
>
- call function in other window ?, Jean-Christophe Helary, 2017/05/20
- RE: call function in other window ?, Drew Adams, 2017/05/20
- Re: call function in other window ?, Jean-Christophe Helary, 2017/05/20
- Re: call function in other window ?,
Jean-Christophe Helary <=
- Re: call function in other window ?, Emanuel Berg, 2017/05/21
- Re: call function in other window ?, Jean-Christophe Helary, 2017/05/21
- Re: call function in other window ?, Joost Kremers, 2017/05/21
- Re: call function in other window ?, Jean-Christophe Helary, 2017/05/21
- Re: call function in other window ?, Emanuel Berg, 2017/05/21
- Re: call function in other window ?, Eli Zaretskii, 2017/05/21
- Re: call function in other window ?, Jean-Christophe Helary, 2017/05/21
- Re: call function in other window ?, Emanuel Berg, 2017/05/21
- Re: call function in other window ?, Jean-Christophe Helary, 2017/05/22
- Re: call function in other window ?, Emanuel Berg, 2017/05/22