diff options
| author | Richard M. Stallman | 1993-05-15 18:47:18 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-05-15 18:47:18 +0000 |
| commit | e23c2c217e05e88feb2e2c6da7d2387b34d0069b (patch) | |
| tree | 3e52d7e9225d6364b2231676bc9592ee740a0523 | |
| parent | bc0db68d47e18a6baaba257e2f40ec0735743ff4 (diff) | |
| download | emacs-e23c2c217e05e88feb2e2c6da7d2387b34d0069b.tar.gz emacs-e23c2c217e05e88feb2e2c6da7d2387b34d0069b.zip | |
(transient-mark-mode): New command.
| -rw-r--r-- | lisp/simple.el | 12 |
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. | ||
| 1295 | With arg, turn Transient Mark mode on if and only if arg is positive. | ||
| 1296 | |||
| 1297 | In Transient Mark mode, changing the buffer \"deactivates\" the mark. | ||
| 1298 | While 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.") |