0

This binding is not behaving as intended

(defun pop-mark ()                      ; may be overwriting built in definition
  (interactive "*")
  (let ((current-prefix-arg '(4)))
    (call-interactively #'set-mark-command)))

(global-set-key (kbd "C-c ,") 'pop-mark)

I expect it to cycle through my last marked spots, which it does do only if I haven't hit keyboard-quit.

Is there something that allows me to easily jump between spots of my file? I don't need anything from the ring just to jump to and from locations.

It seems I am looking for save-excursion, but am not sure how to implement it.

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.