Paste number 13736: targeting command for a particular frame

Paste number 13736: targeting command for a particular frame
Pasted by: metaperl
When:6 years, 2 months ago
Share:Tweet this! | http://paste.lisp.org/+ALK
Channel:#xemacs
Paste contents:
Raw Source | XML | Display As
;;; I want XEmacs to run bounce() in a particular frame
;;; Is there a way to label a frame and then force a command
;;; to run there?


(defun bounce ()
  (interactive)
  (message "Bouncing...")
  (shell-command "BOUNCE")
  (switch-to-buffer "*logs-shell*")
  (goto-char (point-max)))

(global-set-key "\C-cb" 'bounce)

(defun log-dir ()
  (interactive)
  (find-file "/var/tmp/aggsvr-tbrannon/logs")
  (shell-current-directory))

(provide 'local)

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.