fix emacs line number opening function