]> code.delx.au - gnu-emacs/commit
Avoid unwanted point motion in Fline_beginning_position.
authorDmitry Antipov <dmantipov@yandex.ru>
Wed, 15 Oct 2014 13:37:10 +0000 (17:37 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Wed, 15 Oct 2014 13:37:10 +0000 (17:37 +0400)
commit0b4d6d30be2822df7d6b086bbab32b8ff419ed5d
treebb4d69129f2dc53af8736945bfdaf8bd22dbf966
parent73d4c39e1519a5fec742686e3c81941113d41448
Avoid unwanted point motion in Fline_beginning_position.
* 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.
src/ChangeLog
src/cmds.c
src/editfns.c
src/lisp.h
src/search.c