• Dmitry Antipov's avatar
    Avoid unwanted point motion in Fline_beginning_position. · 0b4d6d30
    Dmitry Antipov authored
    * lisp.h (scan_newline_from_point): Add prototype.
    * search.c (scan_newline_from_point): New function, refactored from...
    * cmds.c (Fforward_line): ...adjusted user.
    * editfns.c (Fline_beginning_position): Use scan_newline_from_point
    and simplify the former since the latter doesn't move point.
    0b4d6d30
cmds.c 16.7 KB