I have some code using (looking-back … (line-beginning-position))
. Doc string of looking-back
states that it's better to avoid this function because of slowness. I'm curious will following approach be faster?
(save-excursion
(goto-char (line-beginning-position))
(looking-at regexp stuff))