diff options
| author | Sean Whitton | 2025-03-12 10:13:07 +0800 |
|---|---|---|
| committer | Sean Whitton | 2025-03-12 10:13:07 +0800 |
| commit | d01a391195e4f6282a587fcc581bb6cd8b2204e1 (patch) | |
| tree | 7a00cafd225f226cc4c6d92ea228436532bb3904 | |
| parent | 22db8a2c2aacc3c6e774c0338af3863ed668d087 (diff) | |
| download | emacs-d01a391195e4f6282a587fcc581bb6cd8b2204e1.tar.gz emacs-d01a391195e4f6282a587fcc581bb6cd8b2204e1.zip | |
; Touch up docs for exchange-point-and-mark-highlight-region
| -rw-r--r-- | etc/NEWS | 5 | ||||
| -rw-r--r-- | lisp/simple.el | 11 |
2 files changed, 9 insertions, 7 deletions
| @@ -484,8 +484,9 @@ modal editing packages. | |||
| 484 | 484 | ||
| 485 | ** New user variable 'exchange-point-and-mark-highlight-region'. | 485 | ** New user variable 'exchange-point-and-mark-highlight-region'. |
| 486 | When set to nil, this modifies `exchange-point-and-mark' so that it doesn't | 486 | When set to nil, this modifies `exchange-point-and-mark' so that it doesn't |
| 487 | activate mark when it is not already active. | 487 | activate the mark if it is not already active. |
| 488 | The default value is 't' which changes nothing to previous behavior. | 488 | The default value is t, which retains the old behavior. |
| 489 | This variable has no effect when Transient Mark mode is off. | ||
| 489 | 490 | ||
| 490 | 491 | ||
| 491 | * Changes in Specialized Modes and Packages in Emacs 31.1 | 492 | * Changes in Specialized Modes and Packages in Emacs 31.1 |
diff --git a/lisp/simple.el b/lisp/simple.el index df8f8276812..08ea5e27ab8 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -7457,17 +7457,18 @@ Does not set point. Does nothing if mark ring is empty." | |||
| 7457 | (defcustom exchange-point-and-mark-highlight-region t | 7457 | (defcustom exchange-point-and-mark-highlight-region t |
| 7458 | "Activate region when exchanging point and mark. | 7458 | "Activate region when exchanging point and mark. |
| 7459 | 7459 | ||
| 7460 | When set to nil, this modifies `exchange-point-and-mark' so that it doesn't | 7460 | When set to nil, this modifies `exchange-point-and-mark' so that it |
| 7461 | activate mark when it is not already active." | 7461 | doesn't activate the mark if it is not already active. |
| 7462 | |||
| 7463 | This variable has no effect when Transient Mark mode is off." | ||
| 7462 | :type 'boolean | 7464 | :type 'boolean |
| 7463 | :group 'editing-basics | 7465 | :group 'editing-basics |
| 7464 | :version "31.1") | 7466 | :version "31.1") |
| 7465 | 7467 | ||
| 7466 | (defun exchange-point-and-mark (&optional arg) | 7468 | (defun exchange-point-and-mark (&optional arg) |
| 7467 | "Put the mark where point is now, and point where the mark is now. | 7469 | "Put the mark where point is now, and point where the mark is now. |
| 7468 | This command works even when the mark is not active, | 7470 | This command works even when the mark is not active, and it reactivates |
| 7469 | and it reactivates the mark unless | 7471 | the mark unless `exchange-point-and-mark-highlight-region' is nil. |
| 7470 | `exchange-point-and-mark-highlight-region' is nil. | ||
| 7471 | 7472 | ||
| 7472 | 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 |
| 7473 | if it is active, and otherwise avoids reactivating it. If | 7474 | if it is active, and otherwise avoids reactivating it. If |