Side note. Here is a tracking method when mark-active is true. Rate the following code:
(defun my-message-mark-active () (set-background-color (if mark-active "grey90" "white"))) (defvar my-watch-mark-active-mode nil) (defun my-watch-mark-active-mode () (interactive) (if my-watch-mark-active-mode (progn (cancel-timer my-watch-mark-active-mode) (setq my-watch-mark-active-mode nil) (message "off")) (setq my-watch-mark-active-mode (run-with-idle-timer 0.1 t
Then enter Mx my-watch-mark-active-mode to enable tag viewing. The background color is grey90, and mark-active is true, otherwise it is white. Type Mx my-watch-mark-active-mode to turn it off.
This will help to ensure that when the timestamp mode is turned on, the marker is active if and only if the area is selected. And it also checks that when timestamp mode is disabled, mark-active becomes true at some point, and then never becomes false, this is for each buffer.
source share