diff options
| -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.") |