Opening emacs -Q, then Pressing Ctrl-Home or Ctrl-End also shows this message.

Mark set

What is happening? Why is the mark set and is there a way not to set the mark?

  • 1
    Those two do not set the mark: M-< and M-> (aka beginning-of-buffer and end-of-buffer) do set it. I don't know where you see Mark set after executing those two, but I certainly cannot reproduce it. – NickD Mar 14 '20 at 2:54
  • What @NickD said. Start from emacs -Q (no init file). Provide a step-by-step recipe. Trying to do that you'll discover your misunderstanding, I think. I think at this point your question (for yourself) should be "What am I doing that causes that message to be shown?" – Drew Mar 14 '20 at 3:08
  • Edited question to be slightly different from the original, with the issue happening from Ctrl Home/End instead of function calls. – ideasman42 Mar 14 '20 at 4:58
  • Did you try C-h c C-Home RET to see what it is bound to? You would find that it is bound to beginning-of-buffer which does set the mark as pointed out already. – NickD Mar 14 '20 at 14:51
  • Reading your overall answers, I know you are able to read emacs elisp source code. Use C-h k C-<home> to see beginning-of-buffer is called. Then just look at th source of command beginning-of-buffer and indentify the (push-mark). Why are you asking such a question? – jue Mar 23 '20 at 1:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.