diff options
Diffstat (limited to 'lisp/simple.el')
| -rw-r--r-- | lisp/simple.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index a8689aaf2e3..6fd50197a10 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -4527,9 +4527,11 @@ run `deactivate-mark-hook'." | |||
| 4527 | (when mark-active (force-mode-line-update)) ;Refresh toolbar (bug#16382). | 4527 | (when mark-active (force-mode-line-update)) ;Refresh toolbar (bug#16382). |
| 4528 | (cond | 4528 | (cond |
| 4529 | ((eq (car-safe transient-mark-mode) 'only) | 4529 | ((eq (car-safe transient-mark-mode) 'only) |
| 4530 | (setq transient-mark-mode (cdr transient-mark-mode))) | 4530 | (setq transient-mark-mode (cdr transient-mark-mode)) |
| 4531 | (if (eq transient-mark-mode (default-value 'transient-mark-mode)) | ||
| 4532 | (kill-local-variable 'transient-mark-mode))) | ||
| 4531 | ((eq transient-mark-mode 'lambda) | 4533 | ((eq transient-mark-mode 'lambda) |
| 4532 | (setq transient-mark-mode nil))) | 4534 | (kill-local-variable 'transient-mark-mode))) |
| 4533 | (setq mark-active nil) | 4535 | (setq mark-active nil) |
| 4534 | (run-hooks 'deactivate-mark-hook) | 4536 | (run-hooks 'deactivate-mark-hook) |
| 4535 | (redisplay--update-region-highlight (selected-window)))) | 4537 | (redisplay--update-region-highlight (selected-window)))) |
| @@ -4756,7 +4758,7 @@ Novice Emacs Lisp programmers often try to use the mark for the wrong | |||
| 4756 | purposes. See the documentation of `set-mark' for more information." | 4758 | purposes. See the documentation of `set-mark' for more information." |
| 4757 | (interactive "P") | 4759 | (interactive "P") |
| 4758 | (cond ((eq transient-mark-mode 'lambda) | 4760 | (cond ((eq transient-mark-mode 'lambda) |
| 4759 | (setq transient-mark-mode nil)) | 4761 | (kill-local-variable 'transient-mark-mode)) |
| 4760 | ((eq (car-safe transient-mark-mode) 'only) | 4762 | ((eq (car-safe transient-mark-mode) 'only) |
| 4761 | (deactivate-mark))) | 4763 | (deactivate-mark))) |
| 4762 | (cond | 4764 | (cond |
| @@ -4894,6 +4896,8 @@ its earlier value." | |||
| 4894 | (push-mark nil nil t))) | 4896 | (push-mark nil nil t))) |
| 4895 | ((eq (car-safe transient-mark-mode) 'only) | 4897 | ((eq (car-safe transient-mark-mode) 'only) |
| 4896 | (setq transient-mark-mode (cdr transient-mark-mode)) | 4898 | (setq transient-mark-mode (cdr transient-mark-mode)) |
| 4899 | (if (eq transient-mark-mode (default-value 'transient-mark-mode)) | ||
| 4900 | (kill-local-variable 'transient-mark-mode)) | ||
| 4897 | (deactivate-mark)))) | 4901 | (deactivate-mark)))) |
| 4898 | 4902 | ||
| 4899 | (define-minor-mode transient-mark-mode | 4903 | (define-minor-mode transient-mark-mode |