You can use `Registers'.
From emacs info file
13.1 Saving Positions in Registers
C-x r <SPC> R'
Record the position of point and the current buffer in register R
C-x r j R'
Jump to the position and buffer saved in register R
C-x r <SPC>' (point-to-register'), followed by a character
`R', saves both the position of point and the current buffer in
register R. The register retains this information until you store
something else in it.
The command `C-x r j R' switches to the buffer recorded in register
R, and moves point to the recorded position. The contents of the
register are not changed, so you can jump to the saved position any
number of times.
If you use
C-x r j' to go to a saved position, but the buffer it
was saved from has been killed,C-x r j' tries to create the buffer
again by visiting the same file. Of course, this works only for buffers
that were visiting files.