Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

Your Answer


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.