Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sometimes while editing a file in haskell-mode I get an unexpected message Mark set when saving a file. By tracing the function push-mark, I notice that it seems to be called with arguments nil nil t, which I don't quite understand (location is the first argument). I don't know where it is called from or why.

Is there a way to find out what calls it, and maybe stop execution and examine the call stack?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Try M-: (debug-on-entry 'push-mark). This should display the call stack when push-mark is called. You may later cancel it with M-: (cancel-debug-on-entry 'push-mark).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.