home *** CD-ROM | disk | FTP | other *** search
- Oh, the shame etc. Here's eval-in-window, it should have been in event-loc.el:
-
- (defmacro eval-in-window (window &rest forms)
- "Switch to WINDOW, evaluate FORMS, return to original window."
- (` (let ((OriginallySelectedWindow (selected-window)))
- (unwind-protect
- (progn
- (select-window (, window))
- (,@ forms))
- (select-window OriginallySelectedWindow)))))
- (put 'eval-in-window 'lisp-indent-hook 1)
-
- Sorry for any confusion. Thanks to Kit Powell for pointing this out.
-
-