diff options
| author | Sean Whitton | 2025-03-12 11:56:13 +0800 |
|---|---|---|
| committer | Sean Whitton | 2025-03-12 11:57:04 +0800 |
| commit | cd1defc441fc7694aaa0adac617edf790d8444d6 (patch) | |
| tree | 15c58452dbf596b27b9e81a99776bff11be3b8da | |
| parent | ad57fbc58f91837eb73c74afcc72258cef30b9d1 (diff) | |
| download | emacs-cd1defc441fc7694aaa0adac617edf790d8444d6.tar.gz emacs-cd1defc441fc7694aaa0adac617edf790d8444d6.zip | |
; Add more detail to exchange-point-and-mark docstring
It didn't mention that exchange-point-and-mark-highlight-region
affects C-u C-x C-x too.
| -rw-r--r-- | lisp/simple.el | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 08ea5e27ab8..53658ac6d9b 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -7470,10 +7470,15 @@ This variable has no effect when Transient Mark mode is off." | |||
| 7470 | This command works even when the mark is not active, and it reactivates | 7470 | This command works even when the mark is not active, and it reactivates |
| 7471 | the mark unless `exchange-point-and-mark-highlight-region' is nil. | 7471 | the mark unless `exchange-point-and-mark-highlight-region' is nil. |
| 7472 | 7472 | ||
| 7473 | If Transient Mark mode is on, a prefix ARG deactivates the mark | 7473 | If Transient Mark mode is on, a prefix ARG deactivates the mark if it is |
| 7474 | if it is active, and otherwise avoids reactivating it. If | 7474 | active, and otherwise avoids reactivating it. However, if |
| 7475 | Transient Mark mode is off, a prefix ARG enables Transient Mark | 7475 | `exchange-point-and-mark-highlight-region' is nil, then using a prefix |
| 7476 | mode temporarily." | 7476 | argument does reactivate the mark; effectively, when Transient Mark mode |
| 7477 | is on, setting `exchange-point-and-mark-highlight-region' to nil swaps | ||
| 7478 | the meanings of the presence and absence of a prefix argument. | ||
| 7479 | |||
| 7480 | If Transient Mark mode is off, a prefix ARG enables Transient Mark mode | ||
| 7481 | temporarily." | ||
| 7477 | (interactive "P") | 7482 | (interactive "P") |
| 7478 | (let ((omark (mark t)) | 7483 | (let ((omark (mark t)) |
| 7479 | (region-was-active (region-active-p)) | 7484 | (region-was-active (region-active-p)) |