[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eval-last-sexp in other window
From: |
Pascal J. Bourguignon |
Subject: |
Re: eval-last-sexp in other window |
Date: |
Mon, 30 Mar 2009 10:05:49 +0200 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin) |
Bob Babcock <wssddc@nospam.gis.net> writes:
> Is there a way to have eval-last-sexp (typically bound to C-xC-e) run in a
> different window? This would be convenient when developing a macro that
> reformats text - I want the part of the macro I'm testing to be applied to
> the file being reformatted, not to my macro.
You may use M-: to apply a form to the current buffer.
Otherwise:
(with-current-buffer (get-buffer "The Other Buffer Name")
(do-what-you-want)) C-x C-e
--
__Pascal Bourguignon__