summaryrefslogtreecommitdiff
path: root/doc/lispref/markers.texi
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-02-07 22:01:34 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2021-02-07 22:01:39 +0100
commit4712c75ab853ee77587dbc1910cc7c0401e02aa0 (patch)
treecfc9393cbcbaa3e730699cc8f0744ee69fa3a8ba /doc/lispref/markers.texi
parentabedf3a8653829f5170ff72b2fc7adad0e6f80d4 (diff)
downloademacs-4712c75ab853ee77587dbc1910cc7c0401e02aa0.tar.gz
Clarify when activate-mark-hook is run
* doc/lispref/markers.texi (The Mark): * lisp/simple.el (activate-mark-hook): Clarify when the hook is run (bug#23444).
Diffstat (limited to 'doc/lispref/markers.texi')
-rw-r--r--doc/lispref/markers.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/lispref/markers.texi b/doc/lispref/markers.texi
index cdd0938b458..93f98190fa3 100644
--- a/doc/lispref/markers.texi
+++ b/doc/lispref/markers.texi
@@ -607,8 +607,8 @@ the function @code{use-region-p} for that (@pxref{The Region}).
@defvarx deactivate-mark-hook
These normal hooks are run, respectively, when the mark becomes active
and when it becomes inactive. The hook @code{activate-mark-hook} is
-also run at the end of the command loop if the mark is active and it
-is possible that the region may have changed.
+also run when the region is reactivated, for instance after using a
+command that switches back to a buffer that has an active mark.
@ignore
This piece of command_loop_1, run unless deactivating the mark:
if (current_buffer != prev_buffer || MODIFF != prev_modiff)