I searched accross all Emacs Lisp files in Emacs Git repo, and found (goto-char (point-min))
occurs 3621 times and (goto-char 1)
occurs 31 times. Personally, I see lots of (point-min)
but none 1
, even in many cases, it's 100% sure that the region is not narrowed. So here is my question: is (point-min)
still preferred than 1
even in un-narrowed buffer?
I guess 1
is faster than (point-min)
, no mater how slight it is, because 1
is constant while (point-min)
is a function call. Besides, 1
is much shorter than (point-min)
, 1 character v.s. 11 characters.