aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-05-15 18:47:18 +0000
committerRichard M. Stallman1993-05-15 18:47:18 +0000
commite23c2c217e05e88feb2e2c6da7d2387b34d0069b (patch)
tree3e52d7e9225d6364b2231676bc9592ee740a0523
parentbc0db68d47e18a6baaba257e2f40ec0735743ff4 (diff)
downloademacs-e23c2c217e05e88feb2e2c6da7d2387b34d0069b.tar.gz
emacs-e23c2c217e05e88feb2e2c6da7d2387b34d0069b.zip
(transient-mark-mode): New command.
-rw-r--r--lisp/simple.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index db499b4f5a4..b3a0870ea4c 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1289,6 +1289,18 @@ and it reactivates the mark."
1289 (set-mark (point)) 1289 (set-mark (point))
1290 (goto-char omark) 1290 (goto-char omark)
1291 nil)) 1291 nil))
1292
1293(defun transient-mark-mode (arg)
1294 "Toggle Transient Mark mode.
1295With arg, turn Transient Mark mode on if and only if arg is positive.
1296
1297In Transient Mark mode, changing the buffer \"deactivates\" the mark.
1298While the mark is active, the region is highlighted."
1299 (interactive "P")
1300 (setq transient-mark-mode
1301 (if (null arg)
1302 (not transient-mark-mode)
1303 (> (prefix-numeric-value arg) 0))))
1292 1304
1293(defvar next-line-add-newlines t 1305(defvar next-line-add-newlines t
1294 "*If non-nil, `next-line' inserts newline to avoid `end of buffer' error.") 1306 "*If non-nil, `next-line' inserts newline to avoid `end of buffer' error.")