diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2009-12-01 20:44:21 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2009-12-01 20:44:21 +0000 |
commit | 9946be4640d850bcbb7c5989c5b1335ceb0852ad (patch) | |
tree | 1e58070bcf78b7db9a40289716567c65732893fe /lisp/emulation | |
parent | e7440df4ecdb7b908996c144fca445f59d96b82b (diff) | |
download | emacs-9946be4640d850bcbb7c5989c5b1335ceb0852ad.tar.gz |
(tpu-cursor-free-mode): Emit message.
(tpu-set-cursor-free, tpu-set-cursor-bound): Don't emit a message any more.
Diffstat (limited to 'lisp/emulation')
-rw-r--r-- | lisp/emulation/tpu-extras.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/emulation/tpu-extras.el b/lisp/emulation/tpu-extras.el index 6d0823ceb75..2c8ac28157b 100644 --- a/lisp/emulation/tpu-extras.el +++ b/lisp/emulation/tpu-extras.el @@ -135,7 +135,10 @@ the previous line when starting from a line beginning." "Minor mode to allow the cursor to move freely about the screen." :init-value nil (if (not tpu-cursor-free-mode) - (tpu-trim-line-ends))) + (tpu-trim-line-ends)) + (if (not tpu-cursor-free-mode) + (message "The cursor is now bound to the flow of your text.") + (message "The cursor will now move freely about the screen."))) ;;; Hooks -- Set cursor free in picture mode. @@ -447,15 +450,13 @@ A repeat count means scroll that many sections." (defun tpu-set-cursor-free () "Allow the cursor to move freely about the screen." (interactive) - (tpu-cursor-free-mode 1) - (message "The cursor will now move freely about the screen.")) + (tpu-cursor-free-mode 1)) ;;;###autoload (defun tpu-set-cursor-bound () "Constrain the cursor to the flow of the text." (interactive) - (tpu-cursor-free-mode -1) - (message "The cursor is now bound to the flow of your text.")) + (tpu-cursor-free-mode -1)) ;; Local Variables: ;; generated-autoload-file: "tpu-edt.el" |