aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/emulation/cua-base.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el
index 7728bbe220b..9f716f27c38 100644
--- a/lisp/emulation/cua-base.el
+++ b/lisp/emulation/cua-base.el
@@ -1579,12 +1579,14 @@ shifted movement key, set `cua-highlight-region-shift-only'."
1579 (list 1579 (list
1580 transient-mark-mode 1580 transient-mark-mode
1581 (and (boundp 'delete-selection-mode) delete-selection-mode) 1581 (and (boundp 'delete-selection-mode) delete-selection-mode)
1582 (and (boundp 'pc-selection-mode) pc-selection-mode))) 1582 (and (boundp 'pc-selection-mode) pc-selection-mode)
1583 shift-select-mode))
1583 (if (and (boundp 'delete-selection-mode) delete-selection-mode) 1584 (if (and (boundp 'delete-selection-mode) delete-selection-mode)
1584 (delete-selection-mode -1)) 1585 (delete-selection-mode -1))
1585 (if (and (boundp 'pc-selection-mode) pc-selection-mode) 1586 (if (and (boundp 'pc-selection-mode) pc-selection-mode)
1586 (pc-selection-mode -1)) 1587 (pc-selection-mode -1))
1587 (cua--deactivate) 1588 (cua--deactivate)
1589 (setq shift-select-mode nil)
1588 (setq transient-mark-mode (and cua-mode 1590 (setq transient-mark-mode (and cua-mode
1589 (if cua-highlight-region-shift-only 1591 (if cua-highlight-region-shift-only
1590 (not cua--explicit-region-start) 1592 (not cua--explicit-region-start)
@@ -1595,6 +1597,7 @@ shifted movement key, set `cua-highlight-region-shift-only'."
1595 (delete-selection-mode 1)) 1597 (delete-selection-mode 1))
1596 (if (nth 2 cua--saved-state) 1598 (if (nth 2 cua--saved-state)
1597 (pc-selection-mode 1)) 1599 (pc-selection-mode 1))
1600 (setq shift-select-mode (nth 3 cua--saved-state))
1598 (if (interactive-p) 1601 (if (interactive-p)
1599 (message "CUA mode disabled.%s%s%s%s" 1602 (message "CUA mode disabled.%s%s%s%s"
1600 (if (nth 1 cua--saved-state) " Delete-Selection" "") 1603 (if (nth 1 cua--saved-state) " Delete-Selection" "")