From 8ad097066b81118f436b5a096a6778b8377a0cfe Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Wed, 12 Mar 2025 11:56:13 +0800 Subject: [PATCH] ; 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. (cherry picked from commit cd1defc441fc7694aaa0adac617edf790d8444d6) --- lisp/simple.el | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lisp/simple.el b/lisp/simple.el index e513362426c..f6b8e4427bc 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -7295,10 +7295,15 @@ This variable has no effect when Transient Mark mode is off." This command works even when the mark is not active, and it reactivates the mark unless `exchange-point-and-mark-highlight-region' is nil. -If Transient Mark mode is on, a prefix ARG deactivates the mark -if it is active, and otherwise avoids reactivating it. If -Transient Mark mode is off, a prefix ARG enables Transient Mark -mode temporarily." +If Transient Mark mode is on, a prefix ARG deactivates the mark if it is +active, and otherwise avoids reactivating it. However, if +`exchange-point-and-mark-highlight-region' is nil, then using a prefix +argument does reactivate the mark; effectively, when Transient Mark mode +is on, setting `exchange-point-and-mark-highlight-region' to nil swaps +the meanings of the presence and absence of a prefix argument. + +If Transient Mark mode is off, a prefix ARG enables Transient Mark mode +temporarily." (interactive "P") (let ((omark (mark t)) (region-was-active (region-active-p)) -- 2.39.5