Hook scanning and indentation functions to find_newline. This helps
authorDmitry Antipov <dmantipov@yandex.ru>
Thu, 29 Aug 2013 07:03:18 +0000 (11:03 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Thu, 29 Aug 2013 07:03:18 +0000 (11:03 +0400)
commitd2b368135803170fc2d1f65237b7ef22676f9ecb
tree366956b20df8e76e561878824bd5e96fa5936d85
parente8dfd19797fa7224ae726a8be78726fefd260c0e
Hook scanning and indentation functions to find_newline.  This helps
to avoid duplicated code and renders more respect to newline cache.
* lisp.h (scan_newline): Prefer ptrdiff_t to EMACS_INT.
* cmds.c (Fforward_line):
* indent.c (scan_for_column, Fcurrent_indentation, indented_beyond_p):
Use find_newline and avoid unnecessary point movements.
* search.c (scan_newline): Implement on top of find_newline.
src/ChangeLog
src/cmds.c
src/indent.c
src/lisp.h
src/search.c