Rodolfo Medina writes: > Normally, the `M-<' and `M->' commands automatically set a new mark. > How can I prevent that? > > Thanks for any help > Rodolfo Well, C-h f M-< gives: ----- beginning-of-buffer is an interactive compiled Lisp function in `simple.el'. It is bound to , , M-<. (beginning-of-buffer &optional ARG) Move point to the beginning of the buffer; leave mark at previous position. With C-u prefix, do not set mark at previous position. With numeric arg N, put point N/10 of the way from the beginning. If the buffer is narrowed, this command uses the beginning and size of the accessible part of the buffer. Don't use this command in Lisp programs! (goto-char (point-min)) is faster and avoids clobbering the mark. ----- So I'd recommend either hitting C-u beforehand, or (looking at section 21.12 of the elisp manual) do something like (global-set-key (kbd "M-<") (lambda () (beginning-of-buffer '(4)))) or indeed (global-set-key (kbd "M-<") (lambda () (goto-char (point-min)))) Rupert