comparison lisp/term/sun-mouse.el @ 84729:9732bf60ac8e

(suspend-emacstool): Remove.
author Glenn Morris <rgm@gnu.org>
date Fri, 21 Sep 2007 03:58:12 +0000
parents ee4552a02131
children 6aed7b3522e4
comparison
equal deleted inserted replaced
84728:04f556b17d19 84729:9732bf60ac8e
658 (defun sun-select-region (beg end) 658 (defun sun-select-region (beg end)
659 "Set the sunwindows selection to the region in the current buffer." 659 "Set the sunwindows selection to the region in the current buffer."
660 (interactive "r") 660 (interactive "r")
661 (sun-set-selection (buffer-substring beg end))) 661 (sun-set-selection (buffer-substring beg end)))
662 662
663 ;;;
664 ;;; Support for emacstool
665 ;;; This closes the window instead of stopping emacs.
666 ;;;
667 (defun suspend-emacstool (&optional stuffstring)
668 "Suspend emacstool.
669 If running under as a detached process emacstool,
670 you don't want to suspend (there is no way to resume),
671 just close the window, and wait for reopening."
672 (interactive)
673 (run-hooks 'suspend-hook)
674 (if stuffstring (send-string-to-terminal stuffstring))
675 (send-string-to-terminal "\033[2t") ; To close EmacsTool window.
676 (run-hooks 'suspend-resume-hook))
677
678 (provide 'sun-mouse) 663 (provide 'sun-mouse)
679 (provide 'term/sun-mouse) ; have to (require 'term/sun-mouse) 664 (provide 'term/sun-mouse) ; have to (require 'term/sun-mouse)
680 665
681 ;;; arch-tag: 6e879372-b899-4509-833f-d7f6250e309a 666 ;;; arch-tag: 6e879372-b899-4509-833f-d7f6250e309a
682 ;;; sun-mouse.el ends here 667 ;;; sun-mouse.el ends here