aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Whitton2025-03-12 10:13:07 +0800
committerSean Whitton2025-03-12 10:13:07 +0800
commitd01a391195e4f6282a587fcc581bb6cd8b2204e1 (patch)
tree7a00cafd225f226cc4c6d92ea228436532bb3904
parent22db8a2c2aacc3c6e774c0338af3863ed668d087 (diff)
downloademacs-d01a391195e4f6282a587fcc581bb6cd8b2204e1.tar.gz
emacs-d01a391195e4f6282a587fcc581bb6cd8b2204e1.zip
; Touch up docs for exchange-point-and-mark-highlight-region
-rw-r--r--etc/NEWS5
-rw-r--r--lisp/simple.el11
2 files changed, 9 insertions, 7 deletions
diff --git a/etc/NEWS b/etc/NEWS
index af7a5e38b73..f39daa112c7 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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'.
486When set to nil, this modifies `exchange-point-and-mark' so that it doesn't 486When set to nil, this modifies `exchange-point-and-mark' so that it doesn't
487activate mark when it is not already active. 487activate the mark if it is not already active.
488The default value is 't' which changes nothing to previous behavior. 488The default value is t, which retains the old behavior.
489This 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
7460When set to nil, this modifies `exchange-point-and-mark' so that it doesn't 7460When set to nil, this modifies `exchange-point-and-mark' so that it
7461activate mark when it is not already active." 7461doesn't activate the mark if it is not already active.
7462
7463This 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.
7468This command works even when the mark is not active, 7470This command works even when the mark is not active, and it reactivates
7469and it reactivates the mark unless 7471the mark unless `exchange-point-and-mark-highlight-region' is nil.
7470`exchange-point-and-mark-highlight-region' is nil.
7471 7472
7472If Transient Mark mode is on, a prefix ARG deactivates the mark 7473If Transient Mark mode is on, a prefix ARG deactivates the mark
7473if it is active, and otherwise avoids reactivating it. If 7474if it is active, and otherwise avoids reactivating it. If