I've hit a problem that region is deactivated (in transient-mark-mode). The function
deactivate-mark is called and I would like to find out where (and why) it is called from.
M-x debug-on-entry RET deactivate-mark and it stops but I found no way to find out the caller. Whole displayed stacktrace is:
Debugger entered--entering a function: * deactivate-mark()
M-x edebug-eval-defun but Edebug does not show the caller either.
How do I find out why (where from)
deactivate-mark is called? I'm look for backtrace or stacktrace functinality.
(defun message-show-backtrace () (message "%s" (backtrace-frame 10))) (advice-add deactivate-mark :before #'message-show-backtrace)
Edit: more info about