This is how I always do it: M-< C-n C-N where "n" is the number of the line. Not exactly a function, but you could bind it to a key....